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

Can't pass a variable...

 
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: Thu Jul 23, 2020 7:37 pm    Post subject: Can't pass a variable... Reply with quote

Trying to pass a variable across my shopping cart templates and eventually enter it into a database, but I lose it on the last page.
I'm using the following at top of each template:

Code:
{assign var='ticket_desc' value="test" scope='global'}


It passes fine through 3 pages, but at the final confirmation page, it disappears.

Any ideas?
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Fri Jul 24, 2020 12:37 pm    Post subject: Reply with quote

Not a Smarty question. Fix your PHP code.
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