There are following steps that how to install & enable the drupal commerce modules using composer in drupal 8.9.6
Download Modules and Dependencies
Step 1 :- composer require 'drupal/commerce:^2.21'
Step 2:- composer require 'drupal/rules:^3.0'
Step 3:- composer require 'drupal/ludwig:^1.0'
Step 4:- Address Packages URL: /admin/reports/packages
Install Modules and Dependencies
Step 1:- vendor/bin/drush en address rules ludwig
Step 2:- vendor/bin/drush en inline_entity_form entity_reference_revisions state_machine profile
Step 3:- vendor/bin/drush en commerce commerce_cart commerce_checkout commerce_log commerce_number_pattern commerce_order commerce_payment commerce_price commerce_product commerce_promotion commerce_store commerce_tax
Step 4:- Enable the trusted_host_patterns setting in the settings.php file
$settings['trusted_host_patterns'] = [
'^www\.example\.com$',
'^localhost$',
];
Step 5:- Now navigate to the drupal commerce administration section at: /admin/commerce
In his section, you can begin to use the tools for creating products, managing orders, setting up payment gateways, & accessing analytics.
Note: From the administration section, you can access and configure the settings for products, orders, stores, payment gateways, & currencies.
Step 6:- Create a store is a prerequisite in Drupal Commerce for creating Products & Orders.
Add the Name & Address for your store as it will appear on invoices & save. (store/add/online)
Comments
Post a Comment