Product groups without forms |
Post Reply |
Author | |
teamsurv
Newbie Joined: 19 July 2017 Status: Offline Points: 34 |
Post Options
Thanks(0)
Posted: 08 November 2017 at 7:19pm |
Hi,
I'm trying to set up a product group. The sample code when clicking on "Show me the code" is all forms based, which is a problem for us as our web site runs under ASP. We're using code like this to add products without a product group to the cart: <a href="http://www.romancart.com/cart.asp?storeid=65932&itemcode=NM1WIFI-1B" class="btn btn-lg btn-default">Buy now!</a> Is there something similar that can be used for product groups? |
|
teamsurv
Newbie Joined: 19 July 2017 Status: Offline Points: 34 |
Post Options
Thanks(0)
|
Answer from Romancart support:
The form is just used to send the group code and the variant See the form below… <form action='http://www.romancart.com/cart.asp' method='post'> <input type='hidden' name='storeid' value='10004'> <input type='hidden' name='pgcode' value='g1'> <input type=radio name='pgfield1' CHECKED value='small' onclick="return ROC_ShowGroupData(this.form,'1');">small<br> <input type=radio name='pgfield1' value='medium' onclick="return ROC_ShowGroupData(this.form,'1');">medium<br> <input type=radio name='pgfield1' value='large' onclick="return ROC_ShowGroupData(this.form,'1');">large<br> <input type='submit' value='Add to basket'> </form> Ignore the onclick="return ROC_ShowGroupData(this.form,'1');" as this is for dynamic display. Therefore the form is sending storeid, pgcode and pgfield1 to the cart. This is for a test small,medium,large product. If you wanted to send small using a hyperlink then you would use http://www.romancart.com/cart.asp?storeid=10004&pgcode=g1&pgfield1=small for medium http://www.romancart.com/cart.asp?storeid=10004&pgcode=g1&pgfield1=medium |
|
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 |