Archive for the ‘Prestashop code snippits’ category

google site map module ignores canonical url setting

June 7th, 2010

Just found out that when generating a site map with the google site map module it completely ignores the canonical url setting in presatshop

so all your site map links will point to http://www. even if you have your canonical url set to just the http:// domain without the www. subdomain,

attached file should fix this problem, its a bit quick and nasty but it works

gsitemap

Hide the wishlist block from unlogged in users on prestashop

May 21st, 2010

I have always thought it is a bit pointless showing the wishlist box all the time, generally because the feature is only available to logged in users, so if you have people browsing the site it is just a empty box

so to make it visible to only customers who have a account and are logged in edit blockwishlist.tpl in you modules/wishlist directory

Just wrap the whole block with the following code

 {if logged}

{/if}

simply and then the block only appear when the user is logged in