drupal 8 & commerce 2.x insights

20
Drupal Commerce An insight on Commerce 2.x

Upload: nayan-velde

Post on 12-Apr-2017

85 views

Category:

Technology


6 download

TRANSCRIPT

Page 1: Drupal 8 & Commerce 2.x insights

Drupal Commerce An insight on Commerce 2.x

Page 2: Drupal 8 & Commerce 2.x insights

drupal.org/8

Intro

Nayan VeldeIntegration Specialist

Page 3: Drupal 8 & Commerce 2.x insights

drupal.org/8

Intro

Sumanth Reddy

@sumanthkumarcCo-maintainer of Views Tools

Page 4: Drupal 8 & Commerce 2.x insights

drupal.org/8

Commerce Jedi Knights

Master Yoda(Ryan) Master Obi-Wan (Bojan) Master Luke (Matt)

Page 5: Drupal 8 & Commerce 2.x insights

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.

Page 6: Drupal 8 & Commerce 2.x insights

drupal.org/8

Page 7: Drupal 8 & Commerce 2.x insights

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

Page 8: Drupal 8 & Commerce 2.x insights

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.

Page 9: Drupal 8 & Commerce 2.x insights

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.

Page 10: Drupal 8 & Commerce 2.x insights

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

Page 11: Drupal 8 & Commerce 2.x insights

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

Page 12: Drupal 8 & Commerce 2.x insights

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

Page 13: Drupal 8 & Commerce 2.x insights

drupal.org/8

Some Important Entities in 2.x

• Currency• Store• Product• Product variant• Order• Order Item• Checkout Flow• Checkout Pane• Adjustments and more .... :)

Page 14: Drupal 8 & Commerce 2.x insights

drupal.org/8

DEMO

Page 15: Drupal 8 & Commerce 2.x insights

drupal.org/8

D8 Payment gateways

http://docs.drupalcommerce.org/v2/payments/available-payment-gateways.html

Page 16: Drupal 8 & Commerce 2.x insights

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

Page 17: Drupal 8 & Commerce 2.x insights

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

Page 18: Drupal 8 & Commerce 2.x insights

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.

Page 19: Drupal 8 & Commerce 2.x insights

drupal.org/8

Any questions , Have you??

Page 20: Drupal 8 & Commerce 2.x insights

drupal.org/8