-
AuthorPosts
-
April 14, 2016 at 4:58 pm #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.jsIsaac
April 15, 2016 at 7:10 am #614582Hi 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,
BasilisApril 15, 2016 at 7:24 am #614591Just did that and it’s throwing another error entirely:
Uncaught TypeError: wp.template is not a function
April 15, 2016 at 7:26 am #614593Can you please take time to check this out, customer is revoking this contract today if it doesn’t work. PLEASE
April 15, 2016 at 7:39 am #614598Hey!
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 updatedIf 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,
VinayApril 15, 2016 at 8:27 am #614619Thanks 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.April 15, 2016 at 10:14 am #614686I’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, 8 months ago by Pixelbits.
April 16, 2016 at 9:54 am #615386Hi,
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,
RikardApril 16, 2016 at 11:13 am #615427I’m sorry – but is this the support I’m paying for? I did pay for support yesterday – just checking if this is it??
April 16, 2016 at 11:30 am #615430This 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.
April 19, 2016 at 1:34 am #616974Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.