Building E-commerce Sites with Drupal Commerce Cookbook
Going further into customisation, you will learn to add custom product types before creating a stylish new Drupal theme for your store. Packed with tips, this book will also help guide you through common problems, as well as optimising and managing your store on a day to day basis. This book is primarily for store owners and web designers with little or no experience of Drupal and Drupal Commerce who want to build and customise a store in Drupal Commerce.
However, this book would also suit experienced Drupal and Ubercart users who want to migrate to or build a Drupal Commerce store. Richard Carter is a web designer and a frontend web developer with a passion for a range of open source e-commerce and content management systems, including Magento, MediaWiki, and Drupal. He blogs at earlgreyandbattenburg. Would you like to tell us about a lower price? If you are a seller for this product, would you like to suggest updates through seller support?
Overview Learn how to build attractive E-commerce sites with Drupal Commerce. Customise your Drupal Commerce store for maximum impact. Reviewed by the creators of Drupal Commerce: In Detail Get to grips with Drupal Commerce, the new ecommerce framework based on the Drupal CMS , one of the most popular and powerful open source content management systems available. What you will learn from this book Start selling on the web with Drupal Commerce. Improve your store's search engine friendliness. Customise the look and feel of your store.
Streamline the way you manage your store with hints and tips for everyday management. Calculate the correct tax on your orders. Manage customer profiles to make both your life and your customers' lives easier. Create custom product types to allow files uploads, colour and size variations, and more. Includes end-to-end T-shirt shop tutorial and blueprint. Approach "Building E-commerce Sites with Drupal Commerce Cookbook" is written in a helpful, practical style with numerous hands-on recipes to help you build attractive eCommerce sites.
Who this book is written for This book is primarily for store owners and web designers with little or no experience of Drupal and Drupal Commerce who want to build and customise a store in Drupal Commerce. Read more Read less. About the Author Richard Carter Richard Carter is a web designer and a frontend web developer with a passion for a range of open source e-commerce and content management systems, including Magento, MediaWiki, and Drupal.
Packt Publishing June 25, Language: Don't have a Kindle? Try the Kindle edition and experience these great reading features: Setting a maximum and minimum order amount in Drupal Commerce. Displaying progress steps for checkout in Drupal Commerce. Payment and Shipping Modules for Drupal Commerce. Drupal Commerce Search Engine Optimization. Verifying your Drupal Commerce website with Bing and Google.
Adding a meta description field to your Drupal Commerce product display. Integrating Google Authorship with your Drupal Commerce store. Enabling product reviews on your Drupal Commerce store. Enhancing customer experience at checkout in Drupal Commerce with Ajax. Selling Online with Drupal e-Commerce.
Drupal 8 Theming with Twig. View our Cookie Policy. We understand your time is important. Uniquely amongst the major publishers, we seek to develop and publish the broadest range of learning and information products on each technology. Every Packt product delivers a specific learning pathway, broadly defined by the Series type. This structured approach enables you to select the pathway which best suits your knowledge level, learning style and task objectives. As a new user, these step-by-step tutorial guides will give you all the practical skills necessary to become competent and efficient.
Friendly, informal tutorials that provide a practical introduction using examples, activities, and challenges. Fast paced, concentrated introductions showing the quickest way to put the tool to work in the real world. A collection of practical self-contained recipes that all users of the technology will find useful for building more powerful and reliable systems. Guides you through the most common types of project you'll encounter, giving you end-to-end guidance on how to build your specific solution quickly and reliably. In the menu in the left-hand column, you'll see a tab for Commerce Kickstart modules.
Click on this to view a list of available Commerce Kickstart modules. Scroll down the list of modules until you come to the Commerce Kickstart Social module, and enable it by checking the box: Click on the Save configuration button in the left-hand column to enable the module; it is located under the list of module groupings: If you haven't enabled one or more of the modules required by the Kickstart Commerce Social module, you'll be prompted to enable them on the next screen.
Enabling the module does two things: View the frontend of your website and look in the footer, and you will see them as follows: If you can't see these appear, you may need to assign them. By default, these link to Commerce Guys' profiles, so ensuring you are logged in as an administrator, hover over the block and then select the List links option from the drop-down menu: This will present you with a list of the links.
Select edit in the Operations column: You can now edit the URL of your social media profile with the Path field and the label for the link with the Menu link title field: Click on the Save button at the bottom of the screen once you are finished. In the previous chapter, you learned how to add a basic product to your Drupal Commerce store, and now you can begin to customize this product type to suit your needs, from file uploads to additional product images, and beyond. Adding multiple images to a product A feature of many e-commerce stores is to display more than one photograph of a product.
For example, you may want to display your products from different angles, or display your product on an isolated background and in use. Drupal Commerce Kickstart 2 allows you to add multiple images to your product pages through Drupal's administration panel. Getting started Log in as an administrator to your Drupal Commerce store. This assumes that you have enabled the Commerce Kickstart Menu's module. The Product tab displays the list of existing products within your Drupal Commerce store. Drupal Commerce Kickstart 2 allows you to add multiple images to your product pages through Drupal's administration panel: Select the Edit option from the drop-down next to the product you wish to add multiple images to: This takes you to the Edit Product display view.
Beneath the product display's Title and Body fields, you will see the list of Drupal Commerce products assigned to this product display; again, select the Edit option next to the product you want to add an image to: The previous step will expand the product's details for you. Here, you'll see a block called Product image, under which you will see the Add a new file form: For each image you add to the product, click on the Upload button next to the Add a new file field. Click on the Save product button at the bottom of the screen once you're finished adding multiple product images.
You can see the multiple images on the frontend of your store now. Simply navigate to a product page for the product that you've just edited. You can customize the settings for images in products by navigating to Store settings Product settings Variation types Product Manage fields Images. Then, click on the Edit button next to the product variation type that you want to edit. In particular, you can customize how many images per product are permitted with the Number of values field in the Images field settings block: Drupal Commerce products are defined by a number of fields, such as the product title, description, and product image s.
By making use of these predefined field types, you can customize Drupal Commerce products to your needs. Creating products with a file upload field As you have seen, customizing Drupal Commerce to allow additional fields for your products is relatively straightforward, once you know how.
A common feature of websites that sell customized items—from t-shirts to stationery and everything in between—is to allow customers to print their picture or logo on the product, and this recipe covers how to go about achieving this for your Drupal Commerce store. Once you are logged in to your Drupal Commerce store administration panel, follow these steps: Navigate to Products Variation types: From here, you'll be presented with a list of your product types.
Select the manage fields option in the Operations column to the right for the product type to which you wish to add the file upload field. Towards the end of the list in the Manage fields screen, you will see an option for adding a new field: Provide a name for your field in the Label text input, and then select the File type from the Type of data to store field.
This will automatically populate the Form element to edit the data field to File: Click on the Save button at the bottom of the screen to save your new file upload field. You will now see a Field settings screen: You are presented with two options here—Enable Display field and Files displayed by default—you can ignore both of these settings. Finally, to get the field to display on the product pages, you will need to return to the Edit tab. Scroll down to the Add to Cart form settings option and check the Include this field on Add to Cart forms for line items of this type checkbox: Click on the Save settings button once you're ready.
If you now view a product of the type—remember, this example used the product machine name product type—on the frontend of your Drupal Commerce store, you'll see that the field has been added to the product view pages: You can customize the size of files that customers can upload and the types of files that customers can upload under Store settings Line item types, by clicking on the manage field next to the relevant product type, and then clicking on the edit button next to the file upload field you just created.
Under the Product settings block, you will see the Allow file extensions field: Once you have saved this setting, customers will see the new file types that they're able to upload: You can alter the directory to which these files are saved with the File directory field when you edit your file upload field: Finally, Drupal Commerce gives you the flexibility to define the size of the file that customers are able to upload from this field.
Look for the Maximum upload size field under the File directory field, and enter your desired value: Follow the notes under the Maximum upload size field on the syntax to add file sizes in different units. Simply do the following: Click on the Save settings button towards the bottom of the screen to save these settings, and you will see the changes reflected on relevant product pages in your store: Your products now have the ability for customers to upload a file alongside them.
Creating products with a custom text field Certain types of products require a comments field to allow customers to specify a particular request alongside their order. For example, you might want customers to specify a gift message for their order, or guidance with the artwork that they're uploading to be printed on one of your products.
Building E-commerce Sites with Drupal Commerce Cookbook
By adding a text field to products in Drupal Commerce, you can allow your customers to add their own thoughts or comments to your order. Follow these steps to add a new comments field to your product uploads: Navigate to Store settings Line item types: Now select the product type to which you want to add the new text field. This example uses the Product Machine name: You may want to create a new product type to accommodate this type of product in your store alongside more basic products. Click on the manage fields option under the Operations column.
Now that you're in the Manage fields view, you will see an Add new field option towards the bottom of the screen. To create the new field, provide a sensible name for it in the Label field, and select Long text in the Type of data to store field. Click the Save button towards the bottom of the screen to save the new field to this product type. This will take you to the Field settings tab. You'll see a message saying Customer Comments has no field settings, so click on the Edit tab towards the top of your screen: Scrolling down, you will see the Add to Cart form settings block, which includes a checkbox to Include this field on Add to Cart forms for line items of this type.
Check this box, and click on the Save settings button. If you now return to the frontend of your Drupal Commerce store, you will see that the new field appears on products of the type that you assigned to the preceding field for example, the Product Machine name: You have now added a text field to allow customers to add custom comments to products that they're purchasing! Creating products with custom attributes In e-commerce websites, it's common to want to add custom attributes to products.
For example, if you're setting up Drupal Commerce to sell t-shirts, you may want to give customers a choice over the size of the t-shirts they buy. This flexibility in Drupal Commerce allows you to add product groups with custom fields, so customers can select their colors, sizes, and other options before ordering their product from you.
Capabilities
Getting started Log in to your Drupal Commerce website's administration panel, and navigate to Products Variation types. Once you're logged in, follow these steps to create a Drupal Commerce product variation with the attributes that you need: The neatest way to manage this new product type with size attributes is to create a new product variation in Drupal Commerce.
Click on the Add product variation type button: Enter a Name in the field for consistency it's best to start the name with the word "Product" so you know what basic type of content you are working with in the future , and click on Save and add fields.
- Computer Poems.
- Workouts Without Weights: The Hyper Concentration Method.
- Building E-commerce Sites with Drupal Commerce Cookbook by Richard Carter on Apple Books!
- #0888 BORDER PLACE MATS VINTAGE CROCHET PATTERN.
- .
- Diamonds and Gold (Cay Sal Series Book 2)?
You're now shown the manage fields tab. Using the Add new field form, add a new field with Type of data to store set to Image to allow you to add product images to this product variation type: Click on the Save button now, and navigate to Products Categories. Click on the Add categories button, and enter a suitable name and description, if you like: Click on the Save button, and then select the edit vocabulary link alongside the new T-shirt sizes taxonomy that you have created.
Navigate to the List tab at the top of the screen and click on the Add term button here to add as many attributes as you want for this product type: Once you've done this, navigate back to Store settings Variation types and click on the manage fields link that corresponds to the new product variation that you created in the previous steps. Under the Add new field block, enter a suitable label the example uses T-shirt size to differentiate it from other potential product size attributes in the future.
Select the Term reference value for the Type of the data to store field, and leave the value Drupal populates for the Form element to edit the data field as Select list: Click on the Save button once again to save this change, and you'll be shown the Field settings tab with the Vocabulary field. Select the T-shirt sizes taxonomy that you just created from this list, and click on the Save field settings button: On the Edit tab, check the Required field checkbox to ensure a t-shirt has to be associated with a size.
In the Attribute field settings block, check the Enable this field to function as an attribute field on Add to Cart forms field to ensure it's available to customers to select on the frontend of your Drupal Commerce store, and set Attribute selection widget to Select list: Click on the Save settings button.
Your next task is to create a product of this type to test whether your new attribute works, so navigate to Products Add a product, and create a product of the variation that you created in earlier steps Product - t-shirt was used in the example. Add a title to your new product, and then complete the Add new variation block beneath this; select the value from the T-shirt size drop-down that you created earlier.
You can alter the price, image, and SKU depending on the attribute you have set in the product variation now, so a small t-shirt might be a different price to a medium t-shirt: Click on the Save variation button to save this product, and add another product following the preceding steps: Click on the Save button at the bottom of the screen to save the products that you've just added, and you can then visit the frontend of your store to see the new product attribute in action.
If you change the Select size field to Small rather than Medium, you will see the image and price fields will change to reflect the differences you added between the products: Adding a product with custom attributes in Drupal Commerce requires you to follow the following steps: Creating product categories in Drupal Commerce A common feature of e-commerce websites is their ability to display products arranged by categories.
This can be replicated in Drupal Commerce by making use of the inbuilt taxonomy system of Drupal, which can be used to categorize all content on your website that is, not just your products. With Drupal Commerce Kickstart 2, categories are built in as a feature, as you would expect in any e-commerce platform, and can allow customers to find the products they are looking for more quickly. Getting started Log in to your Drupal Commerce administration panel. If you installed the Drupal Commerce Kickstart demo store, you'll already be able to see some sample categories in your store! To add a product category to your Drupal Commerce store, follow these steps: Navigate to Products Categories in your Drupal Commerce administration panel enable the Commerce Kickstart Menus grouped under Commerce Kickstart in Modules if you can't see this , and click on the Add terms link towards the right of Product category.
Give your new vocabulary a name in the example, it is called Commerce categories: If you can't see Product category under the Vocabulary name column, click on the Add categories button at the top of this screen and follow the steps on screen to create one. You can also provide a description for your new category to help make managing your store easier in the future. The URL path settings field allows you to define the path of your category if you used Commerce Kickstart, you'll probably have allowed Drupal to automatically generate a URL alias anyway ; enter a suitable value relevant to your category's name if you wish to override the default value.
You may prefer to use a flat URL structure for your categories for example, example. The Relations block allows you to select parent terms so you can assign a parent category and have sub categories in your store. For example, you may have a "t-shirts" category, and want "male t-shirts" and "female t-shirts" categories as sub categories of the "t-shirts" category. You can also assign a Weight value here to change the ordering of the categories: Click on Save, and you're given the chance to add more categories; add as many as you need.
Your categories are ready to go. To assign a product to a category, navigate to Products Manage products, and select Edit next to a product that you want to assign a category to: Towards the bottom of the screen, you'll see the Product catalog tab, which allows you to select from the Product category drop-down: Don't see this option when editing a product?
You'll need to add a new field for the category of type "term reference" taxonomy to your product as you did in the preceding steps. Click on Save and you're done! You can now browse your products by category in the frontend of your store. Drupal uses taxonomies—collections of phrases—to help categorize all content types across websites it powers. By using taxonomies to help you create categories for your Drupal Commerce store, you're making the most of it, and can easily create categories listing your products. For more information on taxonomy in Drupal 7, see http: You can also use the Views module to create more highly customized categories on your Drupal Commerce stores; see Chapter 7, Theming Drupal Commerce.
We will be covering the following topics: There are plenty of tasks you can do on a regular basis to keep your store up to date and manage it as part of your business. There are two ways to hide a product in your Drupal Commerce store: Disabling the product display, which is useful if you want to disable an entire group of products for example, purple t-shirts either temporarily or permanently from your store.
Disabling specific products attached to a product display, which is useful if a particular product variation for example, a large purple t-shirt is either out of stock or discontinued. Now that you've found this, you'll see a list of the products currently in your Drupal Commerce store: To disable a particular product rather than an entire product variation , click on the Quick Edit option in the Operations column: This displays the product variations as follows, and you can set specific products to Disabled in the drop-down menu: Click on the Save button for each product you want to disable.
That's it, the product or products you selected will not appear as an option to customers now. If you want to disable the whole product display including all the variations assigned to it , select the Edit option from the Operations drop-down menu: From here, scroll towards the bottom of the screen and find the Publishing options tab, just above the Save button: Uncheck the Published checkbox to disable the entire product display from view on the frontend of your Drupal Commerce store.
If you visit the frontend of your store when logged in as an administrator, you will be able to see the product display and the View and Edit tabs: If you view the product display when not logged in as an administrator, you will see an "access denied" error: You can restrict the access of unpublished content via the Permissions tab under People in Drupal's administration panel. Unpublishing content in Drupal removes it from public view, but allows you to add and edit content as an administrator. This can be particularly useful for preparing new product ranges on your Drupal Commerce store.
Displaying and managing orders in your Drupal Commerce store Running an e-commerce website on a day-to-day basis can require a lot of administration work to track orders, but Drupal Commerce makes it easy to view all of your store's orders. Getting started Log in to your Drupal Commerce website's administration panel.
Building E-commerce Sites with Drupal Commerce Cookbook : Richard Carter :
Now that you're logged in to your Drupal Commerce store's administration panel, perform the following steps: Navigate to Orders Manage orders: You'll now see all of the orders made in your Drupal Commerce store: The Operations column provides you with a number of options to see more details. Click on the Quick Edit option to see an overview of the order and its status: If you select Edit from the drop-down menu, you will see a more detailed overview of the customer's order, including the products they've ordered and more detailed shipping and billing addresses.
You're also able to change the Order status field, which keeps the customer up to date as to how their order is progressing: Towards the bottom of this screen, the Order status tab allows you to leave a message for other administrators on your store using the Update log message field: At the time of writing, the Order Status feature doesn't work, but it's in progress!
The Payment option from the drop-down menu also accessed at the top of the edit order screen from the Payment tab allows you to view the payment status for the order. This is particularly useful if you want to process orders over the phone for customers, assuming you have the correct payment methods set up. Simply select the payment method from the drop-down menu and click on the Add payment button to progress it: And, of course, the Delete option will remove this order from your Drupal Commerce store entirely.
Note that deleting transactions here cannot be undone, so be careful! Finally, the Bulk operations drop-down menu beneath the list of orders provides a way to change the order status or delete multiple orders at the same time: Exporting products from Drupal Commerce There may be times that you need to export your products from Drupal Commerce for use in another system that doesn't yet integrate with it, or simply to export products from your store to import and update them en masse. In this recipe, you'll see how to use Drupal Views to create an export of products within your Drupal Commerce store, which you can then use to either review your product data or import into another system.
Note that the requirements of Views Data Export, and the Views and Chaos tools modules, are already installed and enabled as part of your Drupal Commerce store. Once the module is installed, navigate to Site Settings Views, and follow these steps: Click on the Add new view button to create a view to display all of the products of the Drupal Commerce Product type: Set the Items to display field to a large number to ensure all of your products are displayed here, and uncheck the Use a pager box to turn pagination off. You can also set this value to 0 to show all the available results.
Click on this button, and you will see another drop-down menu. Select the Data export option: You may now see an error message: Display "Data export" uses a path but the path is undefined. This will produce a pop-up window that allows you to fill in your desired path for the location of the data export: Enter a relevant path for your data export. Click on the Apply button to save the new path.
Join Kobo & start eReading today
You can now select the format you wish to export your products in. You will see the Format field in the left-hand column of the screen; the default setting is CSV, but you can change this by clicking the CSV file link: You will now see a pop-up window that contains options for the exported data's format: Select your preferred format here, and click on the Apply button again.
You can further refine your output by clicking on the Settings pop-up. Finally, click on Save to ensure your changes are remembered by Drupal. You can now customize the fields that appear in the export; the product IDs will appear by default, which is not particularly useful to you! Click on the Add button to the right-hand side of the Fields block: This will display another pop-up window which gives you the opportunity to check the fields you want to appear in your product export.
Select your preferred fields for the example export, the Commerce Line item: Product ID, Commerce Product: Rendered Commerce Product, Content: Image fields were selected: Now select the Apply button, and click on Save to save the changes to the View pane once the pop-up has closed. If you visit the URL you set for the data export display of our view that is, http: You may want to alter your Drupal website's roles and permissions settings to prevent anonymous users accessing this information.
You can set the permissions and roles in Drupal that can access this view by clicking on the Access settings below the Path value. The module also allows for usage in Drush the Drupal Shell once installed, see the project's Drupal. Creating category menus in Drupal Commerce Having products on your store is all very well, but how do your customers find the products in your store? E-commerce websites typically make use of navigation menus to provide an easy way to access the primary categories that products fall in to.
While some customers may find your products easily enough on your Drupal Commerce store, adding navigation menus of your product categories provides another way for customers to find the type of products they are looking for. Getting ready Log in to your Drupal Commerce store as an administrator, and navigate to Products Categories. This recipe assumes you have the Commerce Kickstart Menus module enabled. Start adding your store's category navigation menu by following these steps: Select the Add categories option at the top of the screen that appears: Expand the Taxonomy menu block below this, and select the relevant place in one of your website's existing menus from the Menu location block the main menu is usually a good place to put these: Click on the Save button beneath this block to continue.
Now navigate to Store Settings Categories and select the list terms option next to your newly created category grouping known as vocabularies in Drupal. Click on the Add term button to get started, and add a name and description for the category: The Relations block below this allows you to set a category as a child of another category that is, to make it a sub-category. Click on the Save button, and add as many categories as you need to by repeating steps 5 - 9 above. You can assign products to a category by following the Creating product categories in Drupal Commerce recipe in Chapter 2, Configuring Products with Drupal Commerce.
If you now view the frontend of your Drupal Commerce store that customers are able to see, you will see the categories appear in the relevant menu you assigned them to earlier: Categories in Drupal Commerce are created using the Drupal taxonomy feature, and you are simply creating a vocabulary collection of terms to use as product categories within your Drupal Commerce store. Customer profiles are created at a few points across your Drupal Commerce store as follows: Getting started Log in to your Drupal store's administration panel, and navigate to Store Customer profiles.
Click on the Profile types tab at the top-right corner of your screen to see a list of existing customer profiles in your store: So, let's customize the customer profile: By default, the only customer profile types are billing information and shipping information, and the latter is where you can add a new field to collect customers' telephone numbers. Click on the manage fields option under the Operations column alongside the Shipping information profile type.
Complete the Add new field block, set the Type of data to store field to Text, and give the field a sensible name the example uses Customer telephone as the value for the Label field: Click on the Save button to add this field to the customer profile. The next screen you will see is the Field settings screen, which asks you to provide the maximum length of characters for your new field.
Set this to around 40 characters to accommodate reasonable spaces, and country and area dialing codes: Click on the Save field settings button to progress, and you are taken to the Edit screen for the field, where you can set whether Customer telephone is a Required field: You're also able to provide a description to help the user in the Help text field.
Click on the Save settings button on this screen, and then click on the Save button at the bottom of the Manage fields screen you are returned to. To test that your new field is appearing to customers who are checking out, add a product in your store to the shopping cart, and then checkout.
You'll see your new field appear in the Shipping information section of the checkout: As you can see, this is a powerful way to extend your customer profiles to collect the information you need from them. By adding modules as and when you require them, the core of Drupal Commerce can remain lightweight and flexible for everyone's needs, and yet still retain the flexibility for more comprehensive e-commerce needs. Allowing multiple shipments per delivery in Drupal Commerce Sometimes, it's useful to be able to customize your store to allow multiple deliveries per order.
This is useful if you don't have all of the items your customer has ordered in stock, but they want the items that you do have in stock similar to the way Amazon works with deliveries. Getting started Download the Commerce Delivery module from Drupal.
Now log in to your Drupal Commerce administration panel, and follow these steps: Navigate to Site Settings Modules. Click on the Install new module button. Click on the Install button available at the bottom of the screen. You'll now see a success screen, with an option to enable the newly added modules: Click on this link, locate your newly installed module, and activate it don't forget to click on Save configuration. Now that the module is enabled, you can configure products to use it. Navigate to Products Variation types and select the product variation type that you want to use by clicking on manage fields.
Click on the Save button to save the new Shippable field, and you are taken to the Field settings panel, where you can label the "on" and "off" values: In the preceding screenshot you can see that the On value field is set to Shippable and the Off value field is set to Not shippable, to help you identify what the field is for more readily than a "yes" or "no". Click on the Save field settings button at the bottom of the screen to save these settings, where Drupal Commerce allows you to customize the field further.
You can skip this section for the Shippable field as everything you will need is already set. You can now customize your delivery options by navigating to Store settings Delivery settings from the list. You may need to run update. Here you will see the Shippable item field dropdown, where you can tell Drupal Commerce's Delivery module which field defines whether or not the product is shippable. Select the relevant field from the dropdown if the wrong one has been selected. The module has a reasonable guess and selects it as default if you've named your field Shipable or Shippable.
The Delivery status options field allows you to specify delivery statuses that you want to use in your store. By default, there are five statuses defined: This delivery has been canceled perhaps because the customer canceled the order You can specify your own delivery statues by using the following format: ID label In the preceding format, ID is the ID of the option that you want a number unique to this list , and label is one or more words that describe your delivery status option.
You can also set the Delivery default status to define which value is the usual value for the delivery status: Once you have finished configuring the module's options, you can click on the Save configuration button. If you now go and view orders Orders Manage orders , you will see that Deliveries now appears as an option in the Operations column for orders: The Commerce Delivery module extends Drupal Commerce to provide you with a more comprehensive delivery system by working on top of Drupal Commerce's framework and using rules to trigger its use.
Typically, orders paid for by cheque are only dispatched once the cheque has cleared in the store's bank account, but some customers may find it useful that you accept cheques in addition to debit and credit cards despite the lengthened sales process.
Book Description
This recipe guides you through the installation process of the Commerce Cheque module, which allows your Drupal Commerce store to accept cheques as a payment method. You can follow the instructions for installing a module in the previous chapter. Once the Commerce Cheque module is installed, follow these steps to configure payment by cheque as a payment method on your Drupal Commerce store: Once you have installed the module, check whether your new payment method has been fully enabled.
Go to the frontend of your Drupal Commerce store, add a product to your basket, and then click on the Checkout button. At the Shopping Cart screen, proceed by using the Checkout button again: You will now see your store's checkout view: You'll now be presented with the Review order screen to confirm your order details, as well as payment options for your order, where you will see that the Cheque option is now enabled: You can now accept payment by cheque on your e-commerce store.
You can customize the label that appears for the customer in the preceding screen by going to Store settings Payment methods. The Commerce Cart Expiration module There may be needs in your store to have a shopping cart's contents expire after a given time to help you remove abandoned carts and luckily for you, there's a module for Drupal Commerce that can provide this functionality. By installing the Commerce Cart Expiration module, you can expand your Drupal Commerce store to have your customers' shopping carts expire after a set period of inactivity.
Once the Commerce Cart Expiration module is installed, follow these steps: Next, you need to configure your store's rules to allow this module to function. Navigate to Site settings Configuration, and under the Workflow heading, click on Rules: If you scroll to the bottom of the list of Active rules, you will now see a Delete expired carts option. Click on the edit option in the Operations column to edit this rule, and you're presented with a screen to edit the Delete expired carts reaction rule.
Edit the Remove all expired cart orders element under the Actions heading by clicking on the edit link in the Operations column: Here, you can change the period of time after which the carts' contents will expire in the Cart expiration interval field. Set the carts to expire after they haven't been checked out after 7 days: The next field is Number of shopping carts to process, which controls how many abandoned carts' are removed: Click on the Save button to retain your settings. It may be wise to set a number other than zero in the Number of shopping carts to process which will remove infinite carts , if your site is likely to have many unprocessed orders.
Shopping carts abandoned by customers within the time limit you set will now be removed when Drupal's cron runs.
- Falling For You!
- Oh, No…Not Again!.
- Building eCommerce sites with Drupal commerce cookbook - CERN Document Server;
- Star Trek - Rezeptionsverhalten bei einem Fernsehphänomen (German Edition).
You can trigger Drupal's cron yourself by navigating to Site settings Site reports Status report. Clicking on the run cron manually link will trigger the cron, and empty any carts abandoned in the last 7 days. For more information about Drupal 7 and cron, see http: Setting a maximum and minimum order amount in Drupal Commerce For certain types of e-commerce store, there may be a minimum or maximum order amount to make the store viable to run for the business.
As you can see, the module presents you with a number of options: Save your settings with the Save configuration button and you can see the module in action by returning to the customer-facing frontend of your Drupal Commerce store. Add items that total less than the amount you set in the Minimum Order Amount field in the previous step, and attempt to check out by clicking on the Checkout link.
You will now see an error message appear that informs the user of the minimum order amount: You have configured your Drupal Commerce store to accept a minimum or maximum order amount.