chello Posted June 3, 2014 Share Posted June 3, 2014 Hello, Is the Prestashop Version 1.6.0.6 ignoring not registered smarty variables? If so, how can I change this so that they are not ignored? Many thanks for your help. chello Link to comment Share on other sites More sharing options...
vekia Posted June 3, 2014 Share Posted June 3, 2014 can you show your code? where and what variables are ignored/? Link to comment Share on other sites More sharing options...
chello Posted June 4, 2014 Author Share Posted June 4, 2014 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 More sharing options...
Recommended Posts