appending info to product when added to cart
-
Hi, I have a page with a bunch of photos on it.
I want the person to be able to purchase products (let’s say a t-shirt) with any of their photos. I need this to be scalable so I can’t create hard coded products. What I’ve done is grab some identifying info from each photo and use it in a query string as it progresses through the site.
So starting at the products page each photo has a code.
From there if the person picks a photo (#123) it goes to a product page with many products, t-shirts, keychains, etc., this MyProducts page is the same for all photos except it has the query string attached – https://mysite.com/myproducts/?code=123 which tells me what photo the person is shopping with.
If the person wants to buy a t-shirt, clicking on the t-shirt image will go to the t-shirt page with the addition of the query appended to the url – https://mysite.com/shop/t-shirts/?code=123
So far so good.
Now if they add a t-shirt to the cart I need the product to be called T-Shirt-(123)
How do I take my identifier and add it to the product name when added to the cart?
Thanks for any help.
jim
- The topic ‘appending info to product when added to cart’ is closed to new replies.