Add FREE BONUS item

General ShopSite user discussion

Add FREE BONUS item

Postby MgmtSpec » Wed May 04, 2011 8:38 pm

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...
MgmtSpec
 
Posts: 204
Joined: Mon Apr 30, 2007 8:25 am

Re: Add FREE BONUS item

Postby Jim » Wed May 04, 2011 9:37 pm

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.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Add FREE BONUS item

Postby MgmtSpec » Thu May 05, 2011 12:42 pm

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

Postby MgmtSpec » Thu May 05, 2011 1:08 pm

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.
MgmtSpec
 
Posts: 204
Joined: Mon Apr 30, 2007 8:25 am

Re: Add FREE BONUS item

Postby BFChris » Thu May 05, 2011 1:55 pm

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
--------------------------------
BFChris
 
Posts: 322
Joined: Mon Oct 09, 2006 3:28 pm
Location: PA

Re: Add FREE BONUS item

Postby Jim » Thu May 05, 2011 3:46 pm

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.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Add FREE BONUS item

Postby MgmtSpec » Thu May 05, 2011 6:44 pm

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!
MgmtSpec
 
Posts: 204
Joined: Mon Apr 30, 2007 8:25 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 124 guests

cron