WordPress.org

Forums

WooCommerce - excelling eCommerce
[closed] Variable Product not showing ADD TO CART (Yes ive tried all fixes listed) (33 posts)

  1. abductedrecords
    Member
    Posted 1 year ago #

    http://abductedrecords.com/product/alien-army-tee/

    Here is an example page. It seems like this is a common issue. I have done the following:

    1- Tried the cookie fix plugin listed
    2- Tried disabling all other plugins
    3- There is no variable template override
    4- I have replaced all the core pages with the updated versions (template overrides)
    5- Disabled all JS files

    Im super frustrated and have a shipment of new products incoming next week. Please help if u can!

    https://wordpress.org/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 1 year ago #

    Looks to me its caused by your theme. Switch to 2012 theme and re-test.

  3. abductedrecords
    Member
    Posted 1 year ago #

    is there something specific you see in the theme or are you just saying that because its a modified layout?

  4. varktech.com
    Member
    Posted 1 year ago #

    Hi,
    You've got 2 different sets of JS errors. 1st is a prettyphoto error which pops up then is superseded by

    Timestamp: 2/23/2014 1:42:03 PM
    Error: Error: Permission denied to access property 'toString'

    Disabling all your js will not, I believe, be a reasonable test, as if memory serves, woo needs js to supply the variation pricing.

  5. Roy Ho
    Member
    Posted 1 year ago #

    I see in the error console.

  6. evanspj
    Member
    Posted 1 year ago #

    I have the same problem.

    On a WooCommerce variable product type with multiple variations the ADD TO CART button is not shown e.g.
    http://emarkingassistant.com/product/emarking-assistant-1-year-license-with-multi-user-discount/
    On the same site where there is a simple product the ADD TO CARD BUTTON is shown e.g,.
    http://emarkingassistant.com/product/sample-test-product/

    This problem seemed to appear when I upgraded to WC 2.1.2

    If anyone has a suggestion for how to resolve this I would be VERY thankful

    Peter Evans emarkingassistant.com

  7. Roy Ho
    Member
    Posted 1 year ago #

  8. leehodson
    Member
    Posted 1 year ago #

    Check that each variation has a price. Woo won't show add to cart or the variations in the dropdowns if the prices are not present for each product variation.

  9. evanspj
    Member
    Posted 1 year ago #

    @leehodson ... yes each of the variations has a price.

    @Roy ... I installed your plugin but the ADD TO CART button still is not displayed when I go to the page but... BUT see below

    I have established another test variable price product and found the following. The ADD TO CART is NOT displayed when the page is first displayed BUT it is displayed as soon as I pick one of the variations. You can see this at:
    http://emarkingassistant.com/product/sample-variable-product/

    On a WooCommerce variable product type with multiple variations the ADD TO CART button is NOT shown e.g.
    http://emarkingassistant.com/product/emarking-assistant-1-year-license-with-multi-user-discount/

    On the same site where there is a simple product the ADD TO CARD BUTTON is shown e.g,.
    http://emarkingassistant.com/product/sample-test-product/

    Does anyone else have any suggestions for troubleshooting this??

    Any and all assistance gratefully received.

    Peter Evans

  10. Roy Ho
    Member
    Posted 1 year ago #

    @evanspj - trust me the plugin worked. You previously had JS errors of jQuery cookie not found. The plugin fixes that.

    And yes that is how add to cart works. You must select a variation before the add to cart shows.

  11. leehodson
    Member
    Posted 1 year ago #

    Have you set a default product out of your variations so that one variation shows when the page first loads?

  12. evanspj
    Member
    Posted 1 year ago #

    The problem now appears to be solved. The difficult bit was working out which was the right problem or how they interacted.

    Yes, the http://splashingpixels.com/woocommerce-jquery-cookie-js-error/ plugin does indead work ... thank you @Roy

    But another issue that caused me to wander up and down blind alleys was I had a short code in some commented out HTML which appears to have been stopping some JS on the WooCommerce page to work. I naively thought that if the short code was in a HTML comment i.e. <!-- [theShortCode] --> then it would not be called.

    Oh Well,
    Peter Evans

  13. Lee
    Inactive
    Posted 1 year ago #

    Glad you got it resolved.

    Little tip re shortcodes, WP won't parse shortcodes that are double bracketed e.g. shortcode though the shortode tag will display on the front end of the site. HTML comments added in the text editor (not the visual) shouldn't display on screen at all.

  14. abductedrecords
    Member
    Posted 1 year ago #

    Damn, its a theme issue. well this will be fun to troubleshoot :(

  15. Shocked
    Member
    Posted 1 year ago #

    Hello- We are having the same issue with our variable product pages not containing the "Add to Cart" button. Non-variable items are fine.

    We have added the Woocommerce-jquery-cookie plugin AND confirmed that all variables (in this case sizes) contain a price...NO LUCK!

    Have any of you found any additional leads? Yes, our plugin and site theme are up-to-date.

    THANKS!

  16. SamShives
    Member
    Posted 1 year ago #

    Same here! I am using Mystile 1.2.17 Framework 5.5.5 and WooCommerce 2.1.6

    Everything had been fine but sometime recently I lost all the "Add to Cart" button on all variable products. I have done various fixes found online from modifying my function.php folder to trying to find my /woocommerce/simple-product/add-to-cart.js file to delete (which didn't exist in my Directory)

    What is going on? Why did we lose this functionality and there seems to be no clear answer on how to fix it?

    https://americanmadeglasspipes.com/product/white-gandalf-pipe/

  17. zxf2014
    Member
    Posted 1 year ago #

    hi

    i hv this latest Version 2.1.6, the variable product still not show the add-to-cart button..

    please help or direct me to the right link

  18. leehodson
    Member
    Posted 1 year ago #

    Make sure you set a price for every variation.

  19. zxf2014
    Member
    Posted 1 year ago #

    hi leehodson,

    yes , i have set a price ,,

    step 1 : select variable product - input the sku #
    step 2 : create the attirubute - with the value "|" and check box for user for variation
    step 3 : at variation -- select the attirbute and input the $$$

    save it ..

    but still now shown

  20. zxf2014
    Member
    Posted 1 year ago #

    a simple product is able to see the add-to-cart

  21. leehodson
    Member
    Posted 1 year ago #

    Have you set a default product to display for the variation?

    I'd check whether the Add to Cart button displays when a different theme is in use.

    You might have a plugin installed that is interfering with the button's display.

    Does this happen when you define attributes and terms under WooCommerce > Attributes then add the attributes to the product from the predefined ones?

    http://docs.woothemes.com/document/product-variations/

  22. zxf2014
    Member
    Posted 1 year ago #

    let me check it out

  23. zxf2014
    Member
    Posted 1 year ago #

    I remove the product --> attrbute
    add woocommerce-> attribute

    same result.

  24. leehodson
    Member
    Posted 1 year ago #

    How is it in different web browsers?

    Off the top of my head, I can't think of any other simple solutions than those I've suggested above.

    A more complex test: create a duplicate of the site, switch to the duplicate then change the duplicate site's theme to 2014, disable all plugins except for WooComerce then test for the button. If the Add to Cart button still fails to show in the duplicate site it would suggest a product or WooCommerce configuration issue.

  25. leehodson
    Member
    Posted 1 year ago #

    One more idea: have you ticked the boxes under the variations tab that say "Display on product page?" and "Display in variations?" (or something like that).

  26. whereskarlo
    Member
    Posted 1 year ago #

    I know the solution. Follow this carfefully:

    1. Make sure each variation has a price
    2. AFTER you click "update", scroll down to the variations
    3. Notice that all variations have lost their attribute
    4. Re-add all attributes
    5. Click update
    6. Your attributes are now saved
    7. View the product on your website

    Whenever you update your product, your variation attributes will disappear. Variations without attributes don't show (and can't be added to cart). So, after you update a product, scroll down and re-set all attributes for each variation, then save again. This time the attributes will be saved.

    You have to repeat this exact process every time you change a variable product.

  27. zxf2014
    Member
    Posted 1 year ago #

    yes ,, have follow the step ..
    have only one variation and one attribute

    --
    when i update the product .. the variation setting is still intact

    i have follow the step ..

    no different .. same result .. the aadd-to-cart button not shown

  28. SamShives
    Member
    Posted 1 year ago #

    My issue was resolved by working through the plugins and de-selecting an automatic j-query string removal on "Remove query strings from static resources" Plugin.

    Thanks!

  29. zxf2014
    Member
    Posted 1 year ago #

    Sam: i am new to this , do not know where to find the "remove query string from static resource"

  30. elina7191
    Member
    Posted 1 year ago #

    Hi ! i have the same problem with the add to cart button ,look -- > http://www.artollo.com/gallery/air-dance/

    i really need you help! :)

    Version 2.1.7

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.