14 Aug 2022 
Support Center » Knowledgebase » Shopping Cart - how to's » How do I add a product outside of my shopping cart?
 How do I add a product outside of my shopping cart?
Solution You will need to create a POST command on the external pages.

First, you will need to make sure that the product exists in your shopping cart database.

Then, you would need to add the follow code to the external pages for every instance where an item is to be added.

<form action="http://www.sitename.com/index.php" method=POST>
<input type="hidden" name="oa" value="AddItem"/>
<input type="hidden" name="oa_id" value="1"/>
<input type="text" name="oa_quantity" value="1"/>
<input type="submit" style="width:100px;" value="Add To Cart" />
</form>

Key to above code:

path - web URL to your cart's index.php
oa_id - product ID in database
oa_quantity - product quantity,



Article Details
Article ID: 22
Created On: 12 Oct 2009 10:59 PM

 Back
 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Submit a Ticket | Knowledgebase | Troubleshooter | News
Language:

Help Desk Software Help Desk Software By Kayako SupportSuite v3.70.02