Hi Team ,
I have an array on my website that will hold several values when a user clicks the "add to cart" button. I have also created a context variable to set the values from the array, but during execution, I was unable to obtain the values from the context variable
Solved! Go to Solution.
Views
Replies
Total Likes
Hello @sarjoon
Try changing setValue code to this:
document.controller.setValue("/ctx/vars/cartData",cartItems);
console.log(document.controller.getValue("/ctx/vars/cartData"))
Views
Replies
Total Likes
Hello @sarjoon
Try changing setValue code to this:
document.controller.setValue("/ctx/vars/cartData",cartItems);
console.log(document.controller.getValue("/ctx/vars/cartData"))
Views
Replies
Total Likes
Hi @sarjoon,
Were you able to resolve this query on your own or do you still need help here? Do let us know.
Thanks!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies