Add FREE BONUS item

General ShopSite user discussion
Post Reply
MgmtSpec
Posts: 204
Joined: Mon Apr 30, 2007 8:25 am

Add FREE BONUS item

Post by MgmtSpec »

Hi,

There has to be a simple way to do this...I have 6 items for sale. If the buyer orders any item - they get a FREE bonus. For tracking reasons this Bonus product has a separate sku. Right now I set up a Reward program but that REQUIRES the user to click the reward link to add to cart. I'm pretty sure I've seen order anywhere or custom template code that allows multple products to get added with single selection. I can't find that anywhere...
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Add FREE BONUS item

Post by Jim »

Search the online help for "Multi Add" the first link is
http://www.shopsite.com/help/10.2/en-US/install/custom.template.multi-add.html

It requires a special page and product template so the add to cart is on the page and not on the product template.
MgmtSpec
Posts: 204
Joined: Mon Apr 30, 2007 8:25 am

Re: Add FREE BONUS item

Post by MgmtSpec »

Thanks - I was hoping to do it "oder anywhere" style to add to an existing web page vs generating via shopsite with no luck.
MgmtSpec
Posts: 204
Joined: Mon Apr 30, 2007 8:25 am

Re: Add FREE BONUS item

Post by MgmtSpec »

I think I was not clear, rather than checking 2 or more boxes on a form style page, I'm looking for the ability to select ONE item, Add to Cart - and when doing so the 2nd FREE item shows up in the cart. Not check a box to add free item or click to add free item.
BFChris
Posts: 322
Joined: Mon Oct 09, 2006 3:28 pm
Location: PA

Re: Add FREE BONUS item

Post by BFChris »

Rather than having the second item actually appear on the page with a checkbox that needs to be checked (as in the standard multi-add set-up), you could do the free bonus item as a hidden form field.

Actually, I think I just did this recently for a page i was working on.
~~Barefoot Chris
--------------------------------
Barefoot Chris Web Design
www.barefootchris.net
--------------------------------
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Add FREE BONUS item

Post by Jim »

You could do this with order anywhere also. Something like this
<form action="http://yourdomai.com/cgi-bin/sc/order.cgi" method=post>
<br><input type=hidden name="storeid" value="*16be86a9d15aa5871640ae1e26">
<input type=hidden name="dbname" value="products">
<input type=hidden name="function" value="add">
<input type=hidden name="itemnum" value="142">
<input type=image src="https://blister.shopsite.com/11store/shopsite-images/en-US/buttons/3col-blue/btn-addtocart.png" border="0" align="bottom" alt="Add to Cart" name="Add to Cart">
<input type=image src="https://blister.shopsite.com/11store/shopsite-images/en-US/buttons/3col-blue/btn-viewcart.png" border="0" align="bottom" alt="View Cart" name="View Cart">
<input type=hidden name="itemnum" value="143">
</form>

Where the product you want as free would be in the last line <input type=hidden name="itemnum" value="143"> with the value being the record number of the product. Or if you have SKUs for all your products (and you check the box on the orderanywhere screen) you can substitute
<input type=hidden name="sku" value="asdf123"> for both lines above <input type=hidden name="itemnum" value="142">
and replace the asdf123 with the appropriate skus for your products.
MgmtSpec
Posts: 204
Joined: Mon Apr 30, 2007 8:25 am

Re: Add FREE BONUS item

Post by MgmtSpec »

Thanks - I found my problem. I was using SKU for order anywhere but coding the input as item record #. Changed to sku and it worked - thanks again!
Post Reply