Planet Drupal

Commerce Module Tuesday: Commerce File (Screencast)

Commerce File is an outstanding and mature module that allows you to sell downloads. It uses Drupal 7's private file system and provides a field that can be added to a product for the downloadable item. If you're interested in Commerce File, you may also be interested in the Commerce Downloads distribution, which comes with Commerce File completely preconfigured for use.

Here's how you set up to sell downloads with Drupal Commerce:

Commerce Discount Campaign Feature (Screencast)

Discounts in Commerce have generally required configuration using rules, and have often required hand-applied configuration and wired-in discount amounts, which is probably out of reach for many site managers. In the Commerce Discount Campaign Feature I've put together a few rules with a content type so that discount amounts and dates can be done just by editing a node. This screencast tells how.

Using Calculation Rules to Add Per-Item Shipping in Commerce Shipping (screencast)

In this screencast I demonstrate how to do shipping charges per item in the cart. It shows using a loop in Rules and how to do something new and different with shipping.

We want to add $5.00 to the shipping charge for every item they have. So if the quantity is 5 for some line item, we'll add $25 to the shipping charge.

The technique is this:

Quick and Dirty Coupon with Custom Line Item and Rules (Screencast)

Tonight I needed a coupon on one product on a site that only sells one product. I didn't really want to deploy and configure Commerce Coupon, so I just did it with a quick combination of a line item field and a rule.

Here's what I did:

  1. Add a "coupon" field to the line item
  2. Create a product pricing rule that checks to see that when the right product is in the line item and the right value is in the coupon field, apply a discount. (The rule is attached to this article.)

That's it.

Using Custom Line Items To Provide a Donation Feature to Drupal Commerce

Lots of people have been asking about how to do donations in Drupal Commerce, and since I've been exploring custom line item types, it seemed like that would be a reasonable way to do it.

This screencast is based on the previous Introduction to Custom Line Item Types, so if you're not familiar with the basic concepts try that one.

Pages

Subscribe to Planet Drupal
X
In 2019 Commerce Guys rebranded to Centarro.

Change is at the center of eCommerce, but our team and mission remain the same.

Our consulting, development, and support offerings apply our expertise to help you adapt to change and grow.

Find us now at: https://www.centarro.io