Skip to content

abel-santos-corral/products

Repository files navigation

Module-name module

CONTENTS OF THIS FILE

INTRODUCTION

This module manages all the life cycle of a product and a shopping cart.

REQUIREMENTS

No special requirements.

RECOMMENDED MODULES

If the module has sub-modules, add them here.

INSTALLATION

composer install

  • Check that composer installs dependency of js-cookie/js-cookie

DEPENDENCIES

  • This module uses a third party library to manage js-cookies.js at:

js-cookie

Dependencies

  • See products.info.yml. Part of the structure has been packaged via features module.

CONFIGURATION

No configuration is needed.

USE CASES

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!

MENUS

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.

CSS AND JAVASCRIPT

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.

VIEWS

View Products

  • 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.

View Product

  • 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.

BLOCKS

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.

TESTING

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.

http://localhost:88/marketplace/products

  • Select several products.

  • Go to cart page (which is under development).

http://localhost:88/marketplace/products/cart

FURTHER READING

Add a list of readings and links that could be helpful.

Further reading

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published