- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 14.05.23, 18:26
- Opened by: John
- Closed by: Anonymous Submitter
- Closed on:
- Reason: Not a bug
Ticket #24656 - script error
Hi,
I have a module that uses this function on product page
prestashop.on( 'updatedProduct', function (event) { if (typeof jsonmnqty[prod_id][event.id_product_attribute] != "undefined" ) {
now, when creative elements is disabled (theme settings > product page ? default (native theme layout)
it works fine.
But when creative elements enabled (Hook DisplayProductBuilder) i get error in console
Uncaught TypeError: can’t access property “val”, jsonmnqty[prod_id][event.id_product_attribute] is undefined
Comments
Hi, John.
There is no such code in our theme. That’s maybe some third party module added it there