Assign Value to Existing Variable – Shopify
The goal is to check for an item in the shopping cart, then if it exists, reassign the item.product.id value another product ID. The assign does not work in my code below. The output is equal to the original value.…