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)
-   -   Extra Options listed with product, field much too small. (https://forum.x-cart.com/showthread.php?t=21376)

pafaaronm 04-26-2006 09:42 AM

Extra Options listed with product, field much too small.
 
Can anyone point me to the correct place to make a change.
This pic shows what I'm trying to change.

http://www.npaf.org/xtra_option_spacing.jpg

The product is a direct donation, I have the extra fields in there nicely, I just need the extra option cell to span the two colums or to appear much wider. As you can see it's very bunched up.

Thanks for your time.

All the best,
Aaron

balinor 04-26-2006 10:29 AM

I would suggest either editing the options template so that the input box is BELOW the option description, or editing your product.tpl so that the content wraps under the product image.

pafaaronm 04-26-2006 10:53 AM

Thanks balinor, please point me to the location of those files.
I see alot of different product.tpl files. I can feel a fat finger in the works!

balinor 04-26-2006 10:55 AM

Sorry, product template is customer/main/product.tpl

Option display file is modules/Product_Options/customer_options.tpl

pafaaronm 04-26-2006 11:12 AM

Thank you again.

So this is my customer_options.tpl

Can I just put a
in there somewhere? Where?
This stuff is kicking my ass. :(



Code:

{* $Id: customer_options.tpl,v 1.9.2.2 2004/03/30 12:38:54 svowl Exp $ *}
{section name=product_option loop=$product_options}
<tr>
<td valign=middle height=25>
{if $usertype eq "A"}
{ $product_options[product_option].optclass }:
{else}
{ $product_options[product_option].opttext }
{/if}
</td>
<td colspan=2 valign=middle>
{if $cname ne ""}
{assign var="poname" value="$cname[`$product_options[product_option].optclass`]"}
{else}
{assign var="poname" value="product_options[`$product_options[product_option].optclass`]"}
{/if}
{if $product_options[product_option].options ne ""}
{assign var="options" value=$product_options[product_option].options}
<select name="{$poname}"{if $disable} disabled{/if}>
{section name=option loop=$options}
<option value={$smarty.section.option.index}{if $options[option].selected ne ""} selected{/if}>{$options[option].option}{if $options[option].surcharge ne 0} ({$options[option].surcharge|value_sign:"1"}{if $options[option].type eq "absolute"}{$config.General.currency_symbol}{$options[option].surcharge|abs_value}{else}{$options[option].surcharge|abs_value}%{/if}){/if}</option>
{/section}
</select>
{else}
<input type=text name="{$poname}" size=32 value="{$product_options[product_option].options_string}">
{/if}
</td>
</tr>
{/section}
{if $err eq "options" and $options_ex ne ""}
<TR>
<TD colspan=2><FONT class=CustomerMessage>Warning! The product cannot be added to cart because the following combination of options is not available:</FONT></TD>
</TR>
<TR valign=top>
<TD colspan=2>
{section name=oi loop=$options_ex}
* {$options_ex[oi].exception}

{/section}
</TD>
</TR>
{/if}


Maybe the customer/main/product.tpl will be easier for me.
I'll go take a look.

balinor 04-26-2006 11:19 AM

Try this. Replace this:

Code:

<td valign=middle height=25>
{if $usertype eq "A"}
{ $product_options[product_option].optclass }:
{else}
{ $product_options[product_option].opttext }
{/if}
</td>
<td colspan=2 valign=middle>


with this:

Code:

<td valign=middle height=25 colspan="2">
{if $usertype eq "A"}
{ $product_options[product_option].optclass }:
{else}
{ $product_options[product_option].opttext }
{/if}
</td></tr><tr>
<td colspan=2 valign=middle> 


pafaaronm 04-26-2006 11:41 AM

Thanks again sir, but I guess I'm missing something else.
It looks like it did indeed make a little more room but not the desired effect.

I tried a different valign as well as colspan=3.. but notta.

http://www.npaf.org/options.jpg

balinor 04-26-2006 11:45 AM

Did you copy my code exactly? It looks like you missed the two new tr tags I added....

pafaaronm 04-26-2006 12:22 PM

No sir I did not.
I did miss those and do apologize.
I'm adding them now.

pafaaronm 04-26-2006 12:26 PM

Yeah that's the ticket!

Balinor, you are a scholar and a gentleman, many thanks for your expert help today.


All times are GMT -8. The time now is 11:21 AM.

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