• Resolved mrplan25

    (@mrplan25)


    Installed and working on Variable product pages.

    Every time I follow these steps I have a bug issue.

    #1 Go to page with variable product (for example – size)
    #2 Add size Large – Ajax works, it is added to the cart
    #3 Remove variable choice from the size menu within the variable product page
    #4 press add-to-cart (with no variable selected) – The ajax adds the product to the cart with no variable. In fact I can add an infinite amount of this non-existent variable product and it appears in the cart and will allow me to buy it.

    It should give me an error instructing me to pick a variation. This error does happen if you click the Add-To-Cart before step #2.

    Please note, due to heavy A/B testing I have found that not showing the Add-To-Cart button until a variable choice is selected lowers overall sales. So I do have “Display: Block !important” on the Add-To-Cart for all products.

    https://www.ads-software.com/plugins/woocommerce-ajax-add-to-cart-for-variable-products/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Rishi Mehta

    (@rcreators)

    Hi,

    I think there is a issue with your theme. Try same for WordPress default theme, you will find that if there is no variable selected, you will not get add to cart button. So if you are getting add to cart button without selecting variation on variable product, it means there is a issue with your theme. Also this functionality is default woocommerce functionality. So mostly it breaks somewhere in your theme.

    Let me know, if you didn’t get it working on wordpress default themes as same. so than i can put it in bug checking and release update for same.

    Thread Starter mrplan25

    (@mrplan25)

    There is no bug in the theme as stated in the post I have overwritten the woo css to always display the add-to-cart button due to heavy A/B testing. This works with no issue. Your plugin works fine and even shows an error if you try to add a product before selecting a variation, but if you follow what I listed (even on the default theme, with the 1 line of .css changed) the plugin does not state an error it simply adds a non-existing product to the cart. The should be an error stating to pick a variation.

    Plugin Author Rishi Mehta

    (@rcreators)

    Hi,

    I like to know is that anything you are using for variable products, any other plugin ? Cause i already tested plugin as per your steps.

    1) tried to add product without selecting variation – error.
    2) tried with selecting variation – success
    3) again cleared variation and tried without variation – error.

    Here are Quick Screen shots with default themes.

    1) https://prntscr.com/6zzouc

    2) https://prntscr.com/6zzp66

    3) https://prntscr.com/6zzpva

    As per procedure it only adds 1 product in cart. – https://prntscr.com/6zzqa4

    Basically i know what you saying, it not supposed to add product without selecting variation and which works fine in plugin, you need to check with you theme, other plugin or any custom js which can conflict with each other in that.

    Also it will still work perfectly and shows error if i forced add to cart button display as block. I already tested above with that simple css code added in style.

    Thread Starter mrplan25

    (@mrplan25)

    Ok it looks like it is a plugin conflict with Woocommerece’s own plugin “Woocommerece Variation Swatches and Plugins”…

    Any suggestions for getting them to work together. Getting this Jquery error on the product page.

    GET [url]/undefined 404 (not found. – jquery.js?ver=1.11.2:3

    Plugin Author Rishi Mehta

    (@rcreators)

    Hi,

    do you have demo url to test, in starting i tested plugin with woocommerce variation swatches. It was working fine. But recently there are lots of update pushes by woocommerce and for other plugins. so i am unable to test it for all plugins.

    Let me know testing url, i will check error and try to solve the issue.

    Plugin Author Rishi Mehta

    (@rcreators)

    Marking it resolved as no response from month.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Possible Bug’ is closed to new replies.