Archive for the ‘prestashop coding notes’ category

prestashop shop seo page loading speed

June 8th, 2010

While trying to increase page speeds load, it would make sense to use the google cdn.

now if your prestashop does not use ssl it is an easy change

just edit header.tpl

find

<script type="text/javascript" src="{$content_dir}js/jquery/jquery.easing.1.3.js"></script>

and change to

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>

now if your site is ssl secured its a bit more complicated, as you need the call to jquery to be supplied from an https source.

you could just call

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>

from every page, but an https call takes slightly longer than a straight http call

their are several ways you can achieve the desired results, mainly involving lost of {if} loops in the header to ensure the correct protocol is used

but a far easier way is as follows

edit init.php in you web root and add the following code after

Prestashop Uk address format

June 7th, 2010

This will show you how to change the default layout of addresses in prestashop to UK format.

The first this we always do when doing an install is to move the UK out of the Ecc zone and create a new UK zone and ad the UK to this, Simply reason this helps in the shipping set up later.

prestashop featured products under categorys that have subcategorys

May 24th, 2010

thinking of displaying random products underneath the subcategory boxes, only when the category has subcategorys, of course you can do this by placing the product in the subcategory and the main category

but it does not appear in a featured box

so the code that detects if sub categorys are present is as follows

{if isset($subcategories)}

more info to follow