• Resolved mellow1

    (@cdsigns)


    First of all: Awesome plugin!

    We are trying to set it up and hope you can help us out:

    Several questions

    We have a store with variable products set up, and selected one of the variations to be default. This can be seen in backend and is checked. See screenshot attached.

    If we click on “+ add” for this product, inside the pop up the button is disabled.

    You need to first select the other variation, before you can add to cart. Which means if the ‘default’ was your choice, you have to click twice before adding product to cart.

    Screenshot-2021-02-21-at-18-20-17
    Screenshot-2021-02-21-at-18-20-43

    Variations not showing
    Also, we have many products with variations already in the store. With the Storefront theme this works great. Only in the pop up, we do not see the variations and there is no possibility to select any, or add to cart.

    The screen is stuck with a disabled button
    Screenshot-2021-02-21-at-18-27-03
    Screenshot-2021-02-21-at-18-27-20

    Simple product
    Is it possible for simple products to be added directly to cart? Without the pop up first?

    Thank you very much for the support

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author WP Scripts

    (@wpscripts)

    Hello @cdsigns

    Thank you for reaching out. We got the issue of inactive add to cart button when some value is selected by default from backend. It will be fixed with next version update.

    Regarding missing variations, we could not verify the scenario under which this could be happening, we are not able to recreate this issue. If you can give us little more idea then it would be helpful. In the same time please check that the variations which are missing are created properly with all valid data and prices.

    There is no way to add simple items directly cart skipping the popup. As other users have also given feedback on the issue, we will look in to it as soon as the major bugs and planned things are done for the plugin. Looking forwards to hear back from you.

    Thanks & Regards,
    Nisarg

    Thread Starter mellow1

    (@cdsigns)

    Hi Nisarg,

    Thank you so much for the amazingly fast reply. Would you happen to know when the next release will follow?

    Would a “workaround” be to not set up a default value so you can select the desired option and add to cart immediately?

    Missing variation
    I’m not sure what could be the issue with the variations. With the storefront theme for example the variable Cheeseburger product does work.
    Do these screenshots allow you to help us or would a link to staging be an option?
    Screenshot-2021-02-22-at-16-07-35
    Screenshot-2021-02-22-at-16-07-49

    Simple product
    Awesome, we understand and look forward to that release.

    Thank you so much, have a nice day

    Plugin Author WP Scripts

    (@wpscripts)

    Hello,

    jQuery(document).on('found_variation', function(e,t) {
      
        var variation_id = t['variation_id'];
        var $variations_default = jQuery(e['target']).find('.wfs-variations-default');
    
        if ($variations_default.length) {
          if (parseInt($variations_default.attr('data-click')) < 1) {
              setTimeout( function() {
                $variations_default.find('.wfs-variation-radio[data-id="' + variation_id + '"] input[type="radio"]').prop( 'checked', false );
              }, 100);
          }
        }
    });

    Above jQuery code can temporarily keep the default one unchecked. Please make sure to put it in js file out of the plugin, preferably put it in a custom js file in your activated theme. Hope this helps.

    Regards,
    Team WP Scripts

    Thread Starter mellow1

    (@cdsigns)

    Thank you so much. Seems like a solid workaround for now.

    Best of luck with the development for the next release

    Thread Starter mellow1

    (@cdsigns)

    @wpscripts so sorry, but the variation question for the “cola” and “fanta” part is still not working.

    In the pop up, you can not select anything and the add to cart remains greyed out. Even if we add a new variable product. Both variations have the same price, so in the backend there is only one variation

    Screenshot-2021-02-22-at-18-09-11

    Plugin Author WP Scripts

    (@wpscripts)

    Hello,

    The above code will keep the default variation unchecked. So, you can select that only available variation and click on add to cart. Is this flow not working for you ? Please do share the URL, so that we can check it as well.

    Regards

    Thread Starter mellow1

    (@cdsigns)

    For the products with variations that share one price, the add to cart button in the pop up remains “disabled”. Please see in store.

    The store can be found here: https://fdsolutions.nl/nazareth/

    • This reply was modified 4 years ago by mellow1.
    Plugin Author WP Scripts

    (@wpscripts)

    Hello,

    I checked the error. I think you should check the variation again and if possible delete it once and recreate fresh. That should fix the issue. This is just an assumption that something is wrong in creating it. Because we have never faced such issue or heard from any user of Food Store. Unless we check the settings how the variation is created, it’s hard to tell.

    Regards,

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Default value not working etc’ is closed to new replies.