Archive for December, 2010

How gets user information using “Prestashop” tools?

We need get global cookie variable: global $cookie; To check if user is logged in: refer to the cookie ”isLogged()”method Get user’s id: $cookie->id_customer Get user’s first name: $cookie->customer_firstname Get user’s surname: $cookie->customer_lastname Get user’s email address: $cookie->email Get a language id: $cookie->id_lang Full sample:

How to set send email from Prestashop using SMTP (gmail)?

Follow these simple steps: Login to admin panel, Click on “ Preferences” and then on “Email” tab, Select “Set my own SMTP parameters”. “For advanced users ONLY” radio button, SMTP server: your SMPT server, if using Gmail insert – “smtp.gmail.com”, SMTP user: your email address, e.g. my_prestashop_email@gmail.com, SMTP password: email password, Encryption: Gmail uses “TLS”, […]

How to add new (change) footer links?

Follow these simple steps: Login to admin panel, Click on “Tools” and then on “CMS”, Click on “Add new” button, Insert page information, parameters and save page, Click on “Modules” tab, Prestashop 1.3.x (and lower version) : go to “Blocks“ tab, click on „Footer links block“ Prestashop 1.4.x: go to “Front Office Features” tab, click on “CMS block”, […]

How to change default image size?

How to insert new size: Login to admin panel, Click on the “Preferences“ and on the “Image” tab, Click “Add new” button, Insert resized image name and parameters, select categories, Click “save” button. How to edit: Click on “Edit” button, Set new parameters, Save new parameters, Go to bottom page, Create new image size – […]

How to run search-friendly URL in Prestashop?

Follow these simple steps: Go to Prestashop admin panel and click on the “Preferences” tab, Then scroll down to “Friendly URL” and click on “Enable”, then “Save”, Create a .htaccess blank file in prestashop root DIR, Provide required permissions (CHMOD 666 on Unix system, in Windows OS it is generally not required), Click on the […]

How to create a new template in Prestashop?

Follow these simple steps: Go to the Prestashop catalog: “themes”, Copy default Prestashop theme: “prestashop” (or any other if you want), Rename new folder (no spaces nor special chars), Go to Prestashop admin panel and click on the “Preferences” tab and then the “Appearance” tab, Scroll down and change to your new theme.