Home › Forums › WoodMart support forum › Quantity button in loop/shop pages
Quantity button in loop/shop pages
- This topic has 6 replies, 1 voice, and was last updated 2 years, 11 months ago by
superaldo.
-
AuthorPosts
-
August 10, 2020 at 7:13 am #217529
abbyrockasParticipantHello guys,
The quantity button disappeared after the last theme update, in the shop loop page. Can you help me reenable it? I have double-checked the settings and the option is on, the style is correct.August 10, 2020 at 7:24 am #217531
abbyrockasParticipantMy mistake, forgot to disable the css “display:none” of the button.
I have another issue. The quantity selector in the mini cart always stays at the quantity step after refresh page or go to another, instead to stay at the current added quantity. For example if u add 14 pcs of an item and open the mini-cart without refreshing or changing the page it shows 14 but when you refresh the page or go to another, the quantity button shows 1. It works correctly in your demo but doesn’t work like that in my site. Can you help me fix it?
August 10, 2020 at 10:16 am #217563
Aizaz Imtiaz AwanKeymasterHello,
We are Glad that you fixed one of the issues yourself. You are Great!!!
For the minicart, Please deactivate all the third party plugins, activate parent theme the disable server caching, deactivate cache plugin clear browser cache and check back.
If the problem continues then leave the third party plugins deactivated take a full backup of the website and provide with admin panel login details of the website with the permissions to debug then we will troubleshoot with theme plugins.
Best Regards.
August 11, 2020 at 6:54 am #217801
abbyrockasParticipantThe problem seems to be with the plugin:
WooCommerce Advanced Quantity which I use to adjust the quantity step of the measurable products per kg. like cheese, meat etc. So the step is not 1 but 0,05 kg. This way the customer can buy less than 1kg cheese or something else.
Do you have any idea how can I fix this or I should ask the plugin author?August 11, 2020 at 6:58 am #217802
abbyrockasParticipantOk the guys were super quick. They give this answer:
Why does the cart widget in the menu not showing the right amount items, when using decimal quantity?
Some themes are converting the decimal quantity to an integer: Example: The cart will write “0 Items”, even though it has 0.75 items in it.
To solve this, you have to change it in the theme:
Example from storefront:
In the file \inc\woocommerce\template-tags.php line 19.
Find: _n( ‘%d item’, ‘%d items’, WC()->cart->get_cart_contents_count(), ‘storefront’ )
Change to: _n( ‘%s item’, ‘%s items’, WC()->cart->get_cart_contents_count(), ‘storefront’ )
Do you think this is the problem?
August 11, 2020 at 11:07 am #217869
Artem TemosKeymasterHi,
Please, describe to us your problems in a bit more details. Attach some screenshots and provide us with a list of steps on how to reproduce it on your website.
Thank you in advance.
March 12, 2022 at 5:02 pm #360213
superaldoParticipantHi,
any news about a solution to this problem ? Does the theme allow only integer values for quantities ? Is there a way to change that ?
I tried multiple plugins to use decimal values for quantities, but there is still this problem. -
AuthorPosts
- You must be logged in to create new topics. Login / Register