RomanCart.com Forum Homepage
Forum Home Forum Home > RomanCart > Integration
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

Product groups without forms

 Post Reply Post Reply
Author
Message
teamsurv View Drop Down
Newbie
Newbie


Joined: 19 July 2017
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote teamsurv Quote  Post ReplyReply Direct Link To This Post Topic: Product groups without forms
    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?
Back to Top
teamsurv View Drop Down
Newbie
Newbie


Joined: 19 July 2017
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote teamsurv Quote  Post ReplyReply Direct Link To This Post Posted: 13 November 2017 at 9:32am
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.016 seconds.