Can I create a link that puts specific items in a cart?

General ShopSite user discussion

Can I create a link that puts specific items in a cart?

Postby Packer » Tue Dec 23, 2008 5:00 am

Hello,

Were currently running an offer where if a customer buys 50kg of a specific glue, they get the Applicator for free.

Currently we have the reward set up so that when they place the 50kg in the cart, a little message appears at the top stating that they are entitled to a free gun.

Im just wondering if I can create a link that I could send out in emails and put on the website, that would put this stuff in the cart for them?

Or of another way around it?

Thank you!
Packer
 
Posts: 18
Joined: Tue Mar 04, 2008 9:22 am

Postby Jim » Wed Dec 24, 2008 10:11 am

You can use the Order Anywhere links to send in email that would add the item to the cart. If you want to add both items using the same link you would need to modify the code for the Order Anywhere link to include both itemsl.

Below is an example of how I modified one link to add two products. Note the section "itemnum=30&itemnum=29" Originally the link only had "itemnum-30" and I added the "&itemnum=29" so that product would also be added at the same time.

<a href="http://mydomain.com/cgi-bin/jim/10install/sc/order.cgi?storeid=*126ae8a7cdd25b699011fa&dbname=products&itemnum=30&itemnum=29&function=add"><img src="http://mydomain.com/10store/shopsite-images/en-US/buttons/transparent/blacktext-addtocart.gif" border="0"></a>

If you are using SKU's in your Order Anywhere links you could do something similar only using two skus instead of just the one.

Note that this technique will only work for adding multiple products it can't be used for adding a product and a coupon. This techniques is derived from the multi-add to cart templates described in the help at:
http://www.shopsite.com/help/10.0/en-US ... i-add.html
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 90 guests