Jump to content

is it possible?


obeygiant

Recommended Posts

hey

 

i shop regularly on the following site: http://obeygiant.com/store/

 

i'm wondering if it's possible to construct a url using a product's page source info that will automatically add the product to your cart?

 

using this product as an example: http://obeygiant.com/store/product.php?productid=92&cat=5&page=1

 

i thought it could have been something like this but it doesn't work: http://obeygiant.com/store/cart.php?mode=add&productid=92

 

any help would be much appreciated

 

cheers

Link to comment
https://forums.phpfreaks.com/topic/150093-is-it-possible/
Share on other sites

If you look in the source you can see it actually uses a javascript call when the buy now button is clicked to do the adding to the cart.

 

<table cellspacing="0" cellpadding="0" onclick="javascript: document.orderform_72_1220992491.submit();" class="ButtonTable">

<tr><td><img src="/store/skin1/images/but1.gif" class="ButtonSide" alt="" /></td><td class="Button"><font class="Button">Buy Now</font></td><td><img src="/store/skin1/images/but2.gif" class="ButtonSide" alt="" /></td></tr>

</table>

 

I think..

Link to comment
https://forums.phpfreaks.com/topic/150093-is-it-possible/#findComment-788219
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.