<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chirag Shah on Medium]]></title>
        <description><![CDATA[Stories by Chirag Shah on Medium]]></description>
        <link>https://medium.com/@chirag_s?source=rss-4a51180d7285------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0GDyD7C4o9inKzMucajMqg.jpeg</url>
            <title>Stories by Chirag Shah on Medium</title>
            <link>https://medium.com/@chirag_s?source=rss-4a51180d7285------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 00:20:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chirag_s/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Getting Started With Drupal Commerce 2.x - Part 2]]></title>
            <link>https://medium.com/valuebound/getting-started-with-drupal-commerce-2-x-part-2-70fb5070d1dd?source=rss-4a51180d7285------2</link>
            <guid isPermaLink="false">https://medium.com/p/70fb5070d1dd</guid>
            <category><![CDATA[drupal-8]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[drupal-commerce]]></category>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[e-commerce-website-design]]></category>
            <dc:creator><![CDATA[Chirag Shah]]></dc:creator>
            <pubDate>Thu, 25 May 2017 15:11:00 GMT</pubDate>
            <atom:updated>2026-04-23T10:09:22.997Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s9xmvRpgkO_4OZyKfdSiUQ.png" /></figure><p>In the previous article, <a href="http://valuebound.com/resources/blog/getting-started-drupal-commerce-2-x-part-1">Getting Started With Drupal Commerce 2.x (Part - I)</a> we have set up the Drupal commerce module 2.x and build the store. The next step to finish the basic commerce 2.x setup is to create Products.</p><p>Let’s have a detailed summary of e-commerce products creation in commerce 2.x.</p><h4>1. Products :</h4><p>Here we should note the main difference of Drupal Commerce 2.x (for Drupal 8) from Drupal Commerce 1.x (for Drupal 7). In Commerce 2.x, we now have such entities as Product and Product Variation. <strong>The product</strong> replaces <strong>product display</strong> of Commerce 1.x (node type, which has been linked to the products).</p><h4>1.1 Product Attributes:</h4><p>In Commerce 2.x product attributes is a drupal entity, So it is easy to edit, delete, create new attribute from.</p><p>To create commerce Products, first, we need to create Product attributes. On the Product Attributes page (admin/commerce/product-attributes) we add our attribute (eg, product size) and select a value that it can have.</p><p>For example, let’s add “size”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/0*fIRWs87d-xvM7eMv.png" /></figure><p><strong>1.2 Product variations:</strong></p><p>The Product variation types page (admin/commerce/config/product-variation-types) we choose the Default product variation (or create our own), and add this attribute to the variation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/0*fk2M1Fezw_XeXWnR.png" /></figure><p>A product variation can have several attributes. All the attributes of the product variations can be found in the list of fields (admin/commerce/config/product-variation-types/default/edit/fields). When creating a new type of product variations, you can use the already existing attributes.</p><p>In our example, the Default variation has one attribute — “size”. This is a field that can be changed just like other fields. By clicking the Edit button, we can go to the editing mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aXLqQScyUgrc3bJI.png" /></figure><p>So for Size As an example, let’s set a default value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/0*s0OQDURIJ1wphvuQ.png" /></figure><p>A product variation may have various fields of different types (text, numeric, etc.), as well as other entities</p><h4>1.3 Product Types</h4><p>The Product types page (admin/commerce/config/product-types) we choose the Default product type (or create our own), and here we can add fields which will be added with the product entity. In manage fields in default product type (admin/commerce/config/product-types/default/edit/fields) we see Variations and Store are inherited in product and Body is a field added to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AONtxMHW0WzG32sN.png" /></figure><p>Let’s add an image field too</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/0*4ELK70mQnF80gyMy.png" /></figure><p>These fields will be seen when we add products, which is the next step.</p><h4>1.4 Creating Product:</h4><p>Instead of nodes, we hare having Product entity itself. To create a product, let’s go to the admin/commerce/products page. We will have a product named “T-shirt” and the variations of this product in various sizes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/0*Otm3mjakgk5juuaJ.png" /></figure><p>This is how our first product looks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/0*827FPrfGMZLMuc5l.png" /></figure><p>We have now done basic settings for an online store. The Drupal Commerce 2.x module supports a variety of options for implementing the desired features like shipping (commerce shipping module), Promotions (commerce promotions module). Recently Commerce guys are working on making these functionality stable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70fb5070d1dd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/valuebound/getting-started-with-drupal-commerce-2-x-part-2-70fb5070d1dd">Getting Started With Drupal Commerce 2.x - Part 2</a> was originally published in <a href="https://medium.com/valuebound">Valuebound</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started With Drupal Commerce 2.x - Part 1]]></title>
            <link>https://medium.com/valuebound/getting-started-with-drupal-commerce-2-x-part-1-8ccf0f5340fc?source=rss-4a51180d7285------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ccf0f5340fc</guid>
            <category><![CDATA[drupal]]></category>
            <category><![CDATA[drupal-commerce]]></category>
            <category><![CDATA[drupal-8]]></category>
            <category><![CDATA[drupal-development]]></category>
            <category><![CDATA[ecommerce]]></category>
            <dc:creator><![CDATA[Chirag Shah]]></dc:creator>
            <pubDate>Tue, 23 May 2017 15:06:24 GMT</pubDate>
            <atom:updated>2026-04-23T10:08:33.833Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s9xmvRpgkO_4OZyKfdSiUQ.png" /><figcaption><a href="http://valuebound.com/resources/blog/getting-started-drupal-commerce-2-x-part-1">Getting Started With Drupal Commerce 2.x — Part 1</a></figcaption></figure><h4>Drupal Commerce 2.x overview</h4><p>E-commerce in Drupal 8 is a very interesting topic for many developers and this blog is the right place to start with<a href="http://valuebound.com/resources/blog/valuebound-launches-drupal-based-ecommerce-site-for-microchips-australia"> E-commerce</a> in drupal 8.</p><p>Drupal Commerce 2.x is the module for creating online stores of varying complexity. This blog provides an overview of the Commerce 2.x module for Drupal 8. In this blog, we will be focusing on following things</p><h4>Installing Drupal E-Commerce 2.x</h4><p>To install Drupal Commerce, make sure that your server has a Composer dependency manager installed. In Drupal 8, Commerce requires the installation of libraries, which are now installed not manually but with the help of Composer. Make sure Composer installed globally.</p><p>You can install Drupal, as well as Commerce together with the dependent modules and libraries with this command:</p><p><strong><em>“composer create-project drupalcommerce/project-base mystore - stability dev”</em></strong></p><p>Everything will be installed to “mystore” folder</p><h4>Installing Drupal Commerce 2.x on an existing site</h4><p>We need to do the following steps for Installing Commerce 2.x in existing Drupal 8.x site.</p><p><strong>Step 1: </strong>Add the Drupal packagist repository which allows Composer to find Commerce and the other Drupal modules. For that run the following command,</p><p><strong><em>“composer config repositories.drupal composer </em></strong><a href="https://packages.drupal.org/8"><strong><em>https://packages.drupal.org/8</em></strong></a><strong><em>&quot;</em></strong></p><p><strong>Step 2: </strong>The following command will he’””lp us to download the required libraries and modules (Address, Entity, State Machine, Inline Entity Form, Profile).</p><p><strong><em>“composer require “drupal/commerce 8.2.x-dev”</em></strong></p><p><strong>Step 3: </strong>Enable the all commerce related submodules like “commerce_product commerce_checkout, commerce_cart” , Use drush or drupal console.</p><p><strong><em>“drupal module:install commerce_product commerce_checkout commerce_cart”</em></strong></p><h4>Settings in the admin interface in new Commerce 2.x</h4><p>Go to the commerce settings (admin/commerce/config).</p><h4>1. Currency :</h4><p>It is very easy to use the currency inside and Outside the US.</p><p>First, you need to select your store currency (admin/commerce/config/currency). By default, the currency list is empty (you will see the message “there is no currency yet”). The list of currencies needs to be imported. Select the desired ones on the currency import page (admin/commerce/config/currency/import).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/0*ba4CcYR6mTJPskPS.png" /></figure><p>Now, at the Currency page, we see a list of currencies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/0*stMkQtFg3MTl8jN_.png" /></figure><h4>2. Store :</h4><p>In the version for Drupal 8, you can create a store or multiple stores , which may vary by products, currencies, tax settings, shipping countries and so on. In Commerce 1.x (Drupal 7) there was no such entity as “store”.</p><p>You can create your own type of stores (on the admin/commerce/config/store-types page) and add a variety of fields. On the admin/commerce/stores page, click Add new store.</p><p>At this step, we configure the store: give it a name, specify its email, country, currency, and other settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/0*e0XHuRLlIrEs8hf6.png" /></figure><p>Now, at the Store page, we see our new store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/0*MwVLp0QwwNkoSwYk.png" /></figure><p>In this way, in Drupal 8 we can now create multiple stores that have different settings (email, address, default currency, tax settings, etc.).</p><p>Each drupal store will have its own cart and checkout. In the second part of this article, next week we will create products.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ccf0f5340fc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/valuebound/getting-started-with-drupal-commerce-2-x-part-1-8ccf0f5340fc">Getting Started With Drupal Commerce 2.x - Part 1</a> was originally published in <a href="https://medium.com/valuebound">Valuebound</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>