SlideShare a Scribd company logo
1 of 40
Створення інтернет-магазину
на базі Drupal
eCommerce-розширення відомих відкритих CMS
WordPress + WooCommerce Joomla + VirtueMart Drupal + Drupal Commerce
Drupal6
Node
(fieldable)
Basic page
Article
Custom content typeComment
Taxonomy
User
Custom DB table
Drupal7
Entity (fieldable)
Node
Basic page
Article
Custom content typeComment
Taxonomy
User
Custom entity type
Custom DB table
Commerce
Cart
Checkout
Customer
Line item
Order
Payment
Product
Product
pricing
Product
reference
Tax
Структура Drupal Commerce
До Після
Головна сторінка керування магазином
Форма адміністрування товарів
Форма адміністрування замовлень
Сторінка функціональних блоків сайту
Сторінка кошику
Сторінка підтвердження замовлення
commerce_product
product_id
owner
SKU
Title
…
Price
Type: Price
…
node
nid (node id)
creator
created
title
…
Body
Type: Text
Product
Type: Product reference
…
Сторінка налаштувань параметрів полів матеріалу
Форма редагування товару
Форма редагування матеріалу
Сторінка налаштувань параметрів полів матеріалу
Стандартні віджети для полів типу Reference
Форма додавання матеріалу типу Product + віджет Inline Entity Form
Сторінка налаштувань відображення полів матеріалу
Сторінка матеріалу
commerce_product
Product line item
Entity type: commerce_line_item
Line item type: Product
line_item_id
order_id
line_item_label
uid (owner user id)
. . .
Product
Type: Product reference
Commerce Unit Price
Type: Price
Commerce Total
Type: Price
. . .
Order
Entity type: commerce_order
order_id
line_item_label
uid (owner user id)
. . .
Commerce Line Items
Type: Line item reference
Commerce Order Total
Type: Price
. . .
Shipping line item
Entity type: commerce_line_item
Line item type: Shipping
Coupon line item
Entity type: commerce_line_item
Line item type: Coupon
commerce_product
Product line item
Entity type: commerce_line_item
Line item type: Product
line_item_id
order_id
line_item_label
uid (owner user id)
. . .
Product
Type: Product reference
Commerce Unit Price
Type: Price
Commerce Total
Type: Price
. . .
Order
Entity type: commerce_order
order_id
line_item_label
uid (owner user id)
. . .
Commerce Line Items
Type: Line item reference
Commerce Order Total
Type: Price
. . .
Shipping line item
Entity type: commerce_line_item
Line item type: Shipping
Coupon line item
Entity type: commerce_line_item
Line item type: Coupon
commerce_product
Product line item
Entity type: commerce_line_item
Line item type: Product
line_item_id
order_id
line_item_label
uid (owner user id)
. . .
Product
Type: Product reference
Commerce Unit Price
Type: Price
Commerce Total
Type: Price
. . .
Order
Entity type: commerce_order
order_id
line_item_label
uid (owner user id)
. . .
Commerce Line Items
Type: Line item reference
Commerce Order Total
Type: Price
. . .
Shipping line item
Entity type: commerce_line_item
Line item type: Shipping
Coupon line item
Entity type: commerce_line_item
Line item type: Coupon
commerce_product
Product line item
Entity type: commerce_line_item
Line item type: Product
line_item_id
order_id
line_item_label
uid (owner user id)
. . .
Product
Type: Product reference
Commerce Unit Price
Type: Price
Commerce Total
Type: Price
. . .
Order
Entity type: commerce_order
order_id
line_item_label
uid (owner user id)
. . .
Commerce Line Items
Type: Line item reference
Commerce Order Total
Type: Price
. . .
Shipping line item
Entity type: commerce_line_item
Line item type: Shipping
Coupon line item
Entity type: commerce_line_item
Line item type: Coupon
commerce_product
Product line item
Entity type: commerce_line_item
Line item type: Product
line_item_id
order_id
line_item_label
uid (owner user id)
. . .
Product
Type: Product reference
Commerce Unit Price
Type: Price
Commerce Total
Type: Price
. . .
Order
Entity type: commerce_order
order_id
line_item_label
uid (owner user id)
. . .
Commerce Line Items
Type: Line item reference
Commerce Order Total
Type: Price
. . .
Shipping line item
Entity type: commerce_line_item
Line item type: Shipping
Coupon line item
Entity type: commerce_line_item
Line item type: Coupon
commerce_product
Product line item
Entity type: commerce_line_item
Line item type: Product
line_item_id
order_id
line_item_label
uid (owner user id)
. . .
Product
Type: Product reference
Commerce Unit Price
Type: Price
Commerce Total
Type: Price
. . .
Order
Entity type: commerce_order
order_id
line_item_label
uid (owner user id)
. . .
Commerce Line Items
Type: Line item reference
Commerce Order Total
Type: Price
. . .
Shipping line item
Entity type: commerce_line_item
Line item type: Shipping
Coupon line item
Entity type: commerce_line_item
Line item type: Coupon
commerce_product
Product line item
Entity type: commerce_line_item
Line item type: Product
line_item_id
order_id
line_item_label
uid (owner user id)
. . .
Product
Type: Product reference
Commerce Unit Price
Type: Price
Commerce Total
Type: Price
. . .
Order
Entity type: commerce_order
order_id
line_item_label
uid (owner user id)
. . .
Commerce Line Items
Type: Line item reference
Commerce Order Total
Type: Price
. . .
Shipping line item
Entity type: commerce_line_item
Line item type: Shipping
Coupon line item
Entity type: commerce_line_item
Line item type: Coupon
Сторінка редагування замовлення
Сторінка кошику
Сторінка налаштувань етапів підтвердження замовлення
Commerce Cart
• After adding a product to the cart
• After removing a product from the cart
• Before adding a product to the cart
Commerce Checkout
• Completing the checkout process
Commerce Customer profile
• After deleting a commerce customer profile
• After saving a new commerce customer profile
• After updating an existing commerce customer profile
• Before saving a commerce customer profile
• Commerce Customer profile is viewed
Commerce Line item
• After deleting a commerce line item
• After saving a new commerce line item
• After updating an existing commerce line item
• Before saving a commerce line item
• Commerce Line item is viewed
Commerce Order​
• After deleting a commerce order​
• After saving a new commerce order​
• After updating an existing commerce order​
• Before saving a commerce order​
• Commerce Order is viewed​
Commerce Payment​
• Select available payment methods for an order​
• When an order is first paid in full​
Commerce Payment transaction​
• After deleting a commerce payment transaction​
• After saving a new commerce payment transaction​
• After updating an existing commerce payment transaction​
• Before saving a commerce payment transaction​
• Commerce Payment transaction is viewed​
Commerce Product​
• After deleting a commerce product​
• After saving a new commerce product​
• After updating an existing commerce product​
• Before saving a commerce product​
• Calculating the sell price of a product​
• Commerce Product is viewed​
Стандартні події, які оброблюються модулем Rules
Налаштування правила для надсилання електронного листа по завершенню замовлення
Налаштування типів товарів
DrupalTour. Zhytomyr — Створення інтернет-магазину на базі Drupal (Sergiy Skripchuk, InternetDevels)
DrupalTour. Zhytomyr — Створення інтернет-магазину на базі Drupal (Sergiy Skripchuk, InternetDevels)

