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

product option relocating

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-12-2006, 08:30 AM
 
muzwold muzwold is offline
 

Newbie
  
Join Date: Sep 2006
Posts: 6
 

Default product option relocating

Hi i have 7 options for each product

i wanna have three options on one line, three options on another line and one option on its own

ie

day month year


hour minute second


number

rather than each otion below each other

day
month
year
hour
minute
second
number

please help
__________________
4.1.3 NEWBIE

Running win2003 server

IIS6
Reply With Quote
  #2  
Old 09-12-2006, 09:39 AM
 
balinor balinor is offline
 

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

Default Re: product option relocating

Real tough to do as the options template is a {foreach} meaning the code is for one option, and it repeats. If you want to have three per line, you would somehow need to write a calculation to tell it to start a new line when it reaches three options.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 09-13-2006, 12:00 AM
 
muzwold muzwold is offline
 

Newbie
  
Join Date: Sep 2006
Posts: 6
 

Default Re: product option relocating

thanks I can seen the {foreach} you have identified
any idea the code i would need to put into this tpl to save me five days of googling and trying diff variables
__________________
4.1.3 NEWBIE

Running win2003 server

IIS6
Reply With Quote
  #4  
Old 09-13-2006, 02:37 AM
 
balinor balinor is offline
 

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

Default Re: product option relocating

Sorry, no
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 09-13-2006, 11:52 AM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: product option relocating

havent tested this out yet, but you can try...

in skin1/modules/Product_Options/display_options.tpl

find:
Code:
{foreach from=$options item=v} <TR> <TD>{$v.class}:&nbsp;</TD> <TD>{$v.option_name}</TD> </TR> {/foreach}
change to:
Code:
<tr> {foreach name=optloop from=$options item=v} <TD>{$v.class}:&nbsp;</TD> <TD>{$v.option_name}</TD> {if $smarty.foreach.optloop.iteration is div by 3} </tr> <tr> {/if} {/foreach} </tr>
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
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 03:51 AM.

   

 
X-Cart forums © 2001-2020