| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Smarty {break} and {continue} Tags | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Thought I'd share this...
Smarty {break} & {continue} tags are not available in Smarty v2, but are in Smarty v3. They are handy, for example, if you want to truncate {foreach} or {section} items after x items / iterations. Code:
(stops on third item) Upload the attached two PHP files to /include/templater/plugins and you can use {break} and {continue} Might assist some of you out there ![]()
__________________
xcartmods.co.uk |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Phil, thanks for sharing this!
I've moved all other messages on switching XC4 to Smarty 3 into a separate thread: http://forum.x-cart.com/showthread.php?p=366487
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#3
|
|||||||
|
|||||||
![]() Thanks Phil!
New functionality worked a treat in this mod for wholesale prices in v4.6.4 http://forum.x-cart.com/showthread.php?p=377050#post377050 I bet there'll be some long scripts in the rest of the standard code that the {break} tag can be used in larger stores to help improve site speed.
__________________
Ben X-Cart 4.6.6 Gold Plus - lots of modules X-Cart 4.7.9 Gold Plus - lots of modules |
|||||||
|
|
|||
X-Cart forums © 2001-2020
|