More Related Content

More from Drupaltour

DrupalTour.Chernivtsi — Як написати якісний модуль для Drupal 7 (Taras Tsuper...
DrupalTour.Chernivtsi — Як написати якісний модуль для Drupal 7 (Taras Tsuper...DrupalTour.Chernivtsi — Як написати якісний модуль для Drupal 7 (Taras Tsuper...
DrupalTour.Chernivtsi — Як написати якісний модуль для Drupal 7 (Taras Tsuper...Drupaltour
 
DrupalTour. Vinnytsia — Борьба с нагрузкой на MySQL (Andrey Leshchuk, LetyShops)
DrupalTour. Vinnytsia — Борьба с нагрузкой на MySQL (Andrey Leshchuk, LetyShops)DrupalTour. Vinnytsia — Борьба с нагрузкой на MySQL (Andrey Leshchuk, LetyShops)
DrupalTour. Vinnytsia — Борьба с нагрузкой на MySQL (Andrey Leshchuk, LetyShops)Drupaltour
 
DrupalTour. Khmelnytskyi — Why Drupal? (Andrij Sakhaniuk, InternetDevels)
DrupalTour. Khmelnytskyi — Why Drupal? (Andrij Sakhaniuk, InternetDevels)DrupalTour. Khmelnytskyi — Why Drupal? (Andrij Sakhaniuk, InternetDevels)
DrupalTour. Khmelnytskyi — Why Drupal? (Andrij Sakhaniuk, InternetDevels)Drupaltour
 
DrupalTour. Ternopil — What's going on when you visit an URL (Andrij Sakhaniu...
DrupalTour. Ternopil — What's going on when you visit an URL (Andrij Sakhaniu...DrupalTour. Ternopil — What's going on when you visit an URL (Andrij Sakhaniu...
DrupalTour. Ternopil — What's going on when you visit an URL (Andrij Sakhaniu...Drupaltour
 
DrupalTour. Chernivtsi — Think different або кUxня cучасного веб дизайну (Pa...
DrupalTour. Chernivtsi — Think different або кUxня cучасного веб дизайну (Pa...DrupalTour. Chernivtsi — Think different або кUxня cучасного веб дизайну (Pa...
DrupalTour. Chernivtsi — Think different або кUxня cучасного веб дизайну (Pa...Drupaltour
 
DrupalTour. Vinnytsia — SASS and Drupal themes (Olexander Kuzava, InternetDev...
DrupalTour. Vinnytsia — SASS and Drupal themes (Olexander Kuzava, InternetDev...DrupalTour. Vinnytsia — SASS and Drupal themes (Olexander Kuzava, InternetDev...
DrupalTour. Vinnytsia — SASS and Drupal themes (Olexander Kuzava, InternetDev...Drupaltour
 
DrupalTour. Khmelnytskyi — Про блог сайти (Olexander Kuzava, InternetDevels)
DrupalTour. Khmelnytskyi — Про блог сайти (Olexander Kuzava, InternetDevels)DrupalTour. Khmelnytskyi — Про блог сайти (Olexander Kuzava, InternetDevels)
DrupalTour. Khmelnytskyi — Про блог сайти (Olexander Kuzava, InternetDevels)Drupaltour
 
DrupalTour. Ternopil — Drupal shell or just Drush (Serhii Puchkovskii, Intern...
DrupalTour. Ternopil — Drupal shell or just Drush (Serhii Puchkovskii, Intern...DrupalTour. Ternopil — Drupal shell or just Drush (Serhii Puchkovskii, Intern...
DrupalTour. Ternopil — Drupal shell or just Drush (Serhii Puchkovskii, Intern...Drupaltour
 
DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)
DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)
DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)Drupaltour
 
DrupalTour. Chernivtsi — Як спростити життя Web-розробнику (Olexander Kuzava,...
DrupalTour. Chernivtsi — Як спростити життя Web-розробнику (Olexander Kuzava,...DrupalTour. Chernivtsi — Як спростити життя Web-розробнику (Olexander Kuzava,...
DrupalTour. Chernivtsi — Як спростити життя Web-розробнику (Olexander Kuzava,...Drupaltour
 
DrupalTour. Ivano-Frankivsk — Dark side of the Drupal (Artem Sylchuk, Interne...
DrupalTour. Ivano-Frankivsk — Dark side of the Drupal (Artem Sylchuk, Interne...DrupalTour. Ivano-Frankivsk — Dark side of the Drupal (Artem Sylchuk, Interne...
DrupalTour. Ivano-Frankivsk — Dark side of the Drupal (Artem Sylchuk, Interne...Drupaltour
 

More from Drupaltour (11)

DrupalTour.Chernivtsi — Як написати якісний модуль для Drupal 7 (Taras Tsuper...
DrupalTour.Chernivtsi — Як написати якісний модуль для Drupal 7 (Taras Tsuper...DrupalTour.Chernivtsi — Як написати якісний модуль для Drupal 7 (Taras Tsuper...
DrupalTour.Chernivtsi — Як написати якісний модуль для Drupal 7 (Taras Tsuper...
 
DrupalTour. Vinnytsia — Борьба с нагрузкой на MySQL (Andrey Leshchuk, LetyShops)
DrupalTour. Vinnytsia — Борьба с нагрузкой на MySQL (Andrey Leshchuk, LetyShops)DrupalTour. Vinnytsia — Борьба с нагрузкой на MySQL (Andrey Leshchuk, LetyShops)
DrupalTour. Vinnytsia — Борьба с нагрузкой на MySQL (Andrey Leshchuk, LetyShops)
 
DrupalTour. Khmelnytskyi — Why Drupal? (Andrij Sakhaniuk, InternetDevels)
DrupalTour. Khmelnytskyi — Why Drupal? (Andrij Sakhaniuk, InternetDevels)DrupalTour. Khmelnytskyi — Why Drupal? (Andrij Sakhaniuk, InternetDevels)
DrupalTour. Khmelnytskyi — Why Drupal? (Andrij Sakhaniuk, InternetDevels)
 
DrupalTour. Ternopil — What's going on when you visit an URL (Andrij Sakhaniu...
DrupalTour. Ternopil — What's going on when you visit an URL (Andrij Sakhaniu...DrupalTour. Ternopil — What's going on when you visit an URL (Andrij Sakhaniu...
DrupalTour. Ternopil — What's going on when you visit an URL (Andrij Sakhaniu...
 
DrupalTour. Chernivtsi — Think different або кUxня cучасного веб дизайну (Pa...
DrupalTour. Chernivtsi — Think different або кUxня cучасного веб дизайну (Pa...DrupalTour. Chernivtsi — Think different або кUxня cучасного веб дизайну (Pa...
DrupalTour. Chernivtsi — Think different або кUxня cучасного веб дизайну (Pa...
 
DrupalTour. Vinnytsia — SASS and Drupal themes (Olexander Kuzava, InternetDev...
DrupalTour. Vinnytsia — SASS and Drupal themes (Olexander Kuzava, InternetDev...DrupalTour. Vinnytsia — SASS and Drupal themes (Olexander Kuzava, InternetDev...
DrupalTour. Vinnytsia — SASS and Drupal themes (Olexander Kuzava, InternetDev...
 
DrupalTour. Khmelnytskyi — Про блог сайти (Olexander Kuzava, InternetDevels)
DrupalTour. Khmelnytskyi — Про блог сайти (Olexander Kuzava, InternetDevels)DrupalTour. Khmelnytskyi — Про блог сайти (Olexander Kuzava, InternetDevels)
DrupalTour. Khmelnytskyi — Про блог сайти (Olexander Kuzava, InternetDevels)
 
DrupalTour. Ternopil — Drupal shell or just Drush (Serhii Puchkovskii, Intern...
DrupalTour. Ternopil — Drupal shell or just Drush (Serhii Puchkovskii, Intern...DrupalTour. Ternopil — Drupal shell or just Drush (Serhii Puchkovskii, Intern...
DrupalTour. Ternopil — Drupal shell or just Drush (Serhii Puchkovskii, Intern...
 
DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)
DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)
DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)
 
DrupalTour. Chernivtsi — Як спростити життя Web-розробнику (Olexander Kuzava,...
DrupalTour. Chernivtsi — Як спростити життя Web-розробнику (Olexander Kuzava,...DrupalTour. Chernivtsi — Як спростити життя Web-розробнику (Olexander Kuzava,...
DrupalTour. Chernivtsi — Як спростити життя Web-розробнику (Olexander Kuzava,...
 
DrupalTour. Ivano-Frankivsk — Dark side of the Drupal (Artem Sylchuk, Interne...
DrupalTour. Ivano-Frankivsk — Dark side of the Drupal (Artem Sylchuk, Interne...DrupalTour. Ivano-Frankivsk — Dark side of the Drupal (Artem Sylchuk, Interne...
DrupalTour. Ivano-Frankivsk — Dark side of the Drupal (Artem Sylchuk, Interne...
 

DrupalTour. Zhytomyr — Створення інтернет-магазину на базі Drupal (Sergiy Skripchuk, InternetDevels)