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

Extra Options listed with product, field much too small.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-26-2006, 09:42 AM
 
pafaaronm pafaaronm is offline
 

Newbie
  
Join Date: Apr 2006
Posts: 6
 

Default 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
__________________
X-Cart version 3.5.7
PHP 4.3.11
MySQL server 4.0.20-standard-log
MySQL client 3.23.58
Web server Apache/2.0.51 (Fedora)
Operation system Linux
Perl 5.008003
XML parser (expat) found

https://paf.patientadvocate.org
Reply With Quote
  #2  
Old 04-26-2006, 10:29 AM
 
balinor balinor is offline
 

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

Default

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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-26-2006, 10:53 AM
 
pafaaronm pafaaronm is offline
 

Newbie
  
Join Date: Apr 2006
Posts: 6
 

Default

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!
__________________
X-Cart version 3.5.7
PHP 4.3.11
MySQL server 4.0.20-standard-log
MySQL client 3.23.58
Web server Apache/2.0.51 (Fedora)
Operation system Linux
Perl 5.008003
XML parser (expat) found

https://paf.patientadvocate.org
Reply With Quote
  #4  
Old 04-26-2006, 10:55 AM
 
balinor balinor is offline
 

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

Default

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

Option display file is modules/Product_Options/customer_options.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 04-26-2006, 11:12 AM
 
pafaaronm pafaaronm is offline
 

Newbie
  
Join Date: Apr 2006
Posts: 6
 

Default

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.
__________________
X-Cart version 3.5.7
PHP 4.3.11
MySQL server 4.0.20-standard-log
MySQL client 3.23.58
Web server Apache/2.0.51 (Fedora)
Operation system Linux
Perl 5.008003
XML parser (expat) found

https://paf.patientadvocate.org
Reply With Quote
  #6  
Old 04-26-2006, 11:19 AM
 
balinor balinor is offline
 

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

Default

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>
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 04-26-2006, 11:41 AM
 
pafaaronm pafaaronm is offline
 

Newbie
  
Join Date: Apr 2006
Posts: 6
 

Default

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
__________________
X-Cart version 3.5.7
PHP 4.3.11
MySQL server 4.0.20-standard-log
MySQL client 3.23.58
Web server Apache/2.0.51 (Fedora)
Operation system Linux
Perl 5.008003
XML parser (expat) found

https://paf.patientadvocate.org
Reply With Quote
  #8  
Old 04-26-2006, 11:45 AM
 
balinor balinor is offline
 

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

Default

Did you copy my code exactly? It looks like you missed the two new tr tags I added....
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 04-26-2006, 12:22 PM
 
pafaaronm pafaaronm is offline
 

Newbie
  
Join Date: Apr 2006
Posts: 6
 

Default

No sir I did not.
I did miss those and do apologize.
I'm adding them now.
__________________
X-Cart version 3.5.7
PHP 4.3.11
MySQL server 4.0.20-standard-log
MySQL client 3.23.58
Web server Apache/2.0.51 (Fedora)
Operation system Linux
Perl 5.008003
XML parser (expat) found

https://paf.patientadvocate.org
Reply With Quote
  #10  
Old 04-26-2006, 12:26 PM
 
pafaaronm pafaaronm is offline
 

Newbie
  
Join Date: Apr 2006
Posts: 6
 

Default

Yeah that's the ticket!

Balinor, you are a scholar and a gentleman, many thanks for your expert help today.
__________________
X-Cart version 3.5.7
PHP 4.3.11
MySQL server 4.0.20-standard-log
MySQL client 3.23.58
Web server Apache/2.0.51 (Fedora)
Operation system Linux
Perl 5.008003
XML parser (expat) found

https://paf.patientadvocate.org
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 11:46 AM.

   

 
X-Cart forums © 2001-2020