red-sofa Posted September 28, 2008 Share Posted September 28, 2008 Hi there, Im dealing with oscommerce and want to make a ( simple ) thing this is a piece of code that works perfect: <form name="cart_quantity" action="http://www.shop.com/product_info.php?cPath=1_9&products_id=26&action=add_product" method="post"><input type="hidden" name="products_id" value="26"> <input type="hidden" name="id[3]" value="9"> <input type="image" src="includes/languages/espanol/images/buttons/button_add_to_cart1.gif" border="0" alt="Añadir a la Cesta" title=" Añadir a la Cesta "> </form> product_id=26 is the product ( mouse Intelligent Microsoft ) id[3]=9 is ( an array?) that handles an attribute, in this case the usb connection. ok, I need to make a single string to pass all that in an url. something like http://www.shop.com/product_info.php?cPath=1_9&products_id=26&action=add_product&products_id=26&id[3]=9 this can be tested on ANY oscommerce site of the world let's say http://osc3.template-help.com/osc_21243/product_info.php?cPath=1&products_id=1 wich in this case have 2 attributes. id[3] and id[4] ( my example only have 1 ) thanks everyone for helping! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.