Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Cleaning up the look of displayed options

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-09-2008, 11:24 AM
  davidsaldana's Avatar 
davidsaldana davidsaldana is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 187
 

Default Cleaning up the look of displayed options

For our products, we tend to have a lot of options for customers, both drop down and custom text fields. To make them look a little bit cleaner, we would like both drop down and custom text fields to be the same width. Does anyone know how to do that?

thanks,
ds
__________________
4.4
Code:
Hello World
Reply With Quote
  #2  
Old 03-09-2008, 11:36 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Cleaning up the look of displayed options

You'd need to hard-code a width in modules/product_options/customer_options.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-09-2008, 01:10 PM
  davidsaldana's Avatar 
davidsaldana davidsaldana is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 187
 

Default Re: Cleaning up the look of displayed options

Quote:
Originally Posted by balinor
You'd need to hard-code a width in modules/product_options/customer_options.tpl


Yes, I tried that. I changed:

Code:
<td valign="middle" height="25">{if $usertype eq "A"}{$v.class}{else}{$v.classtext|default:$v.class}{/if}</td> <td valign="middle">

to this:

Code:
<td valign="middle" height="25" width="200">{if $usertype eq "A"}{$v.class}{else}{$v.classtext|default:$v.class}{/if}</td> <td valign="middle" width="200">

With no success............
__________________
4.4
Code:
Hello World
Reply With Quote
  #4  
Old 03-09-2008, 02:50 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Cleaning up the look of displayed options

No, not the tables, the form elements (input and textbox)
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-09-2008, 02:55 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Cleaning up the look of displayed options

Apply style attributes to the input and select fields..

As Balinor says...
modules/product_options/customer_options.tpl

Inputs...
Code:
<input style="width:100%;" id="po{$v.classid}" type="text" name="{$poname}" value="{$v.default|escape}" />
Selects...
Code:
<select style="width:100%;" id="po{$v.classid}" name="{$poname}"{if $disable} disabled="disabled"{/if}{if $nojs ne 'Y'} onchange="javascript: check_options();"{/if}>
__________________
xcartmods.co.uk
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:23 PM.

   

 
X-Cart forums © 2001-2020