5. drupal.org/8
Commerce 2.x Overview
• Built from scratch for D8
• Includes the payment, pricing, shipping and promotions
systems.
• Current release version is beta5.
• Composer is required for commerce 2.x installation.
• Commerce core incorporates many functionalities which
were contrib in D7.
8. drupal.org/8
Commerce 2.x Overview (contd.)
The following Drupal contrib modules are used:
• Address - Provides functionality for storing, validating and displaying
international postal addresses.
• Entity - Extends Drupal 8’s entity API with additional features.
• State Machine - Provides code-driven workflow functionality.
• Inline Entity Form - Provides a widget for inline management of
referenced entities.
• Profile - Provides configurable user profiles, used for customer
profiles.
9. drupal.org/8
Commerce 2.x Overview (contd.)
The following PHP libraries are used:
• commerceguys/intl - An internationalization library powered by
CLDR data. Handles currencies, currency formatting, and more.
• commerceguys/addressing - An addressing library, powered by
Google’s dataset. Stores and manipulates postal addresses.
• commerceguys/zone - A zone library. Zones are territorial
groupings mostly used for shipping or tax purposes.
• commerceguys/tax - A tax library with a flexible data model,
predefined tax rates, powerful resolving logic.
10. drupal.org/8
Some key differences between 1.x and
2.x
• No special product displays
• No dependency on rules modules
• Hooks are replaced with Events
• Many contrib functionalities are incorporated
in core
11. drupal.org/8
Commerce 2.x installation
New Site:
• Creating a new drupal site with commerce profile
// Uses composer to create commerce project
composer | create-project | drupalcommerce/project-base | mystore | --stability dev
12. drupal.org/8
Commerce 2.x installation
Existing Site:
//Adds drupal package list details to composer.json
composer | config | repositories.drupal composer | https://packages.drupal.org/8
// Adds commerce as requirement to project
composer require "drupal/commerce 2.x-dev"
// Enables basic commerce modules using console.
drupal | module:install | commerce_product commerce_checkout commerce_cart
13. drupal.org/8
Some Important Entities in 2.x
• Currency
• Store
• Product
• Product variant
• Order
• Order Item
• Checkout Flow
• Checkout Pane
• Adjustments and more .... :)
16. drupal.org/8
• Commerce Core has example gateways for both on site
and off site.
• Commerce PayUMoney D8 module is developed with
support of Azri Solutions.
Built and Maintained by :
Abhishek (visabhishek)
Project url:
https://www.drupal.org/project/commerce_payumoney
PayUMoney
17. drupal.org/8
Roadmap of 2.x
• Commerce Kickstart 1.x and 2.x are for D7
• There is no plan for commerce Kickstart for D8
• Composer template will be built as Kickstart for D8.
• Commerce 8.x-2.0-beta6 will be released by mid March.
• Commerce 8.x-2.0-rc1 will be released approx. late April.
Release 2.0-RC1: https://www.drupal.org/node/2845500
18. drupal.org/8
Commerce 2.x Contributions
Docs can be contributed for Commerce at :
http://docs.drupalcommerce.org/v2/index.html, Go to page and click Edit on
GitHub.
For patches and issues:
Commerce project issue queue is used to maintain issues , discussions and
plans.
All the patches need to raised as Pull Request on GitHub by forking
https://github.com/drupalcommerce/commerce repo.