Hints/Tips/Hacks
Contact-form with captcha
by John on Feb.23, 2010, under Hints/Tips/Hacks
This is a modified contact-form with captcha.
The captcha style is the same as the modified send-to-friend module.
Thanks to Star from Prestashop forums for bug fixing. (continue reading…)
How to – Install a module of Prestashop
by John on Nov.06, 2009, under Hints/Tips/Hacks
Installing a module on Prestashop is very easy when you know how to do it, but for users who are just starting out with it could be quite daunting if you haven’t a clue what is involved. It is far easier than some of the older e-commerce carts, namely Oscommerce and Zencart. (continue reading…)
How to – delete “0 products” text header in categories pages
by John on Nov.06, 2009, under Hints/Tips/Hacks
On the top of every category page it displays how many products are listed in that category, even if there aren’t any products.
(continue reading…)
How to- make phone field required at registration.
by John on Nov.06, 2009, under Hints/Tips/Hacks
Some users may need to have the phone number field required for new registrations. This is quite simple and needs you to edit 2 files on your server. Address.php which is located in your classes folder, and also the authentication.tpl file wich is located in your theme folder. (continue reading…)
How to – add products to homepage featured products
by John on Nov.06, 2009, under Hints/Tips/Hacks
Featured products on the homepage is a very powerful advertising tool for websites and can often be the first view of your site your potential customer may have. (continue reading…)
Fast and Easy remove add-to-cart buttons
by John on Oct.21, 2009, under Hints/Tips/Hacks
This little alteration was taken from the Prestashop forums and all credit goes to user aksolotl.
Upload the files into your prestashop installation, the .js file goes into your /js/ folder and the .tpl file goes into your theme folder overwriting the old header.tpl file.
The add-on uses javascript to remove all the add-to-cart buttons from your site.
Alter Prestashop to UK address format (1.3.1)
by John on Oct.18, 2009, under Hints/Tips/Hacks
This is an alternation to the base code that will alter all instances of the address apart from PDF) to the UK format rather than the French format.
You will need to upload the files into the same folders .
The version without dropdown counties menu will need you to create a new mysql field in your database, so some coding knowledge will be needed. This version will present a blank entry field for counties rather than the dropdown pre filled list.
PLEASE NOTE: Backup your files first BEFORE uploading the altered files.
Please read the read.me file for instructions on altering your sql database.
UK address format 1.2.4 with states dropdown menu
Removing “powered by Prestashop”
by John on Aug.02, 2009, under Hints/Tips/Hacks
Don’t want the prestashop credit link on site?
To remove the credit from the footer area all you need to do is edit the variouslinks.tpl file. This is located in the modules/blockvariouslinks folder. Remove the line of code near the bottom of the file that relates to the link, and then save the file and reupload to your server.
To remove the credit link from the emails you will need to edit each email template individually. These are located in two different folders. Firstly /mails/yourlanguage, modules/mailalerts/mail/yourlanguage.
The link code is located at the bottom of each file.
Customise admin footer links
by John on Jul.29, 2009, under Hints/Tips/Hacks
Customise your admin footer links by editting the footer.inc.php file and changing the following code:
Powered by <a href="http://www.prestashop.com/" target="_blank">PrestaShop™</a> [ <a href="http://www.prestashop.com/forums/" target="_blank">forum</a> & <a href="http://www.prestashop.com/en/contact_us/" target="_blank">contact</a> ]
Just change the links to whatever you want them to be – a link to the shop homepage or maybe supplier websites.
Removing the news feed from admin
by John on Jul.29, 2009, under Hints/Tips/Hacks
Your doing a prestashop site for a customer and want to remove the prestashop.com news feed that appears on the admin index page?
Well all you need to do is edit the index.php file in your admin folder and delete the following code.
/* News from PrestaShop website */
echo '
<h2>'.translate('PrestaShop live feed').'</h2>';
$isoDefault = Language::getIsoById(intval(Configuration::get('PS_LANG_DEFAULT')));
$isoUser = Language::getIsoById(intval($cookie->id_lang));
echo'<iframe frameborder="no" style="margin: 0px; padding: 0px; width: 780px; height: 380px;" src="http://www.prestashop.com/rss/news.php?v='._PS_VERSION_.'&lang='.$isoUser.'"></iframe>';


