- Introduction
- Requirements
- Recommended modules
- Installation
- Configuration
- Use cases
- Menus
- CSS and Javascript
- Views
- Blocks
- Testing
- Further reading
This module manages all the life cycle of a product and a shopping cart.
No special requirements.
If the module has sub-modules, add them here.
-
Install as you would normally install a coustom Drupal module. See: https://www.drupal.org/node/895232 for further information.
-
Go to products root folder and tape:
composer install
- Check that composer installs dependency of js-cookie/js-cookie
- This module uses a third party library to manage js-cookies.js at:
- See products.info.yml. Part of the structure has been packaged via features module.
No configuration is needed.
Explain in as many sections as needed the most relevant use cases for the module. Add unique id's to every use case to use it anywhere else.
Explain it using something similar to Gherkin language (as if for Behat test case). Further details of Gherkin here!
Add a basic list of menu entries created in the module for a better understanding. If linked to a given use case, add a marked related to the use case.
Add a basic list of css and javascript elements and its use for better understanding. If linked to a given use case, add a marked related to the use case.
-
System name: product_products
-
Display name: page_products
-
Purpose: Display to provide a page that will show agrid of products with a full pager.
-
Functionality: This view shows a grid of 3 columns and 3 rows. Each element displays the product's name, small image and a short description. Is provides a button that links to the detail product page.
-
System name: product_products
-
Display name: page_product_unitary
-
Purpose: Display to provide a page with a single product.
-
Functionality: This view shows a product with its details.
Add a basic list of views and its use for better understanding. If linked to a given use case, add a marked related to the use case.
In the early stage of development of the module, test should be performed manually.
After installation follow the instructions:
- Install devel vía composer:
composer require 'drupal/devel:^2.1'
- Generate 10 nodes of type product vía drupal console:
drupal create:nodes product --limit="10" --title-words="3" --time-range="1" --language="en"
- Go to products page.
-
Select several products.
-
Go to cart page (which is under development).
Add a list of readings and links that could be helpful.