Mar

PrestaShop Interview Questions
- Priyanki
- 21st Mar, 2023
- 990 Followers
PrestaShop Interview Questions
What is Prestashop?
Prestashop is a free rich featured open source e-commerce solution published under Open Software License (OSL). It allows users to create online stores.
PrestaShop interview questions
1) What is Prestashop?
It allows users to create online stores.It is written in the PHP programming language with support for the MySQL database management system.
2) List out some features of Prestashop?
- Hundreds of Store Templates
- Inbuilt Website Builder
- Mobile Responsive ready
- Support over 50 world-class payment solutions and gateways.
- Supports for shipping Methods
- Multilingual available in over 25 different languages
3) On what architecture Prestashop is based?
- Object/data. Database access is controlled through files in the “classes” folder.
- Data control. User-provided content is controlled by files in the root folder.
- Design. All of the theme’s files are in the “themes” folder.
4) What is the current stable version of Prestashop?
As on Dec 2018 1.7.4.4 is current stable version of PrestaShopwhich was released on November 6, 2018, you can download it free from its official website https://www.prestashop.com/en/download
5) 4. Provide Folder structure of the Prestashop 1.7
├── CONTRIBUTING.md ├── README.md ├── _dev │ ├── css │ │ └── ... │ ├── js │ │ └── ... │ ├── package.json │ └── webpack.config.js ├── assets │ ├── css │ │ ├── ... │ ├── img │ │ └── ... │ └── js │ └── ... ├── composer.json ├── config │ └── theme.yml ├── modules │ └── ... ├── plugins │ └── ... ├── preview.png └── templates ├── _partials │ └── ... ├── catalog │ ├── _partials │ │ └── ... │ ├── listing │ │ └── ... │ └── ... ├── checkout │ ├── _partials │ │ └── ... │ └── ... ├── cms │ ├── _partials │ │ └── ... │ └── ... ├── contact.tpl ├── customer │ ├── _partials │ │ └── ... │ └── ... ├── errors │ ├── ... │ └── static │ └── ... ├── index.tpl ├── layouts │ ├── layout-both-columns.tpl │ ├── layout-content-only.tpl │ ├── layout-error.tpl │ ├── layout-full-width.tpl │ ├── layout-left-side-column.tpl │ └── layout-right-side-column.tpl ├── page.tpl └── wrapper.tpl Source: http://developers.prestashop.com/themes/gettingstarted/index.html
6) What are Prestashop Modules, where are they located?
7) What is table naming convention in Prestashop?
8) How many types of modules present in Prestashop?
- Fronted Modules
- Backend Modules
Also Read PHP Interview Questions
9) How to Enable the multistore mode in Prestashop?
- Log-in to your shop’s administration.
- Go to the "Preferences" menu and select the "General" page.
- Find the "Enable multistore" option, select "Yes".
- Save your changes.
10) How to install a module in Prestashop?
Steps to install a Module in Prestashop:-
- In the modules tab, click on add a new module
- If a file of the module exists online, specify its URL in the Module URL field and then click on Download this module
- If the file is on your computer, click on Browse to open the dialogue box letting you search your computer, select the file then validate the dialogue box.
- Finally click on Upload this module.
- If the following error message appears:
This means that the PHP extension php_zip is not installed on your server. You will need to install it or have it installed by your web host. - If the installation is successful, the following message will appear:
The module will then appear in your list of modules under the Module tab. - Click on the install button to install the module.
- If the Configuration note appears in the module insert, click on it to configure it.
Source:- https://addons.prestashop.com/en/content/21-how-to
11) Explain Hook in Prestashop?
To know more about Prestashop hooks visit http://build.prestashop.com/news/new-updated-hooks-1-7-1-0/
12) List the Payment Option types supported by Prestashop?
- Offline
- External
- Embedded
- Iframe
13) PrestaShop method to check user is logged in or not?
$this->context->customer->isLogged() method is used to check user is logged in or not in PrestaShop.
14) How to get URL of current Prestashop page using smarty?
$smarty.server.REQUEST_URI is used to get the URL of the current page in Prestashop using smarty.
15) How to read / write / destroy Cookie in Prestashop?
For read, remove a key/value from Cookie, you can use key/value as a property of cookie object for example: echo $cookie->key1; for read and $cookie->key1 = null for remove. And for write you can use: $cookie->write();
16) How to create your own hook in Prestashop ?
To create your own hook in Prestashop you can follow the given steps:
- Go to Theme directory / config / theme.yml file and find the block “hooks”
- Inside the hooks block add
custom_hooks:
- name: yourCustomHookName
title: yourCustomHookName
description: Adds Block before the footer block
- Now, you need to place hook in the template file. For example, Go to : Theme directory > templates > _partials > footer.tpl
- Now add the custom hook : {hook h='yourCustomHookName'}
17) List the steps to create a payment module for PrestaShop 1.7 ?
The steps to create a payment module for PrestaShop 1.7 are:
- Declaring a new module.
- Adding an icon to the module.
- Installing the module.
- Working with hooks.
- Creating a validation controller.
Leave A Comment :
Valid name is required.
Valid name is required.
Valid email id is required.