| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Help on if div by 2 | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
Hi All
im having a few glitches with dividing the subcategory section into 2 per row. i have done the following code, but when the subcategories, template loads, instead of dividing the subcategories by 2 per row, its putting them all in one line. Code:
If anyone could shed some light as where im going wrong, as i think i just have one of the ending if staments in the wrong place. Many thanks
__________________
http://www.savatrader.com/products/customer/home.php |
|||||||
|
#2
|
|||||||
|
|||||||
|
Almost right...
Code:
__________________
ex x-cart guru |
|||||||
|
#3
|
|||||||
|
|||||||
|
Hi funkydunk
thanks for the quick response, i have tried implementing your code, and i came up with an error of Quote:
this is what my full source code looks like with your additions Quote:
__________________
http://www.savatrader.com/products/customer/home.php |
|||||||
|
#4
|
|||||||
|
|||||||
|
Yeah you're missing a {/if} after the {/section}
__________________
ex x-cart guru |
|||||||
|
#5
|
|||||||
|
|||||||
|
Hi
i've tried adding the last {/if} and i still get the same error is it something else i've overlooked regards anton
__________________
http://www.savatrader.com/products/customer/home.php |
|||||||
|
#6
|
|||||||
|
|||||||
|
My mistake
{if $smarty.section.cat_num.index is odd}
__________________
ex x-cart guru |
|||||||
|
#7
|
|||||||
|
|||||||
|
Thanks for that funkydunk
This has saved me a lot of time. yet again you prove to be the man many thanks
__________________
http://www.savatrader.com/products/customer/home.php |
|||||||
![]() |
|
| Thread Tools | Search this Thread |
|
|
|
|
|||
|
X-Cart forums © 2001-2020
|
|||