Jump to content

[SOLVED] Costumized external links from tpl.


Jurgen Rutten

Recommended Posts

Goodmorning all,

 

I'm trying to create a costum link in a costum tpl file 

Example: <a href='https://example.com/?uid={$customer.firstname}'>outsidelink</a>

Sadly, the element 'customer.firstname' (or any other smarty variables) do not seem to be working. I'm on 1.7 in a multistore context; and I need to save a token somewhere to put into a field to send as a token to an external platform of ours as a reference.

 

If anyone has an idea on how to fix this, and which parameters would work that would be great, I was thinking about writing costum php but I don't think that's the right practice in this case. And I don't have a lot of experience in php, it's not my daily thing.

Edited by Jurgen Rutten (see edit history)
Link to comment
Share on other sites

5 minutes ago, endriu107 said:

To your tpl file add {debug} then visit page you want to add this, new window should popup with variables you have access on that page.

Thank you! This clearly shows I'm missing the fields I want. How can I add these as an option?

Link to comment
Share on other sites

1 minute ago, endriu107 said:

How did you create custom tpl file? You create module or new controller?

It's created as a costum for the front-end, in the module AP Pagebuilder, I don't think it has a file reference. As far as I know it's a standalone element that's loaded onto each page that has the shortcode.

Link to comment
Share on other sites

  • Jurgen Rutten changed the title to [SOLVED] Costumized external links from tpl.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...