drupal 8 & commerce 2.x insights
TRANSCRIPT
Drupal Commerce An insight on Commerce 2.x
drupal.org/8
Intro
Nayan VeldeIntegration Specialist
drupal.org/8
Intro
Sumanth Reddy
@sumanthkumarcCo-maintainer of Views Tools
drupal.org/8
Commerce Jedi Knights
Master Yoda(Ryan) Master Obi-Wan (Bojan) Master Luke (Matt)
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.
drupal.org/8
drupal.org/8
• Commerce features• Commerce Addressbook• Commerce Discount• Commerce Checkout Progress• Commerce Search API• Commerce Message• Commerce Coupon• Commerce Checkout Redirect• Commerce Fancy Attributes• Commerce Extra• Commerce Customizable
Products• Commerce Email• Commerce Login Step
• Commerce Product Attributes• Commerce Custom Offline
Payments• Commerce (Product Display
Manager)• Commerce Currency Settings• Commerce coupon fixed amount• Commerce Invoice Receipt• Commerce VAT• Commerce Card on File• Commerce Cheque• Commerce Checkout Login• Commerce Custom Line Items
(Types)• Commerce Order Types
Commerce 2.x Overview (contd.)
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.
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.
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
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
drupal.org/8
Commerce 2.x installation
Existing Site:
//Adds drupal package list details to composer.jsoncomposer | config | repositories.drupal composer | https://packages.drupal.org/8
// Adds commerce as requirement to projectcomposer require "drupal/commerce 2.x-dev"
// Enables basic commerce modules using console.drupal | module:install | commerce_product commerce_checkout commerce_cart
drupal.org/8
Some Important Entities in 2.x
• Currency• Store• Product• Product variant• Order• Order Item• Checkout Flow• Checkout Pane• Adjustments and more .... :)
drupal.org/8
DEMO
drupal.org/8
D8 Payment gateways
http://docs.drupalcommerce.org/v2/payments/available-payment-gateways.html
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
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
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.
drupal.org/8
Any questions , Have you??
drupal.org/8