WordPress.org

Forums

WooCommerce - excelling eCommerce
Can't add products to cart (45 posts)

  1. Corey
    Member
    Posted 2 years ago #

    Every time I try to add a product to cart, even when the the size has been selected and there is a given price, I get the message "Please choose product options…"

    Any idea how to fix this?

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

  2. Roy Ho
    Member
    Posted 2 years ago #

    Double check you have added a price for the variations, not the product itself. You will see a faint message telling you that "price is required" in the price field of the variations. Without setting it, in the frontend you will only see the dropdown to select an option and nothing else.

  3. Corey
    Member
    Posted 2 years ago #

    I tried adding prices to each variation, still no luck.

    http://www.coreytegeler.com/bolivares/shop/cruz-hand-knit-long-alpaca-scarf/

    Here's were I'm testing it.

  4. Roy Ho
    Member
    Posted 2 years ago #

    Well for you, you have JS errors on your site...correct that first.

  5. Corey
    Member
    Posted 2 years ago #

    How exactly can I get go about finding what errors I have?

  6. Roy Ho
    Member
    Posted 2 years ago #

    Sorry I can't help you there...But if you look at your console with any dev tool, it will tell you what errors your site is seeing.

  7. Corey
    Member
    Posted 2 years ago #

    Could you suggest a good dev tool to use?

  8. Roy Ho
    Member
    Posted 2 years ago #

    You can use either firebug for firefox or the built in chrome tools for chrome.

  9. sarthaksinghal
    Member
    Posted 2 years ago #

    There is a very high possibility that one of the existing plugin on your site is conflicting. Disable all plugins except woocommerce and then try.

  10. Corey
    Member
    Posted 2 years ago #

    I've tried disabling all plug-ins and all JS libraries, same issue always occurs.

  11. Corey
    Member
    Posted 2 years ago #

    Also, at one point every product worked, not sure what I could have done to mess this up :(

  12. doublesharp
    Member
    Posted 2 years ago #

    The problem is in your theme, not the plugins, specifically that it isn't loading the jQuery plugin "mobileMenu". In chrome the error is being reported on line 8 of /wp-content/themes/max-magazine/js/custom.js:

    Uncaught TypeError: Object [object Object] has no method 'mobileMenu'

    jQuery('#nav .menu').mobileMenu({
        defaultText: 'Navigate to...',
        className: 'select-menu',
        subMenuDash: '   –'
    });

    Comment this out and (assuming there aren't further errors) you should see the add to cart button.

  13. Corey
    Member
    Posted 2 years ago #

    Thanks! I just checked it out and realized there is nothing I even need in the custom.js file so I just deleted it and the script that was looking for it in the header so there are no more errors, yet I still get my original problem.

  14. Corey
    Member
    Posted 2 years ago #

    Any word on this?

  15. Roy Ho
    Member
    Posted 2 years ago #

    Have you check if it isn't your theme issue? Switch to 2012 theme and see.

  16. Corey
    Member
    Posted 2 years ago #

    Just tried it, same issue

  17. Roy Ho
    Member
    Posted 2 years ago #

    Switch it again and leave it so I can see...

  18. Corey
    Member
    Posted 2 years ago #

    Alright, you can check it now. It looses connection to the .css but you can still test the shop and see the problem

  19. Roy Ho
    Member
    Posted 2 years ago #

    No, if that happens you have other issues...If you switch it, it should be normal 2012 theme...Turn off all plugins...especially if you have caching plugin...clear your cache and save your permalinks again.

  20. Corey
    Member
    Posted 2 years ago #

    Well I know what the issue is, it's looking for a header that doesn't exist in the theme

  21. Roy Ho
    Member
    Posted 2 years ago #

    Why would it not exist if you switch to 2012 theme unless that theme was modified?

  22. Roy Ho
    Member
    Posted 2 years ago #

    Again, if you want help, please follow exactly as I say. Turn off ALL plugins except WooCommerce.

  23. Corey
    Member
    Posted 2 years ago #

    The theme I am using is modified a lot from it's original download

  24. Corey
    Member
    Posted 2 years ago #

    All plugins are turned off

  25. Roy Ho
    Member
    Posted 2 years ago #

    ....I am asking you to switch to 2012 theme that is not modified...the default theme.

  26. Corey
    Member
    Posted 2 years ago #

    The 2012 theme is not modified. The files in Woocommerce are looking for a header file that is only in my custom theme.

  27. Roy Ho
    Member
    Posted 2 years ago #

    Why would it do that? Did you modify the woocommerce plugin? Did you goto permalinks and click on SAVE as I asked?

  28. Corey
    Member
    Posted 2 years ago #

    I said I knew what the issue was and I fixed it.

  29. Roy Ho
    Member
    Posted 2 years ago #

    Ok so it was your theme yes? You should state that so it can help others...and please mark your topic resolved.

  30. Corey
    Member
    Posted 2 years ago #

    ...I mean the issue why the .css wasn't loading. I changed it to locate the default header. Now the 2012 theme is fully functioning and I was able to add a product to the cart.

    Now I just need to know how to fix my theme to work properly and I'm not sure what to do. Hence my initial question.

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