Jump to content

[Solved] Xiti tag in a Prestashop page: how to get the page name


Recommended Posts

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 by Christian Tarpin (see edit history)
Link to comment
Share on other sites

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

  • 1 year later...
×
×
  • Create New...