VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Customization
 Customer Registration Form
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

exigant
Starting Member

14 Posts

Posted - June 30 2008 :  00:15:11  Show Profile  Reply with Quote
I'm trying to make some simple changes to the Customer Registration form. I would like to add some background color to the required fields text boxes so they stand out more. I can't seem to find the template file that makes this page. Anyone know where this template is?

***************************
Currently Running Cart Version 6.5

carfin
VP-ASP Expert

United Kingdom
948 Posts

Posted - June 30 2008 :  03:45:55  Show Profile  Reply with Quote
Hi,

There isn't a template to acheive what you need but there is a way of changing the background colour of all the customer text input fields throughout the site.

If you open the file stylesheets/shop.css and find

.txtfield{
background-color: #FFFFFF;


you can change the background colour to suit.

Regards,

Carrol
www.deanston-electrical.co.uk
Go to Top of Page

exigant
Starting Member

14 Posts

Posted - September 02 2008 :  17:40:49  Show Profile  Reply with Quote
That would change all of the texfield's for the entire site and that's not really what I'm going for.

For anyone that is interested, I finally found the sub where it is called. To adjust the look of only required fields you need to open "shopproductsubs.asp" and find the sub "CreateCustRow" (it was line 90 for me). It looks like this:

Sub CreateCustRow (caption, fieldname, fieldvalue, required)
Dim aster
If required="Yes" then
aster="* "
else
aster=" "
end if
Response.write tablerow & "<th>"
Response.write aster & Caption & "</th>"
Response.write tablecolumn
%><input class="txtfield" size="20" name="<%=fieldname%>" value="<%=fieldvalue%>" onChange="javascript:this.value=this.value.toUpperCase();"/><%
Response.write tablecolumnend & tableRowend
end sub

I changed it to add an If statement around the input field and put in a style with a background color.

Sub CreateCustRow (caption, fieldname, fieldvalue, required)
Dim aster
If required="Yes" then
aster="* "
else
aster=" "
end if
Response.write tablerow & "<th>"
Response.write aster & Caption & "</th>"
Response.write tablecolumn
If required="Yes" then
%><input class="txtfield" size="20" style="background-color:#FFFF33" name="<%=fieldname%>" value="<%=fieldvalue%>" onChange="javascript:this.value=this.value.toUpperCase();"/><%
else
%><input class="txtfield" size="20" name="<%=fieldname%>" value="<%=fieldvalue%>" onChange="javascript:this.value=this.value.toUpperCase();"/><%
end if
Response.write tablecolumnend & tableRowend
end sub

You can do whatever you like, but I thought I would just toss out there that it is possible to customize the look of some of these dynamic pages without too much trouble... it's just finding which one file to edit that's the problem. :)

***************************
Currently Running Cart Version 6.5
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000