Jump to content

Ignoring not registered smarty variables?


Recommended Posts

I used Post Affiliate Pro and its site replication feature. If a site is replicated then variables like {$refid}, {$firstname}, {$lastname} can be used and are dynamically replaced with the value of affiliate whose replicated site was visited.

 

Now, in the header.tpl file of my theme the logo URL has the following code by default:

<a href="http://smartclub24.com/de-shop/" title="{$shop_name|escape:'html':'UTF-8'}">

 

and I added {$refid} into it:

<a href="http://smartclub24.com/de-shop/{$refid}" title="{$shop_name|escape:'html':'UTF-8'}">

 

but it was ignored. Therefore the support guy from Post Affiliate Pro temporarily used a simple JavaScript code by which the URL of the logo is rewritten in 4-5 seconds after the page loaded.

However, it would be a lot better if custom variables (just like the {$refid} above) could be used in the template files of prestashop.

Link to comment
Share on other sites

×
×
  • Create New...