Advanced Customer Other Fields

The customer other fields is useful for adding text boxes, but it does not support more advanced form fields such as radio buttons or dropdown lists.

 

These are supported using xcustomerotherbypass.

 

For example - you want to add a dropdown list to the customer form called colors with a list of colors in it. To do this, you need to set the following options in your Shop Configuration.

 

Xcustomerotherfields

The name of the field in the customer table of the database to store the color in – for example “color”.

Xcustomerothercaptions

A caption for the field – for example “Color”.

Xcustomerotherbypass

This is a list of customer fieldnames that shouldn’t be included in VPCART’s automatic display – you will add these fields to your customer form manually.

 

VPCART will do the rest and store the data in the customers and orders tables. This allows addition of dropdown lists and radio buttons, which are not supported by xcustomerotherfields. The names must still appear in the xcustomerotherfields.


To setup Shop Configuration, please follow these steps below :

1.  In the top menu select Advanced Settings , then Software Configurations from the dropdown.

 

2.  Enter the config in search box and press the “Search” button.

ScreenShot093

 

 

3.  Change the value and click Continue.

 

Then you must edit shopcustomerdesign.asp and place your own dropdown list into the file. Locate the following line -


AddSurchargeForm

 

Directly after the code above, you can then add your custom coded form fields as the HTML here. The form field name must match the fieldname in Software Configuration (“color” in this case).

For example :


  %>

<div class="comment_title fontbold">COLOR</div>

<div class="comment_text">

<div class="blog_review_container" >

<fieldset>

<label> What Color?</label>

<select size="1" class="txtfielddropdown" name="color">

<option selected="selected" value="">Select</option>

<option>Red</option>

<option>Yellow</option>

</select>

<div class="cb"></div>

</fieldset>

</div>

</div>

<br />

<%