Add item behind |
Post Reply |
Author | |
SharpDataInc
Groupie Joined: 10-August-2010 Location: Chicago Status: Offline Points: 0 |
Post Options
Thanks(0)
Posted: 27-March-2011 at 11:18am |
Okay, I pretty much figured it out. I used some scripting to go through the radio controls to see which one is checked and set that to the correct input value.
<!-- small--> <!-- medium --> <!-- large --> <!-- item to be added for a penny --> On another note, where is the session.timeout intiated and in which asp docs is it in. I read the documentation on it, but it doesnt specify which files this setting can be changed.
Individual Page. The amount of time after which a session is cleared can be altered by using the “session.timeout” variable. A proficient
Thanks!
SDI
|
|
Sharp Data Incorporated
|
|
SharpDataInc
Groupie Joined: 10-August-2010 Location: Chicago Status: Offline Points: 0 |
Post Options
Thanks(0)
|
version 3.51
The merchant has 1 item on a page with 3 radio buttons for small / med / large, and they all have a different ID numbers and SKU. I want to add a completely different item to the cart when they add any one of these items. So I tried the code for adding multiple items and it seems the ID numbers (in the ex) match the input names. Your example shows 1 product being added "behind the scenes", but how do you do say 3 or 4? When the radio button is clicked it returns a number to the input as its value from script. But then it will no work if it returns something different than the "name" of the input. So...
<input name="idProduct1" type="hidden" value="431">
<input name="QtyM431" type="text" value="1"> If my value of 431 (small) is now 432 (med), it will not work because of the QtyM431 name. Can someone explain how this is suppose to work if my values get changed? Or maybe I am not understanding it.
Thanks
SDI
|
|
Sharp Data Incorporated
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |