Theme not compatible with Measurement Price Calculator

3 replies2 participantsUpdated by Olga Barlow

  • Avatar: clickbizz
    clickbizz
    Participant

    The theme is not compatible with Measurement Price Calculator of WooCommerce.

    In ‘etheme.js’ i found this.

    var data = {
                    action:         'et_woocommerce_add_to_cart',
                    product_id:     form.find('[name="add-to-cart"]').val(),
                    quantity:       form.find('.qty').val(),
                    variation_id:   form.find('[name="variation_id"]').val(),
                    variation:      variation,
                };

    So the data of the plugin is not send to your add to cart hook.
    Is it possible to fix this, without making the theme or plugin un-updateable?

    3 Answers

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    Go to Theme Options > Single Product > Ajax Add to cart > off. Try if add to cart work when the Ajax add to cart is disabled. As a rule, such plugins use POST method to add to cart and are not compatible with Ajax.

    Regards

    Avatar: clickbizz
    clickbizz
    Participant

    Hi Olga,

    Yes this is a solution.

    Thank you!

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    Great. You are welcome!

    Regards

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register