Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Error message

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
musicweb
Smarty n00b


Joined: 25 May 2013
Posts: 4

PostPosted: Wed Sep 09, 2020 11:56 am    Post subject: Error message Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Fri Sep 11, 2020 10:53 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP