Print Page | Close Window

Product groups without forms

Printed From: Forum
Category: RomanCart
Forum Name: Integration
Forum Description: If you need help using RomanCart in your own website, post here.
Printed Date: 19 May 2019 at 11:37pm

Topic: Product groups without forms
Posted By: teamsurv
Subject: Product groups without forms
Date Posted: 08 November 2017 at 7:19pm
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="" rel="nofollow -" class="btn btn-lg btn-default">Buy now!</a>

Is there something similar that can be used for product groups?

Posted By: teamsurv
Date 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='" rel="nofollow - ' 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'>

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" rel="nofollow -

for medium" rel="nofollow -

Print Page | Close Window