Cart on same page as Products?

General ShopSite user discussion

Cart on same page as Products?

Postby Cayce » Fri Mar 18, 2011 8:53 am

I would like to have the ShopSite cart appear in a table (id="shop_cart") in the lower part of the products page, so that when a product's add-to-cart button is selected, the item shows up in the cart below instead of on a separate Cart page. The cart right now is set up as an Order Anywhere construct, with the form action looking like this:

*********************************************************
<FORM Name="dfk_kk" action="http://www.digifolders.com/cgi-bin/ss/sc/order.cgi" target="_self" method=post>
<select name="2:qnty" size="1" class="qty">
<option value="25">Qty:</option>
<option value="25">25</option>
<option value="50">50</option>
<option value="75">75</option>
<option value="100">100</option>
</select>
<input type=hidden name="storeid" value="*1cee26fd90789f20e03046cbdbeaac4c">
<input type=hidden name="dbname" value="products">
<input type=hidden name="function" value="add">
<input type=hidden name="itemnum" value="2">
</form>


<FORM NAME="dfk_kk_submit">
<A HREF="javascript:document.dfk_kk.submit()"><IMG SRC="df_kromekote_kits_images/atc_button.gif" WIDTH="66" HEIGHT="15" BORDER="0">
</A>
</form>
*********************************************************

Any suggestions on how to make this happen? Maybe a getElementById javascript in the Target attribute or such?

Thanks much.

Cayce
Cayce
 
Posts: 14
Joined: Fri Mar 18, 2011 8:41 am

Re: Cart on same page as Products?

Postby ShopSite Lauren » Fri Mar 18, 2011 9:05 am

You can do this with the minicart feature. This is available in ShopSite Pro. SInce you are using OrderAnywhere, the one thing that you will need to be aware of is that the minicart feature uses cookies to pull the information from the cart, so the website that you are putting the cart on needs to be on the same domain as your shopping cart, http://www.digifolders.com. Below is a link with more information on the minicart code for non-ShopSite generated pages.
http://www.shopsite.com/templates/cookbook/tips-minicart-outsideshopsite.shtml
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Re: Cart on same page as Products?

Postby Cayce » Fri Mar 18, 2011 10:23 am

Many thanks, Lauren! I'll give this a shot and let you know how I make out.

Cayce
Cayce
 
Posts: 14
Joined: Fri Mar 18, 2011 8:41 am


Return to User Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 114 guests

cron