• Nabetse

    (@nabetse)


    I while ago, after version 2 of the plugin, I noticed that for product quick previews on pages that were not product pages (the homepage, for example), it was throwing an error stating that the wc_variation_form function didn’t exist.

    I created this ticket in the past given further detail.

    It seems that the wc-add-to-cart-variation js woocommerce file (the file where wc_variation_form is declared) is not being loaded as dependency on non product pages.

    After adding such a dependency in a custom theme js file, the problem was solved.

    So I create this ticket giving solution to the one I created in the past, also hoping that this gets eventually properly addressed in the plugin core.

Viewing 1 replies (of 1 total)
  • Plugin Support fizanzvai

    (@fizanzvai)

    Hi,

    Thanks for reaching out to us. Can you please write the steps on how can I replicate the issue?

    I have tried to replicate it by creating a page and adding the WooCommerce shortcode to display products on the page.

    I couldn’t replicate that and swatches are working fine without any error on that page. For a deep inspection, you can also get help through our site.

    Hope to hear from you soon.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Add wc-add-to-cart-variation as js dependency on non product pages’ is closed to new replies.