Home Forums WoodMart support forum Quantity button in loop/shop pages

Quantity button in loop/shop pages

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #217529

    abbyrockas
    Participant

    Hello 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.

    #217531

    abbyrockas
    Participant

    My 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?

    #217563

    Hello,

    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.

    #217801

    abbyrockas
    Participant

    The 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?

    #217802

    abbyrockas
    Participant

    Ok 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?

    #217869

    Artem Temos
    Keymaster

    Hi,

    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.

    #360213

    superaldo
    Participant

    Hi,

    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.

Viewing 7 posts - 1 through 7 (of 7 total)