kopia lustrzana https://github.com/longclawshop/longclaw
Documentation updates
rodzic
17417a2867
commit
fbb72ce07c
|
@ -8,7 +8,7 @@ The basket (or 'shopping cart') is a collection of ``BasketItem`` objects, tied
|
||||||
Each ``BasketItem`` has a ``basket_id`` allowing items to be grouped together in a 'basket'.
|
Each ``BasketItem`` has a ``basket_id`` allowing items to be grouped together in a 'basket'.
|
||||||
|
|
||||||
Fetching the basket
|
Fetching the basket
|
||||||
===================
|
-------------------
|
||||||
|
|
||||||
The function ``longclaw.longclawbasket.utils.get_basket_items`` will return all ``BasketItem`` for the current
|
The function ``longclaw.longclawbasket.utils.get_basket_items`` will return all ``BasketItem`` for the current
|
||||||
session. This accepts a django ``request`` object and uses ``longclaw.longclawbasket.utils.basket_id`` to
|
session. This accepts a django ``request`` object and uses ``longclaw.longclawbasket.utils.basket_id`` to
|
||||||
|
@ -54,7 +54,7 @@ The API JSON response will contain all fields of the ``ProductVariant`` and ``Pr
|
||||||
|
|
||||||
|
|
||||||
Adding and Removing items
|
Adding and Removing items
|
||||||
==========================
|
-------------------------
|
||||||
|
|
||||||
Items can be added or removed via the RESTful api:
|
Items can be added or removed via the RESTful api:
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ Building the assets requires Node.js & npm. The first release of Longclaw will b
|
||||||
This will also compile the front end assets.
|
This will also compile the front end assets.
|
||||||
|
|
||||||
The Longclaw CLI can then be used to start a new Wagtail/Longclaw project. It behaves much the same as
|
The Longclaw CLI can then be used to start a new Wagtail/Longclaw project. It behaves much the same as
|
||||||
the Wagtail CLI::
|
the Wagtail CLI:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ Writing the templates
|
||||||
|
|
||||||
Since ``ProductIndex`` and ``Product`` are Wagtail pages, HTML templates should be created for each.
|
Since ``ProductIndex`` and ``Product`` are Wagtail pages, HTML templates should be created for each.
|
||||||
The developer should refer to the `Wagtail documentation <http://docs.wagtail.io/en/v1.8.1/topics/writing_templates.html>`_ for further details.
|
The developer should refer to the `Wagtail documentation <http://docs.wagtail.io/en/v1.8.1/topics/writing_templates.html>`_ for further details.
|
||||||
Basic example templates are provided in `your_project/templates/longclawproducts/` when creating a project
|
Basic example templates are provided in ``your_project/templates/longclawproducts/`` when creating a project
|
||||||
with the longclaw project template.
|
with the longclaw project template.
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue