obeygiant Posted March 19, 2009 Share Posted March 19, 2009 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 More sharing options...
hellonoko Posted March 19, 2009 Share Posted March 19, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.