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

Smarty syntax not working - Xcart 5.2

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 08-09-2015, 11:43 PM
 
Ali Kazim Ali Kazim is offline
 

Newbie
  
Join Date: Aug 2015
Posts: 4
 

Question Smarty syntax not working - Xcart 5.2

I am trying to customize featured product list on frontpage by customizing template file and trying to add some conditions. But in tpl files it is not allowed me to use smarty syntax like: assign, increments, var_dumo etc.
__________________
5.2.2
Reply With Quote
  #2  
Old 08-10-2015, 01:15 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Smarty syntax not working - Xcart 5.2

Hello!

That's right - X-Cart 5 doesn't use Smarty as the template engine.

Please refer to the documentation for developers at http://kb.x-cart.com/ - it may help you to understand how to customize the behaviour and appearance of X-Cart 5 based websites.

Feel free to ask in these forums should you have questions on a topic missed in the documentation.

Thanks!
__________________
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
Reply With Quote
  #3  
Old 08-10-2015, 07:45 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Smarty syntax not working - Xcart 5.2

Quote:
Originally Posted by Ali Kazim
I am trying to customize featured product list on frontpage by customizing template file and trying to add some conditions. But in tpl files it is not allowed me to use smarty syntax like: assign, increments, var_dumo etc.
X-Cart 5 uses Flexy as a template engine.
There is an article in our knowledge base describing the basics of this "language"
Please have a look:
* http://kb.x-cart.com/display/XDD/Flexy+Guide
Please note that you will need to re-deploy your store after making any changes to the templates located in <X-Cart>/skins/ folder make them show up on the storefront.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote

The following user thanks razortw for this useful post:
Ali Kazim (08-10-2015)
  #4  
Old 08-10-2015, 07:51 PM
 
Ali Kazim Ali Kazim is offline
 

Newbie
  
Join Date: Aug 2015
Posts: 4
 

Default Re: Smarty syntax not working - Xcart 5.2

Thanks razortw. That's what I have been looking for.
__________________
5.2.2
Reply With Quote
  #5  
Old 08-10-2015, 11:37 PM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Smarty syntax not working - Xcart 5.2

Quote:
Originally Posted by Ali Kazim
Thanks razortw. That's what I have been looking for.
You're welcome
Also, I forgot to mention that if you enable the developer mode in your store, there will be no need in rebuilding the store cache after editing template files.
All changes will be implemented instantly in that case.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 05:37 PM.

   

 
X-Cart forums © 2001-2020