Not Using [-- SC_Address --] tag and adding our own form

Questions and answers about ShopSite Custom Templates

Not Using [-- SC_Address --] tag and adding our own form

Postby webdevla » Mon Apr 27, 2015 12:46 pm

Hi,

For the tag [-- SC_Address —], instead of adding the tag to generate the inputs, we would like to create a custom form but still keep the inputs the same values as SS named parameters. I see that the tag generates:

<form name="billing" class="billing" action="https://www.DOMAIN.com/cgi-DOMAIN/sb/thankyou.cgi" method=post >
<input type="hidden" name="sbid" value="SSMSB********* SBID HERE *************">
<input type="hidden" name="storeid" value="****STOREID HERE*******">
<input type="hidden" name="fromid" value="billing.cgi">
<input type=hidden name="WO8233" value="1430163093">
<input type="hidden" name="j_script" value="">
<script type="text/javascript">
document.billing.j_script.value = 10
</script>
<input type="hidden" name="frombilling" value="yes">
<input type="hidden" name="rnd1" value="1284520022">
<input type="hidden" name="rnd2" value="1569428507">

We do not know what the hidden rnd# are used for, nor what the hidden WO8233 value is. Can someone explain what the hidden rnd# and WO8233 value is used for and if we can add it in manually?

Thanks!
webdevla
 
Posts: 9
Joined: Fri Apr 24, 2015 12:55 pm

Re: Not Using [-- SC_Address --] tag and adding our own form

Postby ShopSite Lauren » Mon Apr 27, 2015 12:55 pm

The output code you show below is part of the [-- SC_Form --] tag, not part of the [-- SC_Address --] tag. I believe you would be able to replace the SC_Address tag and it won't affect the form itself as long as the inputs use the same names.

