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

Variables in tpl

 
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
Premizlaus
Smarty n00b


Joined: 22 Feb 2018
Posts: 1

PostPosted: Thu Feb 22, 2018 11:29 pm    Post subject: Variables in tpl Reply with quote

Hello, I have a problem with transferring the variable from input to the href under the button.

from - <input name="value1" value="{$value1}"/>
to - <a href="{$urls.base_url}2-strona-glowna?q=Cena-zł-{$value1}-{value2}

Prestashop 1.7


Last edited by Premizlaus on Sat Feb 24, 2018 11:29 am; edited 2 times in total
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Fri Feb 23, 2018 10:46 am    Post subject: Reply with quote

Great, but where's the code that demonstrates your problem?
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Mon Apr 09, 2018 12:03 pm    Post subject: Reply with quote

Code:
q={"Cena-zł-{$value1}-{value2}"}


Double qoutes but in side Samrty { } tags will do the job.
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