Simple e-commerce solution with Drupal 8 and Shopify

Simple e-commerce solution with Drupal 8 and Shopify


João Ventura

May 11, 2017


  1. 1.
  2. 2.


    (@jcnventura) Wunder Germany 11.5.2017 Drupal Camp Nordics 2017 #DCNordics
  3. 3.

    We’re hiring! Want to work with us? #5 Great place

    to work 2017 (FI) Finland, Latvia, Estonia Germany, UK, Sweden
  4. 4.

    E-Commerce in Drupal Ubercart Leading e-commerce solution in Drupal 5

    and 6 Maintained in Drupal 7… And Drupal 8! Drupal Commerce Best solution in Drupal 7 and Drupal 8 Acquia + Magento partnership…
  5. 6.

    In the real world Top 5 Magento + Magento Ent.

    Oracle Commerce WooCommerce (Wordpress) Shopify Demandware (now Salesforce)
  6. 7.

    Our project Largest Health Club Group Worldwide Club information and

    Lead Generation (Drupal 8) In-house know-how of Fitness Trainer Training Provide Trainer Training outside of organisation Academy site based on similar technology as main site Simple and cost-effective
  7. 8.

    Shopify Advantages E-commerce SaaS solution. Manages the following: Users Payments

    (credit cards, Paypal, many others) Invoices Sales taxes Discount cupons But it does cost money ($29-$299 / mo + 0.5-2.9% / sale)
  8. 9.

    There’s a module for that™ Shopify API ( No integration,

    just the API. Shopify eCommerce ( Shop integration Sync products from Shopify to Drupal
  9. 10.
  10. 11.

    How the module works Synchronises products and collections Cron (periodical)

    Webhooks (push from Shopify) Drupal endpoint are entities Product and Product variant entities (fieldable) Collections are taxonomies
  11. 12.

    What we ended up doing Custom product content type Reason:

    cart checkout title != page title Custom block to display Shopify entity Allowed us to move product editorial UI from Shopify to Drupal Used custom view to display products instead of /store hook_form_alter() to hide quantity field
  12. 13.

    There’s a module for that™ Shopify Edition Extensive third-party App

    store ( Email Marketing, Upsells, Social Media, etc. ($$$) For this client we ended up using: Terms and Conditions Confirmation ($59) Meta fields (remember CCK?)
  13. 14.
  14. 15.

    Shopify caveats No multi-language support Language handling via customisation of

    client notifications. Shopify Plus is steeply priced (quote only, >1K$/mo) Checkout in same domain. No transaction fees
  15. 16.

    Setup 1. Create a free store ( 2. Install and

    enable Shopify API (drush -y en shopify_api) ‣ composer require donutdan4114/shopify:dev-master 3. Create API credentials in shopify. 4. Add them to Drupal (/admin/config/system/shopify_api) 5. Enable Shopify (drush -y en shopify) 6. Download and upload theme (/admin/config/system/ shopify/theme)
  16. 17.
  17. 18. Agnes-Pockels-Bogen 1, D1.019; 80992 München Wunder Germany d.o:

    jcnventura Phone: +49.89.85636307 João Ventura Any questions??
  18. 19.