24 Apr 2024
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
User Comments
Add a Comment
Sharing is good. If you have a comment about this entry, please feel free to share. The comments might be reviewed by our staff, and may require approval before being posted. Questions posted will not be answered. Please submit a Ticket for support requests.
Image Verification Required
Please enter the characters that appear to the right in the space provided. This is just to verify that you are a human.
Fullname:
Email: (Optional)
Comments:
Back
Login
[Lost Password]
Email:
Password:
Remember Me:
Search
-- Entire Support Site --
Knowledgebase
Troubleshooter
Article Options
Add Comment
Print Article
PDF Version
Email Article
Add to Favorites
Home
|
Register
|
Submit a Ticket
|
Knowledgebase
|
Troubleshooter
|
News
Language:
English (U.S.)
Portugues
Help Desk Software
Help Desk Software By Kayako SupportSuite v3.70.02