Child pages
  • Troubleshooting

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You have to add your own selectors in your theme's CSS file. This file is usually found in /themes/YOUR_THEME/css/global.css.

Once created, you can use your selectors in the .tpl page you want to modify.

...

Here is an example:

First, your_page.php:

Code Block
HTML
HTML
<?php
include(dirname(FILE).’/config/config.inc.php’);
include(dirname(FILE).’/header.php’);

$smarty->display(PS_THEME_DIR.‘your_page.tpl’);

include(dirname(FILE).’/footer.php’);
?>

...

This is done in your PrestaShop install's /config/config.inc.php file. You should edit it in order to add the following lines:

...

You will have to follow the following procedure:

  1. Open the /config/settings.inc.php file, from your shop's root directory. Find the line containing "COOKIE_KEY". Copy the cookie content (without the quotes): it is the MD5 for your original password.
  2. You now need to generate a new MD5 hash for your password:
    1. Go to http://www.md5.fr
    2. Paste the cookie content in the text-field, and right after it, add your desired password. For instance, xykxB41JrEacRIoZxDioPNRmKeuO3ixCLygNxBAkeOkAHf2YUVESuT9jMYPASSWORD, where the cookie ends with T9j, and the desired password is MYPASSWORD (it can be anything you want).
    3. Click on "Convertir en MD5": this will produce a MD5 hash of the text-field's content. Copy it.
  3. You now need to put this hash into your database:
    1. Open you shop's database using phpMyAdmin. If you don't know how to use phpMyAdmin, ask your webmaster, or your host.
    2. Open the "pw_employee" table, find the row corresponding to your account (it should feature your firstname, lastname, and e-mail address), click its "Edit" button.
    3. Find the "passwd" field, and paste in the MD5 that you just generated.
  4. Log in in your back-office with the email listed in the same table, and the desired password that you used above (MYPASSWORD). This will generate a new cookie key.

If it still doesn't work, open the /config/settings.inc.php file and check the value of the "PS_BASE_URI" variable. It should contain the shop's file path:

...

If you want to set the maximum to 200 Mbytesmegabytes, change their values to

Code Block
html
html
post_max_size = 200M
upload_max_filesize = 200M

ThenFinally, restart the server to take your changes into account.

How to add a link or an image to customize the mails sent to your customers?

Prestashop enables you to automatically send a large number of mails to your customers (order confirmations, site subscriptions, out of stock notifications, etc.). It might be useful to customize these mails: adding images, links to survey forms or information pages (blogs, news, etc.).

Let's say your company wants to customize the e-mail sent automatically to customers after a purchase, in order to redirect them to a survey form.

To add a link in the mails sent to your English-speaking customers, you have to:

  1. Go to the /mails/en directory from your shop root.
  2. Edit the HTML template relative to the mail you want to modify: for instance, order_conf.html is the e-mail sent for new orders.
  3. Insert the link to the survey right in the HTML code (static):
    Code Block
    html
    html
    
    <a href="http://www.myshop.com/survey.php">Click here if you want to participate to our survey !</a>
    
    or a dynamic link with your logo:
    Code Block
    html
    html
    
    <a href="{shop_url}" title="{shop_name}"><img alt="{shop_name}" src="{shop_logo}" style="border:none;"></a>
    
  4. (Optional) To change the default color (which is pink: #DB3484), change the hexadecimal value to your preferred color value.
  5. Save the file.

Now the link will be added in every new mail sent after a purchase.

how to log in after deleting the English language pack?

In the event that you deleted the English language pack from your shop install, you can have issues connect to your back-office again.

Here how to solve this:

  1. Go to phpMyAdmin. If you can access it, ask your host to perform these actions.
  2. Select your shop's database, and select the ps_lang table.
  3. Click "Insert", and create a new entry with these values
    • id_lang -> 1
    • name -> English
    • active -> 1
    • iso_code -> fr
  4. Execute the query.
    You should be able to log in again.