Complete install guides can also be found on Youtube:
- for a custom module: https://www.youtube.com/watch?v=CslAqRRutMg
- for a custom theme: https://www.youtube.com/watch?v=-4VRTB0qOZY
Parameters :
- dbhost: zazzopag.mysql.db.internal
- dbname: zazzopag_eshop
- dbuser: zazzopag_presta
- dbpass: [..]
Test connection to database from server:
$ mysql -h zazzopag.mysql.db.internal -u zazzopag_presta -p
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| zazzopag_eshop |
+--------------------+
Get the code:
$ wget https://download.prestashop.com/download/releases/prestashop_1.6.1.7.zip
$ unzip prestashop_1.6.1.7.zip -d www/zazzo.ch/
Launch the autoinstallation from http://zazzo.ch/ with database parameters:
- dbhost: zazzopag.mysql.db.internal
- dbname: zazzopag_eshop
- dbuser: zazzopag_presta
- dbpass: [..]
- prefix: ps_
Secure installation by removing install
foler and renaming admin
:
$ rm -rf install/
$ mv admin/ adminltr74be
The backoffice is now accessible from http://zazzo.ch/adminltr74be/.
The default installation comes with dummy products and modules that have to be disactivated :
Desactivate the demo mode.
Desactivate following modules :
- Banner block
- Categories block
- Contact information block
- CMS block
- Facebook Like Box block
- Featured products on the homepage
- Image slider for your homepage
- New products block
- Newsletter block
- Product payment logos block
- Social networking block
- Social sharing
- Top-sellers block
Generate public key on server if doesn't exist yet :
$ ssh-keygen -t rsa -b 4096 -C "zazzo@prod"
and allow the key on repository.
Clone the code:
$ git clone [email protected]:Plup/zazzo-prestashop.git /tmp/zazzo
$ mv /tmp/zazzo/* /tmp/zazzo/.* ~/www/zazzo.ch/
In Modules / Front office features
:
- activate Pillow Generator module
In Preferences / Themes
:
- add new theme
- create a new theme :
..- Name: Zazzo ..- Default colums: no ..- Theme directory: zazzo ..- Copy missing files from: default-bootstrap ..- Responsive: yes
- activate Zazzo theme
In Module / Theme Configurator
:
- disable everything
You have to install "zazzo" theme wich contains:
- /themes/zazzo/header.tpl
- /themes/zazzo/index.tpl
- /themes/zazzo/sass/modules/pillowgenerator/zazzo.scss
- /modules/pillowgenerator/views/front/homepage.tpl
- /themes/zazzo/js/modules/pillowgenerator/homepage.js
- /themes/zazzo/product.tpl
- /themes/zazzo/sass/vendor/bourbon/
- /themes/zazzo/sass/vendor/susy/
- /themes/zazzo/sass/modules/pillowgenerator/main.scss
- /themes/zazzo/js/modules/pillowgenerator/main.js
- /themes/zazzo/js/modules/pillowgenerator/models.js
- /themes/zazzo/js/modules/pillowgenerator/vendor
The Pillow Generator module rely on Size attributes which have to be define by administrator.
- Size The "Size" attribute takes multiple values as the size names ("30x30", "L",...)
A specific menu in Catalog let the administrator defines all the fabrics available in the Shop.
### Create Products
The module Pillow Generator is an extension of the Prestashop products. It allows administrator to define products as it is in the prestashop core but few addionnal options needs to be specified in order to make the generator work correctly.
The menu Pillow Generator needs to be filled with :
- a SVG model of the pillow
- the maximum of fabrics allowed for this product
- add all the associations of Sizes, Fabrics and Prices for this product.
- The fabrics image should be generated in .jpg extension
- The fabrics image must be seamless
- The product models should be generated in .svg
The various svg elements must be named as follow:
- The FRONT layer: id="g-front"
- The BACK layer: id="g-back"
- The FRONT CENTRAL path: id="pillow-front"
- The FRONT SIDES path: id="pillow-sides-front"
- The BACK SIDES path: id="pillow-sides-back"
- The BACK CENTRAL path: id="pillow-back"