• Resolved st3lyn

    (@st3lyn)


    can’t understand at what point or why the quantity before add to cart button is not showing.

    Disabled all plugins and the problem persists.

    How to fix it, as an absolute begginer?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Roxy

    (@roxannestoltz)

    Hi @st3lyn ,

    Thanks for reaching out!

    I understand that the quantity amount, which is usually displayed between the plus and minus quantity selector, is not being displayed, is this correct?

    After visiting your site, I see what you mean:

    I am unable to reproduce this issue on my test site which uses the default Storefront theme, as the quantity amount is being displayed:

    Further checking, I can see that this is being added by your current theme (Botiga):

    It is possible that there is custom code (such as CSS) that has been added which is hiding this from being displayed. Please can you navigate to Appearance → Customize → Additional CSS and see if you have any additional CSS added there. If so, please try removing this, then clearing your browser cache, and check to see if this resolves the issue?

    If there is no additional CSS being added, or removing any existing custom CSS makes no difference, I’d suggest performing a full conflict test to rule out any theme/plugin conflicts which may be causing the issue.

    To test, you’ll first want to change the theme on your site to Storefront, then check to see if the issue is still present. If that resolves the issue, you’ll want to get in touch with your theme’s developer and see if they have an update or fix for you.

    If changing the theme doesn’t help, you’ll want to deactivate all plugins except for WooCommerce and take a look. If that fixes the problem, re-enable the other plugins one by one (gradually), checking after each, to see where the issue is coming from.

    If you don’t want to test on your live site, then create a staging site using a plugin called WP Staging.

    Let us know how this goes!

    Thread Starter st3lyn

    (@st3lyn)

    Hi @roxannestoltz ,

    thanks for the reply.

    I’ve applied Storefront on the staging site and (whilst the orginial theme – + buttons are gone) I have no input quantity at all on Storefront.

    https://climbing-hare-dev.10web.site/shop/accesorii-pentru-handmade/accesorii-mercerie-jucarii/margele-din-lemn-forma-inima/

    The theme provider believes ” <input type=”hidden”… ” is the culprit and that they are not causing it. Even with all other plugins deactivated this “hidden” value stays the same.

    So…solution would be to change “hidden” to something else? But to what, where and how?

    LE: this is only a problem on variable products

    • This reply was modified 3 years, 3 months ago by st3lyn.
    Roxy

    (@roxannestoltz)

    Hi @st3lyn ,

    Thanks for providing an update!

    Please could you navigate to Dashboard → Products, and then click to edit a product that is exhibiting this behavior. On the product edit screen, scroll down to Product DataInventory and check if you have the Sold individually: “Limit purchases to 1 item per order” option enabled:

    To clarify, if this option is enabled, it automatically disables the quantity selector button for this specific product, as a user is not able to purchase more than one of this item.

    Should this option be disabled and the issue is still present, would you please share the following information in order for us to get a better understanding of your sites current environment:

    • System Status Report: navigate to WooCommerce → Status. Select Get system report and then Copy for support.
    • Fatal Error log: Share a copy of any fatal error log found under WooCommerce → Status → Logs.

    Once you have these, please share them in your response here

    Cheers!

    Thread Starter st3lyn

    (@st3lyn)

    Hi,

    so what happens is this (conclusions after debating with the theme provider support):

    1. sold individually is not checked
    2. from Woocommerce version 7.4 apparently the behaviour of variable products has changed: (old version) articles with manage stock ticked on the main/ parent product that usually of course have no stock but user had to put 1 in stock to show as “in stock” for Woo blocks where “true” out of stock products is unchecked….. (new version) manage stock with 1 on stock on main product disables the qty selection as it is somehow redundant
    3. now, on new behaviour, user needs to put 0 stock on main product and now the qty selection is allowed on variations

    A bit of a confusing change and unfortunate effects, as both options (0 stock or old 1 stock that users were forced to use) could have been left on for the functionality not to break. Wonder how a true distinction can be made between out of stock products that need to be hidden from blocks and variable products that of course do not have stock on parent.

    Thank you for your help!

    • This reply was modified 3 years, 3 months ago by st3lyn.

    Hi @st3lyn

    Thanks for providing us with further information about your setup here. I was able to replicate the issue on my end.

    We’ve opened up a Github Report here and you can add your comments in the thread if you still have further information about it.

    Hope this helps!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Hidden quantity on variable products page’ is closed to new replies.