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)
-   -   Longer keyword field / box? (https://forum.x-cart.com/showthread.php?t=45426)

pfarcus 02-07-2009 04:09 PM

Longer keyword field / box?
 
Easy one right?

I can't seem to find where the heck to make that longer! Right now you can only see a few words at a time.

Anyone?

Thanks

JWait 02-10-2009 05:16 AM

Re: Longer keyword field / box?
 
Are you referring to the "Search keywords:" box in admin? It should be the same width as the "SKU:" and "Product Name:" boxes. Anyway, in skin1_admin.css the class is "InputWidth" and it is set at "WIDTH: 80%;" by default.

pfarcus 02-10-2009 04:45 PM

Re: Longer keyword field / box?
 
Wow I cannot find that class anywhere in there. Is there a way to search for it? I looked at it in template editor as well as golive. (the reason is if its nice and long you can see all the keywords you've entered, it helps.)

thanks

JWait 02-10-2009 06:02 PM

Re: Longer keyword field / box?
 
I didn't realize you are using Pro... I've never worked with it. But it is as I said in skin1_admin.css for the Gold version.

pfarcus 02-20-2009 07:48 PM

Re: Longer keyword field / box?
 
I'm bumping this thread a bit, anyone know the local in 4.1.11 pro?

Thx

Padoodles 03-07-2009 01:58 PM

Re: Longer keyword field / box?
 
grab a copy of firebug for mozilla.
Then hit f12 - you can then inspect the element - you will see exactly what class its in - and what css file that class is defined in.
hth

carpeperdiem 03-08-2009 05:05 AM

Re: Longer keyword field / box?
 
If you are looking to lengthen the input text field for EXTRA FIELDS, this is not in the css.

in file, skin1/modules/Extra_Fields/product_modify.tpl

find:
Code:

<td><input type="text" name="efields[{$ef.fieldid}]" size="24" value="{if $ef.is_value eq 'Y'}{$ef.field_value|escape:"html"}{else}{$ef.value|escape:"html"}{/if}" /></td>

and make size="100" (or whatever you want)

pfarcus 03-08-2009 09:22 AM

Re: Longer keyword field / box?
 
I really thought that one was going to work, I don't see that it made anything longer, its still the same length as the product name box.

{* $Id: product_modify.tpl,v 1.12 2006/04/07 06:00:35 max Exp $ *}
{foreach from=$extra_fields item=ef}
<tr>
{if $geid ne ''}<td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[efields][{$ef.fieldid}]" /></td>{/if}
<td class="FormButton" nowrap="nowrap">{$ef.field}</td>
<td><input type="text" name="efields[{$ef.fieldid}]" size="100" value="{if $ef.is_value eq 'Y'}{$ef.field_value|escape:"html"}{else}{$ef.valu e|escape:"html"}{/if}" /></td>
</tr>
{/foreach}

Thanks for your help!

carpeperdiem 03-08-2009 11:24 AM

Re: Longer keyword field / box?
 
This is the correct edit for EXTRA FIELDS

Which "keyword" field are you referring to?
Use WEBMASTER MODE to determine the template to edit. The rest will be easy... look for input type="text" size="????" and make the size larger.

ARW VISIONS 03-08-2009 12:04 PM

Re: Longer keyword field / box?
 
yeah, Im not sure what you are trying to lengthen.

pfarcus 03-08-2009 02:29 PM

Re: Longer keyword field / box?
 
I'm pretty sure this is the right bit, I don't see a "text size" anywhere. Its in main/product_details.tpl and its the "search keyword" field to enter keywords when you are creating a product.

tr>
{if $geid ne ''}<td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[keywords]" /></td>{/if}
<td class="FormButton" nowrap="nowrap">{$lng.lbl_keywords}:</td>
<td class="ProductDetails"><input type="text" name="keywords" class="InputWidth" value="{$product.keywords|escape:"html"}" /></td>
</tr>

thanks

pfarcus 03-08-2009 02:39 PM

Re: Longer keyword field / box?
 
ok, I just added a size="50" after the word text and its good 2go

Thanks!

ARW VISIONS 03-08-2009 04:23 PM

Re: Longer keyword field / box?
 
thats the ticket!!!

carpeperdiem 03-08-2009 04:26 PM

Re: Longer keyword field / box?
 
Quote:

Originally Posted by pfarcus
ok, I just added a size="50" after the word text and its good 2go

Thanks!


But this shouldn't be an issue. The text input for this field defaults to 80% of the <td>. There should be 110 characters or so in a default installation. Curious as to why your input field is too small... did you constrain the size of the table?

pfarcus 03-08-2009 05:59 PM

Re: Longer keyword field / box?
 
IMHO, It's too small because when you have to enter 10-15 keywords, its nice to be able to see most of them instead of three at a time. Also, it should encourage people to enter as many as they can think of. (fill out that long box you!)

carpeperdiem 03-08-2009 06:21 PM

Re: Longer keyword field / box?
 
The text input box should fill your screen by default. That's my point. You should have room for 110-120 characters, BY DEFAULT.

pfarcus 03-08-2009 07:28 PM

Re: Longer keyword field / box?
 
NOPE, its as long as the product name box. (in 4.1.11)

carpeperdiem 03-08-2009 07:48 PM

Re: Longer keyword field / box?
 
Quote:

Originally Posted by pfarcus
NOPE, its as long as the product name box. (in 4.1.11)


Look at xcart demo store. Both Gold and Pro are the same:

http://xcart-demo.qualiteam.biz/demo/provider/product_modify.php?productid=17518&page=1

Input box is as wide as the page. There must be something in your code that's not letting the <td> expand.

Whatever... I'm happy you found resolution.

pfarcus 03-09-2009 06:01 AM

Re: Longer keyword field / box?
 
I see what you mean. No, they were never that long, even before I began modding.


All times are GMT -8. The time now is 01:24 AM.

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