Community Add-Ons
offsite link into shopping cart
for osCommerce Online Merchant v2.2
The attached code snippet will allow you to link to your shopping cart from off-site. If the product has options, it will display the "product_info.php" page to allow the customer to choose the relevant attributes/options.
If the product has no attributes/options, the product is placed directly into the shopping cart.
Instructions:
--------------
1/ Download & Unzip the attached code snippet.
2/ Upload it to your webspace on the same level as your shopping_cart.php, product_info.php etc etc pages.
3/ Link to it like this: http://www.whatever-your-domain-is.com/buy.php/XX or like this:
<a href="http://www.whatever-your-domain-is.com/buy.php/XX">Buy my Product</a>
4/ Change XX in the above example to whatever product_id you want to use. And obviously put in your correct Domain Name!
5/ Done.
Released under GPL.
Caveat Emptor.
Legend:
Download
Report
I saw this alternative link on a forum that I believe does the same thing as the original contribution. You do not need any files installed, just set this as the link on the external page
www.somewebsite.com/index.php?action=buy_now&products_id=xxx
or (based on where oscommerce is installed)
www.somewebsite.com/catalog/index.php?action=buy_now&products_id=xxx
where xxx is the item number