Here is the general output for the [-- SC_Address --] tag (the output can be changed some by the merchant, so this is not exact, but does have the correct names of inputs).
Code: Select all
<table class="addr">
<tr><td valign=top><table class="bill_addr">
<tr><td class="bill_addr_hdr" colspan=2><b>Billing Address</b></td></tr>
<tr><td class="addr"><span id="E_Email">Email</span><font color=blue>*</font></td><td class="addr_val"><input class="addr" type=text name="Email" value="" size="30" maxlength="50"></td></tr>
<tr><td class="addr"><span id="E_First">First Name</span><font color=blue>*</font></td><td class="addr_val"><input class="addr" type=text name="First" value="" size="15" maxlength="18"></td></tr>
<tr><td class="addr"><span id="E_Last">Last Name</span><font color=blue>*</font></td><td class="addr_val"><input class="addr" type=text name="Last" value="" size="25" maxlength="18"></td></tr>
<tr><td class="addr"><span id="E_Address">Billing Address</span><font color=blue>*</font></td><td class="addr_val"><input class="addr" type=text name="Address" value="" size="30" maxlength="35"></td></tr>
<tr><td class="addr"><span id="E_Address2">Apt #/Suite</span></td><td class="addr_val"><input class="addr" type=text name="Address2" value="" size="30" maxlength="35"></td></tr>
<tr><td class="addr"><span id="E_City">City</span><font color=blue>*</font></td><td class="addr_val"><input class="addr" type=text name="City" value="" size="15" maxlength="30"></td></tr>
<tr><td class="addr"><span id="E_State">State/Province</span><font color=blue>*</font></td><td class="addr_val"><select class=addr name="State">
<option  value="n">Select a State</option>
<option  value="AL">Alabama</option>
<option  value="AK">Alaska</option>
<option  value="AZ">Arizona</option>
<option  value="AR">Arkansas</option>
<option  value="CA">California</option>
<option  value="CO">Colorado</option>
<option  value="CT">Connecticut</option>
<option  value="DE">Delaware</option>
<option  value="DC">District of Columbia</option>
<option  value="FL">Florida</option>
<option  value="GA">Georgia</option>
<option  value="HI">Hawaii</option>
<option  value="ID">Idaho</option>
<option  value="IL">Illinois</option>
<option  value="IN">Indiana</option>
<option  value="IA">Iowa</option>
<option  value="KS">Kansas</option>
<option  value="KY">Kentucky</option>
<option  value="LA">Louisiana</option>
<option  value="ME">Maine</option>
<option  value="MD">Maryland</option>
<option  value="MA">Massachusetts</option>
<option  value="MI">Michigan</option>
<option  value="MN">Minnesota</option>
<option  value="MS">Mississippi</option>
<option  value="MO">Missouri</option>
<option  value="MT">Montana</option>
<option  value="NE">Nebraska</option>
<option  value="NV">Nevada</option>
<option  value="NH">New Hampshire</option>
<option  value="NJ">New Jersey</option>
<option  value="NM">New Mexico</option>
<option  value="NY">New York</option>
<option  value="NC">North Carolina</option>
<option  value="ND">North Dakota</option>
<option  value="OH">Ohio</option>
<option  value="OK">Oklahoma</option>
<option  value="OR">Oregon</option>
<option  value="PA">Pennsylvania</option>
<option  value="RI">Rhode Island</option>
<option  value="SC">South Carolina</option>
<option  value="SD">South Dakota</option>
<option  value="TN">Tennessee</option>
<option  value="TX">Texas</option>
<option  value="UT">Utah</option>
<option  value="VT">Vermont</option>
<option  value="VA">Virginia</option>
<option  value="WA">Washington</option>
<option  value="WV">West Virginia</option>
<option  value="WI">Wisconsin</option>
<option  value="WY">Wyoming</option>
<option  value="AB">Alberta</option>
<option  value="BC">British Columbia</option>
<option  value="MB">Manitoba</option>
<option  value="NB">New Brunswick</option>
<option  value="NF">Newfoundland</option>
<option  value="NT">Northwest Territories</option>
<option  value="NS">Nova Scotia</option>
<option  value="NU">Nunavut</option>
<option  value="ON">Ontario</option>
<option  value="PE">Prince Edward Island</option>
<option  value="QC">Quebec</option>
<option  value="SK">Saskatchewan</option>
<option  value="YT">Yukon</option>
<option  value="Other">Other</option>
</select>
</td></tr>
<tr><td class="addr"><span id="E_Zip">Zip Code/Postal </span><font color=blue>*</font></td><td class="addr_val"><input class="addr" type=text name="Zip" value="" size="15" maxlength="10"></td></tr>
<tr><td class="addr"><span id="E_Country">Country</span><font color=blue>*</font></td><td class="addr_val"><select class=addr id="Country" name="Country">
<option  value="Canada">Canada</option>
<option selected value="United States">United States</option>
</select>
</td></tr>
<tr><td class="addr"><span id="E_Phone">Phone Number (required)</span><font color=blue>*</font></td><td class="addr_val"><input class="addr" type=text name="Phone" value="" size="15" maxlength="20"></td></tr>
</table></td>
<td valign=top><table class="ship_addr">
<tr><td class="ship_addr_hdr" colspan=2><b>Shipping Address</b></td></tr><tr><td class="ship_check" colspan=2><input type=checkbox  name="usebilling"  onClick="return(copy_bill_to_ship());" >my shipping address is the same</td></tr>
<tr><td class="addr"><span id="E_ShipFirst">First Name</span><font color=blue>*</font></td><td class="addr_val"><input class="addr" type=text name="ShipFirst" value="" size="15" maxlength="18" ></td></tr>
<tr><td class="addr"><span id="E_ShipLast">Last Name</span><font color=blue>*</font></td><td class="addr_val"><input class="addr" type=text name="ShipLast" value="" size="25" maxlength="18" ></td></tr>
<tr><td class="addr"><span id="E_ShipAddress">Shipping Address</span><font color=blue>*</font></td><td class="addr_val"><input class="addr" type=text name="ShipAddress" value="" size="30" maxlength="35" ></td></tr>
<tr><td class="addr"><span id="E_ShipAddress2">Apt #/Suite</span></td><td class="addr_val"><input class="addr" type=text name="ShipAddress2" value="" size="30" maxlength="35" ></td></tr>
<tr><td class="addr"><span id="E_ShipCity">City</span><font color=blue>*</font></td><td class="addr_val"><input class="addr" type=text name="ShipCity" value="" size="15" maxlength="30" ></td></tr>
<tr><td class="addr"><span id="E_ShipState">State/Province</span><font color=blue>*</font></td><td class="addr_val"><select class=addr name="ShipState">
<option  value="n">Select a State</option>
<option  value="AL">Alabama</option>
<option  value="AK">Alaska</option>
<option  value="AZ">Arizona</option>
<option  value="AR">Arkansas</option>
<option  value="CA">California</option>
<option  value="CO">Colorado</option>
<option  value="CT">Connecticut</option>
<option  value="DE">Delaware</option>
<option  value="DC">District of Columbia</option>
<option  value="FL">Florida</option>
<option  value="GA">Georgia</option>
<option  value="HI">Hawaii</option>
<option  value="ID">Idaho</option>
<option  value="IL">Illinois</option>
<option  value="IN">Indiana</option>
<option  value="IA">Iowa</option>
<option  value="KS">Kansas</option>
<option  value="KY">Kentucky</option>
<option  value="LA">Louisiana</option>
<option  value="ME">Maine</option>
<option  value="MD">Maryland</option>
<option  value="MA">Massachusetts</option>
<option  value="MI">Michigan</option>
<option  value="MN">Minnesota</option>
<option  value="MS">Mississippi</option>
<option  value="MO">Missouri</option>
<option  value="MT">Montana</option>
<option  value="NE">Nebraska</option>
<option  value="NV">Nevada</option>
<option  value="NH">New Hampshire</option>
<option  value="NJ">New Jersey</option>
<option  value="NM">New Mexico</option>
<option  value="NY">New York</option>
<option  value="NC">North Carolina</option>
<option  value="ND">North Dakota</option>
<option  value="OH">Ohio</option>
<option  value="OK">Oklahoma</option>
<option  value="OR">Oregon</option>
<option  value="PA">Pennsylvania</option>
<option  value="RI">Rhode Island</option>
<option  value="SC">South Carolina</option>
<option  value="SD">South Dakota</option>
<option  value="TN">Tennessee</option>
<option  value="TX">Texas</option>
<option  value="UT">Utah</option>
<option  value="VT">Vermont</option>
<option  value="VA">Virginia</option>
<option  value="WA">Washington</option>
<option  value="WV">West Virginia</option>
<option  value="WI">Wisconsin</option>
<option  value="WY">Wyoming</option>
<option  value="AB">Alberta</option>
<option  value="BC">British Columbia</option>
<option  value="MB">Manitoba</option>
<option  value="NB">New Brunswick</option>
<option  value="NF">Newfoundland</option>
<option  value="NT">Northwest Territories</option>
<option  value="NS">Nova Scotia</option>
<option  value="NU">Nunavut</option>
<option  value="ON">Ontario</option>
<option  value="PE">Prince Edward Island</option>
<option  value="QC">Quebec</option>
<option  value="SK">Saskatchewan</option>
<option  value="YT">Yukon</option>
<option  value="Other">Other</option>
</select>
</td></tr>
<tr><td class="addr"><span id="E_ShipZip">Zip Code/Postal </span><font color=blue>*</font></td><td class="addr_val"><input class="addr" type=text name="ShipZip" value="" size="15" maxlength="10" ></td></tr>
<tr><td class="addr"><span id="E_ShipPhone">Phone Number (required)</span><font color=blue>*</font></td><td class="addr_val"><input class="addr" type=text name="ShipPhone" value="" size="15" maxlength="20" ></td></tr>
</table></td>
</tr><tr><td class="addr_foot" colspan=1><font color=blue>*</font> Required Field</td>
</tr></table>
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 10 guests

cron