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)
-   -   product option relocating (https://forum.x-cart.com/showthread.php?t=24852)

muzwold 09-12-2006 08:30 AM

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

balinor 09-12-2006 09:39 AM

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.

muzwold 09-13-2006 12:00 AM

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

balinor 09-13-2006 02:37 AM

Re: product option relocating
 
Sorry, no :(

inebriate 09-13-2006 11:52 AM

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>



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

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