Community Add-Ons

Add file to this package
Top » Other

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

Expand All / Collapse All

Alternative 1BdKty 28 Feb 2006  

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

Alternative Andrea McGuire 18 Feb 2005  
offsite link into shopping cart G Burton 24 Nov 2004