Home › Forums › Bug Reports and Feature Requests › Woocommerce communication not working
- This topic has 18 replies, 5 voices, and was last updated 3 years, 9 months ago by Alexander Kovelenov.
-
AuthorPosts
-
2020-01-20 at 7:58 am #22941dgarcialopezParticipant
Hello
I am planing to use Verge3D in a woocomerce website. I followed the tutorial “Making 3D Product Configurators for WooCommerce”(https://youtu.be/dJdUKwSxA8c). I uploaded spinner demo to one product and seems that the connection with woocommerce atributes is not working. Color balls hide correctly but materials does not change with the dropdown menus.
http://dglvisual.com/vaultiria/?product=test-3d
http://dglvisual.com/vaultiria/wp-content/uploads/verge3d/9/spinner.htmlThe console displays this error:
visual_logic.js:601 Uncaught TypeError: Cannot read property ‘color’ of undefined
at wooProductAttribute (visual_logic.js:601)
at visual_logic.js:805
at visual_logic.js:757
at XMLHttpRequest.<anonymous> (woo_product.js?ver=5.3.2:52)wooProductAttribute @ visual_logic.js:601
(anonymous) @ visual_logic.js:805
(anonymous) @ visual_logic.js:757
(anonymous) @ woo_product.js?ver=5.3.2:52
load (async)
v3d_woo_request_product_info @ woo_product.js?ver=5.3.2:48
trigger @ jquery.js?ver=1.12.4-wp:3
a.event.trigger @ jquery-migrate.min.js?ver=1.4.1:2
(anonymous) @ jquery.js?ver=1.12.4-wp:3
each @ jquery.js?ver=1.12.4-wp:2
each @ jquery.js?ver=1.12.4-wp:2
trigger @ jquery.js?ver=1.12.4-wp:3
t.onChange @ add-to-cart-variation.min.js?ver=3.8.1:1
dispatch @ jquery.js?ver=1.12.4-wp:3
r.handle @ jquery.js?ver=1.12.4-wp:3
ListPicker._handleMouseUp
I am trying it in a plain wordpress site, only woocomerce and verge3d plugins are installed.
Wordpress 5.3.2
Woocommerce 3.8.1
Verge3D plugin 2.16.1
Verge3D blender 2.17.1
Blender 2.812020-01-20 at 12:42 pm #22944Yuri KovelenovStaff2020-01-20 at 4:51 pm #22954dgarcialopezParticipantAll variations are added with a given price. I think it could be something connected with woocommerce version, in which version you tried it?
2020-01-21 at 8:32 am #22966Yuri KovelenovStaffThe version is the same. Looks like your woocommerce callback returns {status: error}, which hints a server-side problem.
I wonder if you change your app name from ‘test-3d’ to some other name (or like in the tutorial)? In other words, try to be as close to the guide as possible. We need to understand the reason.2020-01-21 at 11:00 am #22973dgarcialopezParticipantI deleted the previous product and added a new one following strictly the tutorial and it works the same with the same error.
http://dglvisual.com/vaultiria/?product=spinner
I also tried with other projects trying to just print the atribute selected in the console and it gives the same error
2020-01-21 at 12:22 pm #22975Yuri KovelenovStaff2020-01-21 at 1:48 pm #22981dgarcialopezParticipantI’ve just send the admin login through a message in the contact form of your website.
Thanks!
2020-01-22 at 6:45 am #22993Yuri KovelenovStaff2020-12-19 at 6:09 pm #36697zordansParticipantHi, I’m also having the same problem.
I found out that disabling the plugin resolves it.
Furthermore, with the plugin enabled, also other products without the Verge3D viewer can’t go past the Buy button.How can I manage to make it work?
Attachments:
You must be logged in to view attached files.2020-12-20 at 1:01 pm #36713zordansParticipantHere is what I’m getting.
When clicking on the different options, the spinner doesn’t change it’s color or size.
The add to cart button also is disabled and greyed out.
Clicking on it gives this warning: “Please select some product options before adding this product to your cart.”I’m also getting some new errors and warnings with the Verge3D plugin installed.
Is there a way to fix it?
Attachments:
You must be logged in to view attached files.2020-12-21 at 5:51 am #36724Yuri KovelenovStaff2020-12-21 at 10:12 am #36758zordansParticipantHi,
I tried to switch between the standard theme and also other ones. Still not
2020-12-23 at 5:49 am #36839Yuri KovelenovStaffI’m also getting some new errors and warnings with the Verge3D plugin installed.
could you please provide more details?
2020-12-23 at 2:28 pm #36846zordansParticipantHere is what I’m getting loading the page:
Uncaught ReferenceError: wc_add_to_cart_params is woo_product.js?ver=5.6:52 not defined at v3d_woo_request_product_info (woo_product.js?ver=5.6:52) at v3d_woo_get_product_info (woo_product.js?ver=5.6:38) at wooGetProductInfo (visual_logic.js:1121) at Object.PL.init (visual_logic.js:1167) at spinner.js:88 at v3d.js:1 v3d_woo_request_product_info @ woo_product.js?ver=5.6:52 v3d_woo_get_product_info @ woo_product.js?ver=5.6:38 wooGetProductInfo @ visual_logic.js:1121 PL.init @ visual_logic.js:1167 (anonymous) @ spinner.js:88 (anonymous) @ v3d.js:1 setTimeout (async) (anonymous) @ v3d.js:1 (anonymous) @ v3d.js:1 (anonymous) @ v3d.js:1 (anonymous) @ v3d.js:1 Promise.then (async) (anonymous) @ v3d.js:1 ri @ v3d.js:1 compileAsync @ v3d.js:1 _precompileSceneAsync @ v3d.js:1 o.renderer._resizeCb @ v3d.js:1 (anonymous) @ v3d.js:1 (anonymous) @ v3d.js:1 Promise.then (async) R_.parse @ v3d.js:1 parse @ v3d.js:1 (anonymous) @ v3d.js:1 (anonymous) @ v3d.js:1 load (async) load @ v3d.js:1 load @ v3d.js:1 loadScene @ v3d.js:1 loadScene @ spinner.js:83 (anonymous) @ spinner.js:40 (anonymous) @ v3d.js:1 Promise.then (async) loadLogic @ v3d.js:1 (anonymous) @ spinner.js:36 (anonymous) @ spinner.js:45 load (async) (anonymous) @ spinner.js:5
And that comes after clicking on a variable (Color: blue)
Uncaught ReferenceError: wc_add_to_cart_params is not defined at HTMLFormElement.v3d_woo_request_product_info [as woocommerce_variation_has_changed] (woo_product.js?ver=5.6:52) at Object.trigger (jquery.min.js?ver=3.5.1:2) at HTMLFormElement.<anonymous> (jquery.min.js?ver=3.5.1:2) at Function.each (jquery.min.js?ver=3.5.1:2) at s.fn.init.each (jquery.min.js?ver=3.5.1:2) at s.fn.init.trigger (jquery.min.js?ver=3.5.1:2) at HTMLSelectElement.t.onChange (add-to-cart-variation.min.js?ver=4.8.0:1) at HTMLFormElement.dispatch (jquery.min.js?ver=3.5.1:2) at HTMLFormElement.v.handle (jquery.min.js?ver=3.5.1:2)
2020-12-24 at 7:51 am #36865Alexander KovelenovStaffHi,
can you share your WordPress admin account with us (privately, via contact form) so that we could debug it? We’d appreciate that. -
AuthorPosts
- You must be logged in to reply to this topic.