|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
musicweb Smarty n00b
Joined: 25 May 2013 Posts: 4
|
Posted: Wed Sep 09, 2020 11:56 am Post subject: Error message |
|
|
Why would the following show an error message?
Using version 3.1.32
Code: | Smarty Compiler: Syntax error in template "file:/includes/template/web/shop.tpl" on line 16 "{assign var='last_item' value=$cart->add_item_f($smarty.post.event_id, $smarty.post.category_id, $smarty.post.place, $smarty.post.discount, $smarty.post.order_custom1, $smarty.post.order_custom2, $smarty.post.txn_id, 'mode_web')}" unexpected 'var' attribute <-- \n thrown in /includes/libs/smarty3/sysplugins/smarty_internal_templatecompilerbase.php on line 16 |
|
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Fri Sep 11, 2020 10:53 am Post subject: |
|
|
Because that should have been
Code: | {$last_item=$cart->add_item_f($smarty.post.event_id, $smarty.post.category_id, $smarty.post.place, $smarty.post.discount, $smarty.post.order_custom1, $smarty.post.order_custom2, $smarty.post.txn_id, 'mode_web')} |
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|