Error expected string to be a id:id

Highlighted
New Member
4 0 0

Hi, I'm trying to trace what happened and what the cause is but can't find it after hours of trying. I need your help.


Whenever I try to add an item to the cart on the main product page (sample: https://havethisdelivered.com/collections/chicken/products/chicken-shumai-12-pcs) it says this error:
"Error expected string to be a id:id"
Here's the console warning:

POST https://havethisdelivered.com/cart/add.js 400

(anonymous) @ VM2719:1
n.send @ shop_events_listener-2c6237918c4bbec8783d8ceecd5759edc38afa9b5bef55134462710955517539.js:1
send @ jquery.min.js?v=3981015660919767462:4
ajax @ jquery.min.js?v=3981015660919767462:4
doAjaxAddToCart @ petica.js?v=10885083618088382896:1371
(anonymous) @ petica.js?v=10885083618088382896:2329
dispatch @ jquery.min.js?v=3981015660919767462:3
r.handle @ jquery.min.js?v=3981015660919767462:3

 

Whenever I try it via the collection page, it works: https://havethisdelivered.com/collections/appetizer

I don't know what caused the problem, please help me.

 

Thank you very muchScreen Shot 2020-04-02 at 8.02.50 PM.png

0 Likes
Highlighted
New Member
4 0 0

This has been resolved. I traced the code history and reverted what I've done on the previous versions. I don't know what was the cause though. :/

 

Thank you!

0 Likes
Highlighted
New Member
1 0 0

Hi janinep, could you please tell me how you did that? I am having the same problem!

Many thanks!

0 Likes
Highlighted
New Member
4 0 0

I think I messed us the products liquid template because when I reverted the edits I did on that page, it fixed the error. I am not sure what specific link of code what that though, sorry. :/

0 Likes