X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Cleaning up the look of displayed options (https://forum.x-cart.com/showthread.php?t=38159)

davidsaldana 03-09-2008 11:24 AM

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

balinor 03-09-2008 11:36 AM

Re: Cleaning up the look of displayed options
 
You'd need to hard-code a width in modules/product_options/customer_options.tpl

davidsaldana 03-09-2008 01:10 PM

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............

balinor 03-09-2008 02:50 PM

Re: Cleaning up the look of displayed options
 
No, not the tables, the form elements (input and textbox)

PhilJ 03-09-2008 02:55 PM

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}>


All times are GMT -8. The time now is 12:43 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.