Christian Tarpin Posted April 15, 2013 Share Posted April 15, 2013 (edited) Hi! We are running our site www.iotheshop.com with Prestashop 1.4.4.0. But we also have a WordPress blog and a Joomla institutional site... So we needed a single interface to manage all the statistics in a coherent way... We installed successfully a Xiti tag in the blog, and with more difficulties in the footer.tpl of our Prestashop theme. It finally worked with a XHTML tag, protected by {literal} & {/literal}, otherwise we had fatal errors from smarty. So, we have some basic statistics, in addition to the specific statistics given by Prestashop itself. Now... we would like to know which page is accessed. This information is given, in the Xiti code, through a variable "p". You have to give to this variable (p=....) the name of the current page viewed. In WordPress, we used a simple bit of code : p=<?phpechobasename($_SERVER["PHP_SELF"]);?> But this doesn't work in Prestashop... You probably knows why, but as I'm not a developer, I'm still scratching my head ! Could you help me ? What is the right way to do that ? Thank you by advance ! Christian Edited April 21, 2013 by Christian Tarpin (see edit history) Link to comment Share on other sites More sharing options...
shacker Posted April 19, 2013 Share Posted April 19, 2013 in smarty, you get page name with {$page_name} Link to comment Share on other sites More sharing options...
Christian Tarpin Posted April 21, 2013 Author Share Posted April 21, 2013 Thank you, Shacker! It worked, but of course I have had to encapsule the variable like this {literal}{$page_name}{/literal} to let it interpret by smarty... Regards, Christian Link to comment Share on other sites More sharing options...
shacker Posted April 21, 2013 Share Posted April 21, 2013 perfect. remember to chante the page title to solved Link to comment Share on other sites More sharing options...
Christian Tarpin Posted April 21, 2013 Author Share Posted April 21, 2013 I suppose that you mean to add a " (solved)" to the title of the topic, correct? How do you do this? I didn't find the way... Christian Link to comment Share on other sites More sharing options...
vekia Posted April 21, 2013 Share Posted April 21, 2013 I suppose that you mean to add a " (solved)" to the title of the topic, correct? How do you do this? I didn't find the way... Christian [sOLVED] Topic If, after posting a topic, you find a solution to your problem, please indicate it in your post and describe the solution. There is nothing more frustrating for users with the same issue who come across your post "all is good, I fixed it..." without an explanation of how to fix it. Furthermore if you are the author of the topic for which a solution has been found, please edit your topic title to mark it as [sOLVED]. To mark a topic as [solved] : - Edit the first post of your topic by clicking on the "Edit" button, - Click on the "Use full editor" button, - Add the "[solved]" string at the beginning of your topic title and click on the "Submit Modified Post" button. Posters who do not abide by this (at the demand of the moderators or other users) will have their new topics closed until the problem has been resolved. hope it helps Link to comment Share on other sites More sharing options...
Christian Tarpin Posted April 21, 2013 Author Share Posted April 21, 2013 Done... Thank you! Christian Link to comment Share on other sites More sharing options...
vendugeek Posted April 10, 2015 Share Posted April 10, 2015 Hi, i need the name of my home page for the xiti code. What is smarty ?? Link to comment Share on other sites More sharing options...
shacker Posted April 12, 2015 Share Posted April 12, 2015 go to advanced parameters, performance, and you can disabel smarty or ckear cache option Link to comment Share on other sites More sharing options...
Recommended Posts