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

Where is Smarty v2 doc, and what does the {interline} Smarty command do?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-07-2011, 02:49 PM
 
Lance Donatello Lance Donatello is offline
 

Newbie
  
Join Date: Jan 2011
Posts: 6
 

Default Where is Smarty v2 doc, and what does the {interline} Smarty command do?

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
Reply With Quote
  #2  
Old 02-07-2011, 05:21 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Where is Smarty v2 doc, and what does the {interline} Smarty command do?

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
Reply With Quote
  #3  
Old 02-08-2011, 06:27 AM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default Re: Where is Smarty v2 doc, and what does the {interline} Smarty command do?

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
Reply With Quote
  #4  
Old 02-08-2011, 10:33 AM
 
Lance Donatello Lance Donatello is offline
 

Newbie
  
Join Date: Jan 2011
Posts: 6
 

Default Re: Where is Smarty v2 doc, and what does the {interline} Smarty command do?

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
Reply With Quote
  #5  
Old 02-08-2011, 11:02 AM
 
Lance Donatello Lance Donatello is offline
 

Newbie
  
Join Date: Jan 2011
Posts: 6
 

Default Re: Where is Smarty v2 doc, and what does the {interline} Smarty command do?

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
Reply With Quote
  #6  
Old 02-08-2011, 01:51 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Where is Smarty v2 doc, and what does the {interline} Smarty command do?

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
Reply With Quote
  #7  
Old 02-09-2011, 06:46 AM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default Re: Where is Smarty v2 doc, and what does the {interline} Smarty command do?

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
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 09:35 PM.

   

 
X-Cart forums © 2001-2020