# Alysum
> Explore the Alysum Premium Prestashop AMP Theme documentation. Learn how to use the Prestashop Page Builder, customization options, and AMP integration.
import { Video } from '../components/Video';
## Child theme
A child theme allows you to customize the Alysum theme without modifying its core files. It inherits all templates, styles, and functionality from the parent theme while letting you override only the files you want to change.
:::info
This feature is useful only for making slight modifications to a theme, such as adding a block. If you need to make more extensive changes to the markup, modify the theme directly instead of creating a child theme.
:::
### How to install the child theme
Installation process is the same as for the main theme.
Find more technical details on the [official prestashop page](https://devdocs.prestashop-project.org/9/themes/reference/template-inheritance/parent-child-feature/)
import { Image } from '../components/Image';
import { Video } from '../components/Video';
## Frequently Asked Questions (FAQ)
Welcome to our FAQ page! Here, you’ll find answers to the most common questions about our theme, installation, customization, and usage. Whether you’re getting started or looking for specific solutions, this page is designed to help you resolve any issues or doubts quickly.
Browse through the questions below to find helpful information and guidance. If you can’t find what you’re looking for, feel free to reach out to our support team – we’re here to help!
### There is no menu appearing when I click it on mobile devices
1. Open your header template in the CE editor
2. Click on the Menu widget
3. Go to the General section
4. Make sure the option “Use this menu in mobile sidebar” is enabled
5. Save the template and clear the cache if needed
### Empty search results
Go to "Shop Parameteres" → "Search" and click "Add missing products to the index"
### Prestashop Product Types
`New`\
By default, all newly added products are considered **New** You can change the number of days a product remains **New** in `Shop Parameters` → `Product Settings`.
`Featured`\
To make the product **Featured**, go to `Catalog` → `Products` and in Associations field of a product add it to Home category
`Special`\
To make the product **Special**, go to `Catalog` → `Products` and add a discount.
`Bestseller`\
It's a product which was sold many times
`Cross-sellings`\
Are those products which were sold in the same cart with the currently viewed product
### How to edit contact page details?
Go to Back Office → Shop Parameters → Contact. You’ll find two tabs: Contacts and Stores. Navigate to the Stores tab to view all available contact details
### Empty Contact Page
Please make sure the module "Contact form (by PrestaShop)" is installed and enabled
### Where to find subscribers list
Go to "Modules" → "Installed Modules", find there "Newsletter subscription". Click on "Configure"
### Categories List disappear
Go to "Modules" → "Installed Modules", find there "Category tree links". Click on "Configure". Set "Category root" to "Home category"
### How to configure Google Maps on Contact Page
1. Go to "Modules" → "Theme Settings" → "General Tab", locate Google API Key, and enter your API key. [Read more about API keys here.](https://developers.google.com/maps/documentation/javascript/get-api-key)
2. Go to "Theme Settings" → "Contact Page", enter your store’s coordinates, and save.
### My Translation doesn't apply
If your translation isn’t applying, try modifying it, save the changes, then revert it back and save again
### Add custom Font to the Theme Settings fonts list
###### **Step 1: Download the font**
Find the custom font you want to use on your website, and then download the font file.
***
###### **Step 2: Create a WebFont Kit for cross-browsing**
Upload your font file to the [Webfont Generator](https://transfonter.org) and then convert it.
***
###### **Step 3: Upload the font files to your website**
Using your FTP or file manager, upload all the font files found within your Web Font Kit to your website into the folder `/themes/alysum/assets/fonts/`. Typically this kit will include multiple file extensions such as (.woff), (.woff2), (.ttf) and (.svg).
Your kit will also include a Cascading Style Sheet (.css) that you will need to update and upload in step 4.
***
###### **Step 4: Update your CSS file**
Open downloaded CSS file in a text editor
Replace the existing source URL with the new URL you created by uploading each file.
Here’s a quick example:
**Before update:**
```css
@font-face {
font-family: 'CustomFont';
src: url('CustomFont.woff2') format('woff2'),
url('CustomFont.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
```
**After update:**
```css
@font-face {
font-family: "CustomFont";
src: url('../fonts/CustomFont.woff2') format('woff2'),
url('../fonts/CustomFont.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
```
Now copy that code and paste it to the beginning of the file `/themes/alysum/assets/css/theme.css`
***
###### **Step 5: Add your font to the Theme Settings Font List**
Open the file `/modules/pkthemesettings/config/fonts.json` and add the name of your font to the list. Here’s an example:
```json
[
'CustomFont',
'ABeeZee',
'Abel',
'Arial',
...
```
###### **Step 6 (Optional): Add your font to the Creative Elements Font List**
To add the font to Creative Elements font list, open the file:
`/modules/creativeelements/includes/fonts.php`
### Revolution slider autoplay video
Select your slider and click Slide Editor. Choose a slide that contains a YouTube video. Then, go to Source Settings → YouTube Arguments and add the following parameters:
`&autoplay=1&mute=1"`
### How to add Google Analytics/Tag Manager's Code
1. Get your code from Google
2. Open the file `/themes/alysum/templates/_partials/javascript.tpl`
3. Add your code to the end of the file
4. add `{literal}` tag around yor code like this:
```html
```
### How to Add Price Countdown
### Updating an old theme version that doesn't have pklib
If you're updating from an older (\< 9.1.0) theme version released before the [Promokit Library](/modules/pklib) (`pklib`) module existed, you need to install `pklib` manually **before** running the theme update.
Almost all other Promokit modules depend on `pklib` for shared functionality such as caching, file management, and admin tab registration. If `pklib` isn't installed first, the update or module installation will fail with errors like "module is not valid and cannot be loaded" or "Class Promokit\Module\Pklib... not found".
**Steps:**
:::steps
#### Install pklib
1. Download the latest theme archive and locate the `pklib` module folder inside `modules/`.
2. Upload it to your `/PRESTASHOP_ROOT/modules/` folder via FTP.
3. In the Back Office, go to `Modules` → `Module Manager`, search for "Promokit Library", and install it.
4. Once `pklib` is installed and enabled, proceed with the regular [theme update](/updates) steps.
#### Hook Theme Settings onto ActionFrontControllerSetVariables
1. Go to `Design` → `Positions`, find the `Hook a Module` button, and click it.
2. On the next page, select the Theme Settings module you wish to attach.
3. Select the hook `ActionFrontControllerSetVariables` to which you will attach the module.
4. Confirm your changes by clicking on the save button.
#### Verify all module hooks
1. Go to `Theme Settings` → `Modules`.
2. Make sure every module is hooked in all of its required hooks.
3. If a module isn't fully hooked, click its "Fix" button to hook it automatically.
:::
import { Image } from '../components/Image';
## Images Settings
Prestashop can accept images of (almost) any size. It automatically reformats the images you upload and saves them according to it’s default image size. Prestashop also resizes the images to generate smaller thumbnails. So the best image size is the largest size that Prestashop uses (for zoomed up images), then the smaller images will be taken care of later.
### Understanding Image Aspect Ratios
The aspect ratio determines the proportional relationship between an image's width and height. For example:
* 10:13 (Alysum default) = Portrait orientation, taller than wide
* 1:1 (Square) = Equal width and height, popular for Instagram-style layouts
* 4:3 = Slightly wider, classic photography ratio
* 3:4 = Portrait orientation, common for fashion products
#### Avoid White Gaps: Match Your Proportions
:::tip
If your source images don't match your configured aspect ratio, PrestaShop will add white padding bars to fill the space.
:::
**The fix:** Always upload images that exactly match your configured aspect ratio. If your theme is set to 1:1, upload square images. If set to 10:13, upload portrait images with that exact ratio.
### How to Change Image Proportions
1. Navigate to **Design → Image Settings**
2. Click the **edit button** of an image type you want to change
3. Set updated **width/height** values to match your desired ratio
4. Save changes
5. **Regenerate existing images** (scroll to bottom of Image Settings page)
* Select the image types to regenerate
* Check "Erase previous images"
* Click "Regenerate thumbnails"
:::info
Regeneration can take several minutes depending on the number of products in your store.
:::
#### Example: Changing from 10:13 to 1:1 (Square)
Current Alysum defaults (10:13 ratio):
```
small_default: 80 × 104
medium_default: 500 × 650
large_default: 1000 × 1300
```
New square dimensions (1:1 ratio):
```
small_default: 80 × 80
medium_default: 500 × 500
large_default: 1000 × 1000
```
### Tips to get nice looking images:
**Images Settings**
* **All product images should have the same aspect ratio.** Consistency is key. Don't mix square images with rectangular ones.
* **Maintain proportion across all image types** If you use 1:1 for large\_default, use 1:1 for small\_default and medium\_default too.
**Source Images**
* **Source images should match your chosen aspect ratio** If using 1:1 ratio, upload square images (1000×1000px). PrestaShop will crop incorrectly proportioned images.
* **Source images should not be smaller than large\_default** Upload images at least as large as your largest image type. Recommended minimum: 1000×1000px for 1:1 ratio.
### Default Image Sizes Reference
Here's a screenshot of the default Alysum image sizes (10:13 ratio):
import { Image } from '../components/Image';
import { Video } from '../components/Video';
## Installation
### Installation via browser
Follow the steps below to set up your site template:
* Unzip downloaded archive and find installation .zip file in the `Theme` folder. "Installation zip" file is called `alysum-v.X.X.X.zip`
* Log in to your PrestaShop Back Office and navigate to `Design` → `Theme & Logo`.
* Click the Add new theme button, then browse and upload the zipped theme file.
* select .zip file in the "Import from your computer" section
Once Prestashop has unpacked and installed the theme, just click to Use this theme button
### Installation video tutorial
### Install through FTP
import { Video } from '../components/Video';
## The Menu
In Alysum, the main menu is managed entirely through the `Navigation` widget in Creative Elements.
The `Navigation` widget allows you to:
* Add, edit, and remove menu items
* Assign dropdown templates
* Configure layout and alignment
* Control display settings and behavior (hover, click, mobile view, etc.)
### Managing the Dropdown Menu Content
The dropdown menu content is managed using Creative Elements templates. This allows you to fully customize the layout and design of each dropdown item.
:::steps
#### Create a Dropdown Template
1. Go to Creative Elements → Templates
2. Click Add New
3. Create a new template that will contain the content of your dropdown menu (e.g. banners, links, categories, custom layout)
4. Save and publish the template
#### Assign the Template to a Menu Item
1. Open your Header template in Creative Elements
2. Add the Navigation widget (or click on the existing one)
3. Select the menu item you want to modify (or create a new one)
4. In the dropdown template selector, choose the template you created earlier
5. Save the template
:::
Once assigned, the selected template will be displayed as the dropdown content for that specific menu item.
#### Video Tutorial
## Modules
:::info
PrestaShop uses modules to add features or customize how it works. These small programs modify or extend PrestaShop’s functionality, making it easier to use and better suited to a merchant’s needs.
:::
### Modules status overview
| Symbol | Meaning |
| -----: | :-------------------------------------------------- |
| 🟢 | Symfony Form |
| ❎ | No back office configuration |
| 💾 | External Author. Not updatable |
| 🔄 | Legacy form. Planning an update of the admin forms. |
| Status | Module Name | Technical Name |
| :----- | :-------------------------------------------------- | :------------------ |
| 💾 | [Creative Elements](/modules/creativeelements) | creativeelements |
| 🔄 | [Promokit AMP](/modules/pkamp) | pkamp |
| 🟢 | [Promokit Captcha](/modules/pkcaptcha) | pkcaptcha |
| 🟢 | [Promokit Compare](/modules/pkcompare) | pkcompare |
| 🟢 | [Promokit Cookies](/modules/pkcookies) | pkcookies |
| ❎ | [Promokit Elements](/modules/pkelements) | pkelements |
| 🟢 | [Promokit Extended Product](/modules/pkextproduct) | pkextproduct |
| 🟢 | [Promokit Facebook](/modules/pkfacebook) | pkfacebook |
| 🟢 | [Promokit Favorites](/modules/pkfavorites) | pkfavorites |
| 🟢 | [Promokit Front Panel](/modules/pkfrontpanel) | pkfrontpanel |
| 🟢 | [Promokit Instagram](/modules/pkinstagram/) | pkinstagram |
| ❎ | [Promokit Library](/modules/pklib) | pklib |
| 🔄 | [Promokit Lookbook](/modules/pklookbook) | pklookbook |
| 🟢 | [Promokit Popup](/modules/pkpopup) | pkpopup |
| 🔄 | [Promokit Product Tabs](/modules/pkproducttabs) | pkproducttabs |
| 🔄 | [Promokit Size Guide](/modules/pksizeguide) | pksizeguide |
| 🟢 | [Promokit Theme Settings](/modules/pkthemesettings) | pkthemesettings |
| 💾 | [Revolution Slider 6](/modules/revsliderprestashop) | revsliderprestashop |
| 💾 | [Simple Blog](/modules/ph_simpleblog) | ph\_simpleblog |
## Pages
### Home
The home page is the first impression visitors have of your store.
Setting it up is straightforward with Creative Elements:
#### Quick Setup
1. Create your template: Use the `Creative Elements` module to design your home page layout with widgets like sliders, product showcases, banners, and more.
2. Assign the template: Navigate to `Theme Settings` → `Home Page` and select your newly created template from the dropdown list.
3. Save and preview: Click save and view your store's front page to see the changes in action.
#### Mobile Home Page
To provide an optimal mobile experience, you can create a separate mobile-specific home page:
1. Create a mobile-optimized template in Creative Elements
2. Go to `Theme Settings` → `Home Page` → `Mobile Home Page Template`
3. Select your mobile template from the list
### Category
The category page displays your products organized by category. You have full control over how this page looks and functions.
#### Layout Options
Choose between two approaches based on your needs:
##### Option 1: Native Theme Layout
Use the theme's built-in category page design with pre-configured product grids and filters.
Setup:
1. Go to `Theme Settings` → `Category Page`
2. Select `Native Theme Layout` for the `Category Page Template` field
3. Click `Save`
##### Option 2: Custom Layout with Creative Elements
Build a completely custom category page using drag-and-drop widgets for unique layouts, custom banners, product showcases, and more.
Setup:
1. Go to `Theme Settings` → `Category Page`
2. Select a template from the list of available options in the `Category Page Template` field
3. Click `Save`
### Product
The product page is where customers view product details, images, prices, and make purchase decisions. You have full control over how this page looks and functions.
#### Layout Options
Choose between two approaches based on your needs:
##### Option 1: Native Theme Layout
Setup:
1. Go to `Theme Settings` → `Product Page`
2. Select `Native Theme Layout` for the `Product Page Template` field
3. Click `Save`
##### Option 2: Custom Layout with Creative Elements
Build a completely custom product page using drag-and-drop widgets for unique layouts, custom tabs, enhanced image galleries, and more.
Setup:
1. Go to `Theme Settings` → `Product Page`
2. Select a template from the list of available options in the `Product Page Template` field
3. Click `Save`
import { Image } from '../components/Image';
## Performance
:::info
This section contains tips to help improve your shop’s server performance. We recommend enabling these cache options only after completing all necessary configuration steps.
:::
The settings below are recommended for use in a production environment.
### Smarty settings
* `Template cache` - "Never recompile template files". This setting prevents PrestaShop from checking and recompiling template files on every request, improving performance.
* `Cache` - "Enabled"
* `Clear cache` - "Never clear cache files". Do not check if a file has changed, which improves performance
### Debug settings
* `Debug Mode` - No.\
By enabling this option, technical error messages will be visible. It is useful when you are being helped by someone who does not have access to your shop but who needs to know what is going on technically.
### Media. Combine, Compress and Cache (CCC)
* `Smart cache for CSS` - On. Combine and compresse CSS files
* `Smart cache for JavaScript` - On. Combine and compresse JS files
* `Apache optimization` - On. This setting will change your web server's configuration file in order to make it more efficient for CCC.
### Technical details
[Performance detailed description](https://devdocs.prestashop-project.org/9/scale/optimizations/)
### Additional Optimization
[Optimize your PrestaShop performance](https://medium.com/@lmeyer./optimize-prestashop-performance-again-798166ac5515)
import { Image } from '../components/Image';
## Requirements
To install the theme, you must have a working version of PrestaShop already set up. For detailed instructions on installing PrestaShop, please refer to the [Prestashop Documentation](https://doc.prestashop.com/display/PS17/PrestaShop+1.7+documentation)
:::info
The theme’s requirements are the same as those of the Prestashop platform.
:::
### PHP configuration
* `PHP version` : min 7.4 for PS8. min 8.1 for PS9
* `memory_limit` : should be at least 256M (512M recommended)
* `post_max_size` : should be at least 1M
* `file_max_upload_size` : 16M
* `allow_url_fopen` : ON
* `allow_url_include` : OFF
* `register_globals` : OFF
### Apache modules
* `mod_rewrite` : ON
* `mod_security` : OFF
* `mod_auth_basic` : OFF
### [Must-have PHP extensions](https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/)
* `CURL` The [Client URL extension](https://php.net/manual/en/book.curl.php) is used to download remote resources like modules and localization packages.
* `DOM` The [DOM extension](https://php.net/manual/en/book.dom.php) is needed to parse XML documents. PrestaShop uses it for various functionalities, like the Store Locator. It is also used by some modules, as well as the pear\_xml\_parse library.
* `Fileinfo` The [File information extension](https://php.net/manual/en/book.fileinfo.php) is used to find out the file type of uploaded files.
* `GD` The [GD extension](https://php.net/manual/en/book.image.php) is used to create thumbnails for the images that you upload.
* `Iconv` The [ICONV extension](https://www.php.net/manual/en/book.iconv.php) is used to convert character sets.
* `Intl` The [Internationalization extension](https://php.net/manual/en/book.intl.php) is used to display localized data, such as amounts in different currencies.
* `JSON` The [JSON extension](https://www.php.net/manual/en/json.installation.php) is used to manage JSON format.
* `Mbstring` The [Multibyte string extension](https://www.php.net/manual/en/book.mbstring.php) to perform string operations everywhere.
* `OpenSSL` The [OpenSSL extension](https://www.php.net/manual/en/book.openssl.php) is used to improve security.
* `PDO` The [PHP Data Objects extension](https://www.php.net/manual/en/book.pdo.php) is used to connect to databases.
* `PDO (MySQL)` The [PDO\_MYSQL driver](https://www.php.net/manual/en/ref.pdo-mysql.php) is used to connect to MySQL databases.
* `SimpleXML` The [SimpleXML extension](https://www.php.net/manual/en/intro.simplexml.php) is used to manage XML files.
* `Zip` The [Zip extension](https://php.net/manual/en/book.zip.php) is used to expand compressed files such as modules and localization packages.
### Permissions
* Permissions for all `files` should be set to `644`
* Permissions for all `folders` should be set to `755`
### How to Ensure Your Server Meets PrestaShop’s Requirements
**1.** If you have already installed the Alysum theme, navigate to the `Theme Settings` → `Welcome` tab and check the `System Status`
**2.** You can use Prestashop's official [system requirements tool](https://github.com/PrestaShop/php-ps-info/) to easily check if your environment fulfills PrestaShop’s requirements. Here’s how:
* Download the [latest version from GitHub](https://github.com/PrestaShop/php-ps-info/releases).
* Extract the zip file.
* Upload the `phppsinfo.php` file to your server and put it inside your current shop’s directory or the one where you intend to install it.
* Open it up on your browser (`http://your-domain.com/phppsinfo.php`).
* Type in the login and password if prompted (use `prestashop` for both).
**3.** Please also check the `Information` section under `Advanced Parameters` in your BO. All parameters should be marked as `OK` as shown below:
## Support
If this documentation doesn’t answer your questions, please contact us via the Support Helpdesk on the [Theme's Support Page](https://support.promokit.eu/index.php?project=3)
We are located in the GMT +1:00 time zone and respond to all inquiries within 24 hours on weekdays. In rare cases, the response time may extend to 48 hours. Please note that during holiday seasons, response times may be longer.
:::info
While we aim to provide the best support possible, please keep in mind that it only extends to verified buyers and only to issues related to our template like bugs and errors. Custom modifications or third party module implementations are not included.
:::
### Rate our theme
:::success
If you’re enjoying our theme and service, we’d really appreciate your support! 🌟\
Head over to your [Themeforest Profile](https://themeforest.net/downloads) and feel free to leave a rating and review for our template. Your feedback means the world to us! 😊\
Thank you so much in advance!
:::
import { SVGIconsList } from '../components/SVGIconsList'
## SVG Icons
SVG Sprite is a technique used to improve the performance of web pages by combining multiple SVG images into a single file. This file is then referenced to display different icons or images from within the sprite.
### Change an icon
For example you want to change "facebook" icon.
* Open the file `/themes/alysum/assets/img/lib.svg`
* find `facebook` icon, it looks like this:
```
```
* Find a new icon from a source like: flaticon.com
* Download the icon and open the SVG file in any text editor.
* Copy the content inside the `` tags
* Paste the copied code into the `lib.svg` file inside the corresponding `` tag, e.g.:\
`...`
* Copy SVG dimensions\
`