Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Can't pass a variable...

 
Post new topic   Reply to topic    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: 1646

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:   
Post new topic   Reply to topic    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