| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Where is Smarty v2 doc, and what does the {interline} Smarty command do? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I'm customizing my X-Cart Pro v4.4.2 installation. I've noticed some differences between Smarty v3 (current version of Smarty) and Smarty v2.6.26 (the version used by X-Cart v4.4.2, per X-Cart sales). I▓ve been out to smarty.net many times, but I can▓t find documentation on Smarty version 2. In particular, does anyone know what the Smarty command {interline} does? I▓ve done Google searches as well and can▓t find a thing. Any help is greatly appreciated.
__________________
Version 4.4.2 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() This is not a smart command, it is a custom modifier. You can find its code in include/templater/plugins/function.interline.php
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
![]() Smarty 2 doc is found in the same place as the Smarty 3 doc. smarty.net, click on documentation in the menu bar and it lists smarty 2 doc links just below the smarty 3 doc links. But as Steve noted that won't help you as interline isn't part of smarty, its a custom function so you'll need to look at the code to see what it does.
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
#4
|
|||||||
|
|||||||
![]() I found where the Smarty version 2 doc is - right beneath the version 3 on smarty.net.
I posted a thread on smarty.net regarding {interline} - I received a reply that suggested interline is X-Cart related and not a Smarty command. Does anyone know what interline is, what it does, and where I can find documentation on it? Here's an example of it: <tr{interline name=products_matrix additional_class="product-name-row"}>
__________________
Version 4.4.2 |
|||||||
#5
|
|||||||
|
|||||||
![]() Thanks to cflsystems and geckoday for your replies. I took a closer look and now it makes sense. I was wondering what list2matrix was as well, and now I know. Thanks again.
__________________
Version 4.4.2 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() It's "do it yourself" kind a thing. There is no documentation. If you run into smarty modifier/function that you cannot find on the smarty site then it is custom one for XC
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#7
|
|||||||
|
|||||||
![]() And it doesn't help that QT doesn't put any comments into their functions to explain what they are for and usage examples. interline only lists *some* of its parameters and doesn't even say what they are for. QT coding is abysmal - it not only makes it harder for all of us its makes it harder for their internal developers. Its no wonder their releases are so buggy.
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|