aofmarketing
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Stock is displaying as a decimal, how can I change this?Hi all,
For anyone else struggling with this, a developer helped me figure this out. I was using
get_field
but this is exclusive to Advanced Custom Fields, which stock is not. That did not solve the decimal but the developer called it and formatted it in one statement:<div class="qty"> <?php $product_stock = get_post_meta( $post->ID, '_stock', true); echo 'QTY: ', number_format($product_stock, 0 ); ?> </div>
Forum: Plugins
In reply to: [WooCommerce PDF & Print] No buttons showingHi all,
Anyone wondering or with a similar issue, it was a conflict in the theme we have, Shopifiq. The meta.php had no way of starting or ending the product meta.
Our theme peeps said:
I found a problem. It is in meta.php file of our template. I suggest you to remove or rename it (for example meta2.php). This file is change due to rtl support and there is not added something for starting and ending meta product.You can find this file inside our template: woocommerce/single-product/meta.php
Forum: Plugins
In reply to: [WooCommerce] Display stock availabilty on shop page, WooCommerce@littlebizonline – what about something like this? Not sure what you would want to echo on the products that don’t have stock, if anything, so I left the “else” blank, make that what you want
<?php if ( is_product_category() ) { if ( is_product_category( 'category1' ) ) { echo '.number_format($product->stock,0,'',''); } elseif ( is_product_category( 'category2' ) ) { echo '.number_format($product->stock,0,'',''); } else { echo ''; } } ?>
Forum: Plugins
In reply to: [WooCommerce PDF & Print] No buttons showingHi thank you for answering. If you mean the button, it’s not a plugin, it came with the theme. It was originally “Add to Cart” but I just changed the words to “Request a Quote.”
The theme is Shopifiq, but is the Add to Cart button something that comes with Woocommerce?
Forum: Plugins
In reply to: [Contact Form 7] recieving mails as SPAMThis is happening to me too – is it something caused by the latest update?
Forum: Plugins
In reply to: [WooCommerce] Display stock availabilty on shop page, WooCommerce@ollbrettfahrer77 – If I use that, the number is “0” and not the actual stock number
Forum: Plugins
In reply to: [Product SKU Generator for WooCommerce] Unable to search by SKU?Hi all, sorry to bother but this is urgent for us, any input at all would be appreciated! I am pretty new to WordPress and the world of plugins, I don’t even know how to detect a conflict let alone fix one. Or maybe it’s something else entirely!
Forum: Plugins
In reply to: [Search Everything] Search by SKUSorry to bother but this is kind of urgent for us, we are unable to search by sku on the site and it’s inconvenient for our sales team taking calls. Any help would be super appreciated! Anyone else have this issue?
lol I always try to do things the hard way first!
Nevermind I found this in the admin plugin settings! Sorry totally missed it!
Forum: Plugins
In reply to: [WooCommerce PDF & Print] Cannot see the buttonsHi there,
I’m having the same problem the buttons aren’t showing on my product page or even in the source code, but my product add to cart button and meta are showing.
http://aofsite2015.staging.wpengine.com/shop/desks/maple-u-shape-desk-with-glass-doors/Forum: Plugins
In reply to: [Contact Form 7] Require only one of several options – is that possible?Thank you for the quick response! I should have specified though, I am trying to do this with text inputs.
The real example is we have an eCommerce site and have a quote form. We want users to enter the quantity of at least one category of item that they want to inquire about: cubicles, desks, chairs, etc. We want to list all options but require that at least one is given a number or text value.
Is this possible? Could the
exclusive
option work for text?Forum: Plugins
In reply to: [Search Everything] Search by SKUPotential conflict with this plugin? https://wordpress.org/plugins/woocommerce-product-sku-generator/
Forum: Plugins
In reply to: [Search by SKU for Woocommerce] Hidden Products Showing in SerachHi there,
Not sure how to fix the glitch in the plugin, but I downloaded this and I was able to stop specified things from showing in the search results: https://wordpress.org/plugins/search-everything/
Forum: Plugins
In reply to: [Contact Form 7] How can I make sure email entered is real?Hi all,
I was doing some research and found that the best and really only way to validate an email is checking for @ and . along with invalid characters, which is what the form already seems to be doing. There are so many variations on domains and extensions that it’s impossible to filter without excluding someone. The email above is obviously fake but I suppose that we have to deal with fake submissions like that.
Is this the case? Does anyone know a better way?
For reference, I read this helpful answer on stackoverflow:
http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address