No description or website provided.
HTML Python CSS JavaScript
Permalink
Failed to load latest commit information.
docs Added documentation boilerplate #4267 Apr 7, 2014
locale Adding translation for de_DE. Dec 23, 2014
static Fixed for nereid static file changes Jul 17, 2015
templates Fixed responsive issue of billing address Aug 7, 2015
tests Get tree-node children as products #7975 Jul 2, 2015
view Get tree-node children as products #7975 Jul 2, 2015
web Migration to 3.4 #7259 Mar 18, 2015
.coveragerc Added coverage and travis badges May 5, 2014
.gitignore Added more templates Dec 3, 2013
.travis.yml Updating .travis.yml to run tests from tox. Feb 5, 2015
Dockerfile Migration to 3.4 #7259 Mar 18, 2015
LICENSE Initial commit Oct 31, 2013
MANIFEST.in Adding tox.ini to MANIFEST.in. Feb 5, 2015
README.rst Added logo and favicon #4619 Jun 23, 2014
__init__.py Fixed for nereid static file changes Jul 17, 2015
cms.xml Use cms menuitems to create footer on website #7561 Apr 27, 2015
dev_requirements.txt Updating .travis.yml to run tests from tox. Feb 5, 2015
fabfile.py Use system supervisorctl (on demo shop) Jun 24, 2014
forms.py Replace validators.Required with DataRequired #7253 Mar 23, 2015
invoice.py User can download invoice from sales template #4621 Jul 16, 2014
party.py No default_country if remote_addr is not there Aug 4, 2015
product.py Provision to display product's image in menu item Jul 14, 2015
product.xml Fixed for nereid static file changes Jul 17, 2015
requirements.txt Fixed requirements by removing sale shop as a requirement Apr 14, 2015
sale.py Render the template in cart #7022 Feb 28, 2015
setup.cfg Made minor change to requirements.txt. #5976 Oct 28, 2014
setup.py Fix inventory messages when nereid_catalog_variants is present #7571 May 5, 2015
shipment.py Alert shipment status for downstream modules #5831 Sep 25, 2014
static_file.py fetch default image from webshop static Jul 17, 2015
tox.ini Adding tox tests. Feb 3, 2015
tree.py Get tree-node children as products #7975 Jul 2, 2015
tree.xml Get tree-node children as products #7975 Jul 2, 2015
tryton.cfg Released version 3.4.4.6 Aug 7, 2015
webshop.py Enabled cms menu item on product Jun 9, 2015
webshop.xml Added site message to nereid.website #6192 Nov 10, 2014

README.rst

nereid-webshop

https://travis-ci.org/openlabs/nereid-webshop.png?branch=develop https://coveralls.io/repos/openlabs/nereid-webshop/badge.png?branch=develop

Full Webshop based on Tryton Nereid

Installation

Setting this module up is similar to the setup of any other tryton module.

Step 1: Create a virtualenv

virtualenv webshop

You can now activate the virtualenv

cd webshop
source bin/activate

Step 2: Clone and Setup the module

git clone git@github.com:openlabs/nereid-webshop.git
cd nereid-webshop
python setup.py install

This command would install all the required dependencies for the module to function.

Step 3: Setup Database

The module should now be available on the modules list and can be installed into any database. Setup a website as shown below:

docs/source/_static/img//website.png

You will have to create a guest user for nereid. The guest user would be the user which would be available in the context when there are no users logged into the website.

Ensure that you have the following too:

  • A pricelist
  • A payment_term

Step 4: Create an application script

Create an application.py script which could lauch the application. A reference is provided in the web folder (application-example.py).

In most cases the only changes you may need are:

  • the DATABASE_NAME which should be the name of the database (from step 3).
  • the TRYTON_CONFIG which should be the location of the tryton config file.

You should now be able to run the development server by running the application using:

python application.py

On pointing the browser to localhost:5000 you should be able to see the home page.

docs/source/_static/img/homepage.png

Step 5: Production Deployment

TODO

Step 6: Customization

For base customization in webshop you have to inherit base.jinja as follow:

{% extends "webshop/base.jinja" %}

6.1: Favicon and logo

Set custom favicon by setting icon path in SHOP_FAVICON variable before extending webshop/base.jinja as follows:

{% set SHOP_FAVICON = "<path to custom favicon>" %}
{% extends "webshop/base.jinja" %}