Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Purchase from remote html page..

The Anchor Store

Recommended Posts

Does anybody have any ideas about how we can initiate a purchase from a remote html page?


For example, we want to be able to send an html email to our customers with a unique product or price that we do not offer on our online store and allow the customer to click a "BUY NOW" link from the html email.


The link should then take the customer to our OSC shopping cart, put the special item in the cart, and allow the customer to continue shopping in our store.


The SKU or product number would be in our database and the code sent from the email would include the the SKU along with a unique ten digit code that would represent an option or perhaps just as a comment.


Your thoughts on this matter would be greatly appreciated.



The Anchor Store

Link to comment
Share on other sites

OK - best way to do this is copy and paste one of the "buy now" images from the existing products into a new email message.


Then have a look at the URL info in the email. Strip out the category code from the URL then copy the remaining code somewhere.


It should look something like this originally:



and this after you strip it:



Make sure it still works. Best thing to do is copy it into a Word document and then click on the link and see if it still opens the shopping cart and puts the item in the cart.


So so far you have the URL info for an existing product, but you want one that does not show on your site but exists in the database - right?


There is a contrib somewhere called something like Hidden products which enables you to have products in the databse but not show them on the store. Install this and make all your special products hidden. Then for each item, just replace the products_id in the URL (963 in the above example) with the products_id of the special product and voila!

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...