Dan Miller Coding
Forum Replies Created
-
Then most likely you have an issue with server cache. Or the theme or a plugin is overriding the function.
It might be because the functions.php file is not being read properly.
I made this functions into a plugin.
You can download the plugin here: http://danmillercoding.com/plugins/smntcs-woocommerce-quantity-buttons-fix.zip
Install, activate and it should work.
Let me know if it works!
DanTry adding it at the top of the functions.php file. Right after the
<?phpThank you!
Hi, please try it not while being in the Dashboard.
Let me know if you have any questions.Found a temporary solution until the developers fix the issue.
Add this code in your theme’s functions.php file:function dmc_wc_smntcswcb_quantity_fix_before() { echo '<div class="product-quantity">'; } function dmc_wc_smntcswcb_quantity_fix_after() { echo '</div>'; } add_action( 'woocommerce_before_add_to_cart_quantity', 'dmc_wc_smntcswcb_quantity_fix_before' ); add_action( 'woocommerce_after_add_to_cart_quantity', 'dmc_wc_smntcswcb_quantity_fix_after' );Keep in mind that if you will update your theme version, then this code will be automatically removed. You can safely add it again.
Let me know if this fixes the issue for you guys and feel free to contact me in case you need some help.
Dan
Web DeveloperFound a temporary solution until the developers fix the issue.
Add this code in your theme’s functions.php file:function dmc_wc_smntcswcb_quantity_fix_before() { echo '<div class="product-quantity">'; } function dmc_wc_smntcswcb_quantity_fix_after() { echo '</div>'; } add_action( 'woocommerce_before_add_to_cart_quantity', 'dmc_wc_smntcswcb_quantity_fix_before' ); add_action( 'woocommerce_after_add_to_cart_quantity', 'dmc_wc_smntcswcb_quantity_fix_after' );Keep in mind that if you will update your theme version, then this code will be automatically removed. You can safely add it again.
Let me know if this fixes the issue for you guys and feel free to contact me in case you need some help.
Dan
Web DeveloperCan confirm as well. Looking into a solution.
After some tests it seems like sometimes the cache is cleared and sometimes not. I’ll run more tests on multiple websites and let you know if I find anything.
I’ve marked this issue as UNRESOLVED. If anyone has similar issues please follow this new topic where we can track the progress of these issues: https://ww.wp.xz.cn/support/topic/important-caching-does-not-refresh-after-adding-new-posts/
@marcusig it is the home page with a
get_postsfunction.
I belive it also was not showing up in the RSS feed.
The RSS feed is using
while(have_posts()) : the_post();
I’ll post more info when I investigate this deeper. Currently I just disabled the cache.I am not able to re-create this, as I can’t risk having a white page as the home page of the website.
I’ll get more info if this happens again on another website.I’ll post it, if this happens again. I did not save a copy.
I remember tho, that the optimization code was at the top of the file.@syedabutahir there is not such an option. Otherwise I would not be writing this post 😉
Hi @stodorovic, thank you for your detailed explanation!
I did not know about the feed rewriting rules. I will use /feed from now on.
Thank you!
Best regards,
Dan