WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[closed] Checkout button not showing on Woo commerce product (83 posts)

  1. keithkranc
    Member
    Posted 1 year ago #

    I have a variable product set up in Woo Commerce and the "add to cart" button is gone. Any ideas on why that has happened?

    The page is: http://pdda.org/shop/wristbands/

    Thanks,
    Keith

    http://wordpress.org/extend/plugins/woocommerce/

  2. SiteGround
    Member
    Posted 1 year ago #

    Hello,

    I think that you have created a Variable product but didn't enter prices for all the variations you've set for that product (Quantity 1,5,50,100). If you want the same price for all variations, open the product, go to the variations tab, click the Add variation button and select Any Quantity. Finally add price for the product and the Add to Cart button will be rendered.

    Hristo
    [ Signature moderated. ]

  3. keithkranc
    Member
    Posted 1 year ago #

    Thank you. It is a variable product, because people can buy the wristband 5 different options of quantities that we have chosen.

    I went into the variation settings and all the pricing I had already set was gone. They all showed zero, so I added pricing back into each variation. After that the shopping cart showed up again at the bottom of the description (because of shortcode) but the add to cart button is still missing.

  4. SiteGround
    Member
    Posted 1 year ago #

    Hello,

    I totally agree that this could be a bit less confusing. All could be easier if there was an AJAX-powered Save button.

    First, you need to go to the Attributes tab, add the ones you need, mark the Used for Variations and optionally Visible on the Product Page and then hit the Update button at the top-right part of the page. That will cause the page to reload with the saved attributes.

    Once you have active attributes for the product, go to the Variations tab. In your case, you can simply click the Link All Variations button. Then enter prices for all variations and hit the Update button once more. The Add to Cart button should appear on your shop page now :)

  5. keithkranc
    Member
    Posted 1 year ago #

    Add to cart button is there now but now the prices are showing $0 in the cart. (And The prices used to show correctly) I am getting this message when I click add to cart http://screencast.com/t/dVl7yHSw

    And the cart checkout section that I added with a shortcode does not even show up in Safari.

  6. SiteGround
    Member
    Posted 1 year ago #

    Make sure that you have prices set for all of the active product variations. I think that you've added a variation without price and the system cannot calculate the overall product cost due to that reason.

  7. keithkranc
    Member
    Posted 1 year ago #

    I thought I had prices set. Here's a video of the admin http://screencast.com/t/pS6IANUra

  8. SiteGround
    Member
    Posted 1 year ago #

    If I were you, I would change the product type back to Simple and hit update clearing all associated Attributes and Variations. Then simply add them again. Maybe something went wrong triggering a bug. I am afraid that I cannot tell more without looking at the actual admin area but setting the product anew seems to be the best approach.

  9. keithkranc
    Member
    Posted 1 year ago #

    I just did that and it didn't seem to work. Would you possibly be able to log in and take a look at it? I will pay you for it.

    Thank you,
    Keith

  10. SiteGround
    Member
    Posted 1 year ago #

    Hello,

    Send me your login details at [email address moderated - this forum does not provide support via email] . No need to pay for that, mate :)

  11. keithkranc
    Member
    Posted 1 year ago #

    Awesome thank you! I just emailed you....

  12. SiteGround
    Member
    Posted 1 year ago #

    Fixed :)

    In woocommerce/woocommerce-functions.php I have commented out the following lines:

    // Only allow integer variation ID - if its not set, redirect to the product page
    //if (empty($_REQUEST['variation_id']) || !is_numeric($_REQUEST['variation_id']) || $_REQUEST['variation_id']<1) {
    //	$woocommerce->add_error( __('Please choose product options&hellip;', 'woocommerce') );
    //	wp_redirect(apply_filters('woocommerce_add_to_cart_product_id', get_permalink($_REQUEST['product_id'])));
    //	exit;
    //}

    This seems to be a bug that will be fixed in the next release according to the plugin author and his comments in GitHub :) I now made a new product and placed an order successfully. To test the entire process I had to add a payment method. I enabled Payment on Delivery because it's the easiest one to test!

    Best of luck with your website!

  13. keithkranc
    Member
    Posted 1 year ago #

    Thank you very much I appreciate it!!

    -Keith

  14. keithkranc
    Member
    Posted 1 year ago #

    Hi-

    I changed up the way added these products. I created a separate product for each quantity pack and it works much better now.

    But I have another question - on http://www.pdda.org/shop how do I get the Proceed To Checkout button to show up if someone clicks "add to cart" from that page? I tried adding the shortcode but it isn't looking right.

    If you click on the product first then the add to cart and checkout work fine, but not from the Shop page.

  15. Sjobidoo
    Member
    Posted 1 year ago #

    I've tried the above sollution myself with no luck.

    Using WooCommerce version 1.6.5.2 and no "Add to cart" button appear on any of my variable products. Prices are set on all variables...

    Also tried commenting out the above code from woocommerce-functions

  16. Myloomedia
    Member
    Posted 1 year ago #

    Sjobidoo,

    Got the same problem it seems a bug.
    If i set to variable the cart button disappeers

  17. SiteGround
    Member
    Posted 1 year ago #

    If I were you, I would add the Cart widget in the right column only on this page. This way your visitors will see their shopping cart all the time!

  18. Sjobidoo
    Member
    Posted 1 year ago #

    If I were you, I would add the Cart widget in the right column only on this page. This way your visitors will see their shopping cart all the time!

    Not sure if we're talking about the same thing here...

    I was referring to the "Add to cart" button...not the shopping cart / contents itself.

  19. Myloomedia
    Member
    Posted 1 year ago #

    i meant also the add to cart button....
    and @siteground this is also set it is strange that when i set it to variable the "add to cart" button is gone.

  20. Sjobidoo
    Member
    Posted 1 year ago #

    @Myloomedia: sorry..was referring to SiteGround's comment :) Added quotation for clarification :)

  21. SiteGround
    Member
    Posted 1 year ago #

    My first answer was for keithkranc (about the Cart widget). I have a live website running with a lot of variable products without any issues. Have you tried re-creating your items? First, save them simply as variable products, then add the Attributes and make sure the "Use for variations" check is checked, save again and then add the attributes as variations. Finally, save again. Sometimes, attributes don't get saved, or you do too many changes in one save and things get messy...

  22. Sjobidoo
    Member
    Posted 1 year ago #

    Tried recreating the products from scratch as you mentioned without any luck unfortunately. Also checked that the attributes are actually saved. They show up in the select list on single product view...but nothing happens when changing the value of the select list...no add to cart button :/

  23. Sjobidoo
    Member
    Posted 1 year ago #

    Se example here

  24. Myloomedia
    Member
    Posted 1 year ago #

    same here

  25. keithkranc
    Member
    Posted 1 year ago #

    Thank you Siteground - that widget worked for showing the cart and checkout on the Shop page.

    -Keith

  26. keithkranc
    Member
    Posted 1 year ago #

    I also have a couple other issues now on checkout. How do I remove the "terms and conditions" section?
    http://screencast.com/t/P2S15XUEequ

    And I am also getting a message that there are "no available payment methods for my state" and the billing address information above automatically filled out all the fields with my client's information - his address and phone number. And I didn't even enter that information. He told me it is doing the same thing for him. (He is in Louisiana and I am in Washington)
    http://screencast.com/t/v3fVXlXPa9f

  27. SiteGround
    Member
    Posted 1 year ago #

    @Sjobidoo and @Myloomedia, I am afraid that without the login details I cannot fix this. I asked Keith to mail me the credentials but then it turned out that that's against the rules.

    The only thing I can think of without having access to the admin area is that you have Stock enabled for those items. If so, you need to enter a number in the Quantity field to have the Add to Cart button displayed.

  28. Myloomedia
    Member
    Posted 1 year ago #

    tell me how to contact you ?

    [ Moderator note: This forum does not provide support via email. ]

  29. SiteGround
    Member
    Posted 1 year ago #

    Please make me screenshots of the General, Variations and Attributes tabs for this product. I am afraid that I cannot give yo my email address since that would be against the forum rules. However, I will do my best to assist you with that issue.

  30. Myloomedia
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic