Add to Cart button not hiding for Out of Stock Variable product

7 replies3 participantsUpdated by Robert Hall

  • Avatar: sifagroup
    sifagroup
    Participant

    Hi,

    The Add to Cart button does not disappear for Variable products when they are set to “0” qty using the global stock management for the product, rather than having to manually change every variable to Out of Stock. It also still shows “Select Options” on the button on the shop page, even though it should say “Read More” for out of stock products.
    I have tried disabling all other plugins but it’s still having the issue.

    Also, we’re getting two separate Cart Totals sections appearing on the cart page as well as an extra “Calculate Shipping” section. So we’re seeing THREE calculate shipping sections on the cart page.

    Hopefully there is a fix soon?

    Thanks

    Please, contact administrator
    for this information.

    7 Answers

    Avatar: Robert Hall
    Robert Hall
    Participant

    Hello,

    1) As I see ‘Add to cart’ button disappears for Out of Stock products. http://prntscr.com/75dsoe

    2) You can comment the code <?php do_action( 'woocommerce_cart_collaterals' ); ?> in the file wp-content/themes/woopress/woocommerce/cart/cart.php on line 176. Please clear browser cache and check.

    Also your credentials aren’t correct.

    Regards,
    Robert Hall.

    Avatar: sifagroup
    sifagroup
    Participant

    Hi Robert,

    I have commented out that code and it has indeed removed the bottom cart total section, but we were still getting two shipping calculators on the page.
    The first appears below the coupon code section, which I’ve removed for now, the second appears within the woo commerce totals section under SUBTOTAL. I’d like to remove this one instead as it doesn’t look right.
    When will you be releasing a new version of the theme to fix this and be up to date with the latest version of WooCommerce?

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Please provide us with FTP credentials.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: sifagroup
    sifagroup
    Participant

    Hi,

    Here are the FTP details below.

    Thanks

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    I’ve uncommented the code in cart.php file and added this code in custom.css file:
    .bag-total-table {display: none !important}
    Please check your Cart page now.

    Regards,
    Eva Kemp.

    Avatar: sifagroup
    sifagroup
    Participant

    Hi,

    Thanks, it’s almost working well. Except it now has a big empty white space to the right of the Coupon section. Can the Cart Totals go their like it was previously?

    Thanks

    Avatar: Robert Hall
    Robert Hall
    Participant

    Hello,

    Please try to add this code in custom.css file

    .woocommerce-cart .woocommerce .row.do-x-col
    .cart-collaterals{
    float:left;
    }
    .cart-collaterals{
    margin-top: -10px;
    }
     

    Regards,
    Robert Hall.

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register