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

This topic has 8 replies, 3 voices, and was last updated 8 years, 11 months ago ago by Robert Hall

  • Avatar: sifagroup
    sifagroup
    Participant
    May 15, 2015 at 03:03

    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
    Support staff
    May 15, 2015 at 07:27

    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
    May 19, 2015 at 02:03

    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
    Support staff
    May 19, 2015 at 08:48

    Hello,

    Please provide us with FTP credentials.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: sifagroup
    sifagroup
    Participant
    May 20, 2015 at 06:48

    Hi,

    Here are the FTP details below.

    Thanks

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    May 20, 2015 at 09:41

    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
    May 21, 2015 at 05:23

    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
    Support staff
    May 21, 2015 at 07:15

    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.

  • Viewing 8 results - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.