Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

add-to-cart Form


crounauer

Recommended Posts

Hi,

 

I am implementing the following code into my store to enable customers to buy items from Amazon using the "Form" command.

 

<form method="POST" action="http://www.amazon.co.uk/exec/obidos/dt/assoc/handle-buy-box=[ASIN goes here]">

<input type="hidden" name="asin.[ASIN goes here]" value="1">

<input type="hidden" name="tag-value" value="[Associates ID goes here]">

<input type="hidden" name="tag_value" value="[Associates ID goes here]">

<input type="hidden" name="dev-tag-value" value="[Developer Token goes here]"/>

<input type="submit" name="submit.add-to-cart" value="Buy From Amazon.co.uk">

</form>

 

I am able to get the code implemented, but when the logo is "clicked", it takes me to my own store checkout and not that of Amazon's!

 

Any suggestions would be greatly appreciated.

 

Many Thanks,

 

Simon

Gynogapod - Great Products, Tiny Prices!

Link to comment
Share on other sites

Hi Dennis,

 

Thanks for your reply.

 

Would you by any chance be able to give me a guide in the right direction as I am just not familiar with iFrames.

 

Many thanks,

 

Simon.

 

 

 

Just use amazons iframe, works perfectly ;)

Gynogapod - Great Products, Tiny Prices!

Link to comment
Share on other sites

You cannot put a form inside another form. Considering that the product_info.php page is one big form, that's why it won't work ;)

 

You would need to rejig the product_info.php code a little bit.

Link to comment
Share on other sites

Hi Dennis,

 

Thanks again. Im going to have to do some research as I still have no-idea what to do.

 

Regards,

 

Simon Ruddy.

 

You cannot put a form inside another form.  Considering that the product_info.php page is one big form, that's why it won't work ;)

 

You would need to rejig the product_info.php code a little bit.

Gynogapod - Great Products, Tiny Prices!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...