Author |
Topic |
|
exigant
Starting Member
14 Posts |
Posted - June 30 2008 : 00:15:11
|
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-CART Expert
United Kingdom
948 Posts |
Posted - June 30 2008 : 03:45:55
|
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 |
|
|
exigant
Starting Member
14 Posts |
Posted - September 02 2008 : 17:40:49
|
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 |
|
|
|
Topic |
|