Child pages
  • Troubleshooting

Versions Compared

Key

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

...

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

How to create your own page/template?

You can also create your own .tpl file (located in your theme directory), where you can insert your own HTML tags, and create a .php page (at the root of your shop) which will call the .tpl file.

Here is an example:

First, your_page.php:

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

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

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

With that, your_page.tpl contains your HTML code.

How to generate the .htaccess file with PrestaShop's back office, in order to get Friendly URL?

The .htaccess file, located at your shop root, enables you to set some environment variables (like the PHP version). You can also use to customize the URL-rewriting rules, and control the access to some directories and some other actions.

...

First thing to do: make a backup of your existing .htaccess file if any, locally or online.

...

Once Apache is configured, if there is no .htaccess file in your shop's root directory yet, create an empty one:

  1. Create an empty file on your desktop with a simple text-editor, such as Windows's Notepad (not Word!) or OS X's TextEdit.
  2. Save the file as htaccess.txt, in a folder where you can easily find it. If possible, save it as an purely ASCII or ANSI file.
  3. Upload it to your server using an FTP client, such as FileZilla. Put the file at the root of your shop's directory.
  4. Change its permissions to read and write everyone (CHMOD 666 in Unix), with your FTP client for instance).
  5. Go to the PrestaShop back-office, and under the Preferences tab and "SEO & URLs" sub-tab, enable "Friendly URL" (bottom of the page).
  6. Go to the "Tools" tab, then the "Generators" sub-tab, and click the "Generate the .htaccess file" button.

Warning: it will overwrite the existing one. If it was an empty file, that's okay, but if you have specific instructions in this existing, you should first move them over to the text-field in the "Generators" sub-tab, so that they are still found in the .htaccess file. If you forget to move your existing .htaccess instructions over, you risk putting your shop offline.

...

Note that it could also be a .htaccess issue. Read the previous entry, "ow how to generate the .htaccess file".

...

If you make a CSV Import with accentuated texts, beware to select UTF-8 or iso-8859-1 in the "Import" sub-tab of the "Tools" tab, and be sure that the .csv file has been saved with the same encoding.

...

To change the maximum size of the uploaded files in your server, you have to edit the php.ini file for your PHP install. This can only be done if you do have access to your server's PHP configuration files. If not, ask your host.

If you do have access to php.ini, open it and edit the following lines:

...

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

Prestashop 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.).

...