Jump to content

need to pass attributes and id values to cart in oscommerce


Recommended Posts

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! ;)

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.