Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #614117

    We get this error whenever we add variation to a product:

    Uncaught TypeError: Cannot read property ‘product_id’ of undefined

    It is caused by the file:
    wp-content/themes/enfold-child/woocommerce/assets/js/frontend/add-to-cart-variation.js

    Isaac

    #614582

    Hi douwj2!

    Please go to WooCommerce folder, and then templates. Go to the folder /assets/js/frontend/ and copy the add-to-cart-variations.js to your child theme.

    Let us know if that will solve your issue

    Best regards,
    Basilis

    #614591

    Just did that and it’s throwing another error entirely:

    Uncaught TypeError: wp.template is not a function

    #614593

    Can you please take time to check this out, customer is revoking this contract today if it doesn’t work. PLEASE

    #614598

    Hey!

    Please add the below code in functions.php

    function modify_jquery() {
    if (!is_admin()) {
    	wp_deregister_script('jquery');
    	wp_register_script('jquery', 'https://code.jquery.com/jquery-1.11.3.min.js');
    	wp_enqueue_script('jquery');
    }
    }
    add_action('init', 'modify_jquery');
    

    If you still have issues please check for a plugin conflict

    To find the plugin in conflict please follow the below steps

    1. Goto plugins page > Deactivate all active Plugins
    2. Updated WordPress and Enfold to latest version if you have not.
    3. Activate one plugin at a time… refresh the page and check for the issue.
    4. Make sure the plugins are all updated

    If that don’t resolve the issue we would like to take a closer look go ahead and create a temporary user with ‘administrator’ role and share in private content with permission to deactivate all plugins and add custom code if necessary to help you resolve this issue.

    Best regards,
    Vinay

    #614619

    Thanks Vinnie, we have done all the above, updated WordPress as well as deactivated all the plugins, still we get that error in the browser console. With that error, javascript is broken in the front end.
    The login details for admin is below as well as FTP.

    Kindly check this for us.
    Thank you.

    #614686

    I’ve got the same problem with products with a variantion. Normal products CAN be ordered. I’ll keep an eye on this thread.
    BTW: downgrading to wp 4.4.2 fixed ordering issues for me – so if you have IMMEDIATE problems. just rollback (copy old WP over your current).

    BACKUP FILE+DATABASE FIRST JUST IN CASE.

    • This reply was modified 8 years, 7 months ago by Pixelbits.
    #615386

    Hi,

    Thanks for the feedback @Pixelbits, much appreciated. If this is very urgent to you @douwj2, I think following the suggestion above would be a good idea.

    Best regards,
    Rikard

    #615427

    I’m sorry – but is this the support I’m paying for? I did pay for support yesterday – just checking if this is it??

    #615430

    This is the support you are paying maybe 55 $ for yes :)

    The problem is not only with Enfold and WooCommerce. There are more themes with problems with WooCommerce and variant products. I’m guessing this problem is larger then only the template. Sometimes the best fix takes some time and need to be worked out by different teams.
    The current fix is: roll back. It’s a 1 minute procedure and gets you up-and-running in no time while others try to find the problem.

    When I find a better 4.5 fix I’ll report it here (note: i’m not an official Kriesi-membner or something… jus happen to be in the same boat as you and a lot of others). If you can not fix the real problem:Roll back untill there is a fix.

    #616974

    Hey!

    Can you please try installing the plugin attached here and check if that helps? – https://support.woothemes.com/hc/en-us/articles/203104197-Variable-Product-Add-to-Cart-Not-Working


    @pixelbits
    Thank you for your input, we appreciate it :)

    Regards,
    Yigit

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.