Menu icon
RedCrackle
Menu icon
Services
01Design Transformation
About UsCase StudiesBlogContact Us

<

Blog post

Configuring Free Shipping For Orders More Than $150

Neerav Mehta

Founder & CEO

This is tutorial #15 in the Drupal Commerce tutorial series. In the previous article, we offered a $6 discount on all orders worth more than $50.

In this article, we will go a step further and offer free shipping for orders worth more than $150. We will create a new flat rate and configure some rules to achieve this requirement.

This is how the final screen looks with the free shipping functionality enabled:

Configuring Free Shipping

Let’s get started. Click “Store”:

Configuring Free Shipping

Click “Configuration”:

Configuring Free Shipping

Click “Add a flat rate service”:

Configuring Free Shipping

In the new page, type in your new flat rate’s details. Note that I have provided the base rate as 0 since I intend to offer free shipping for orders greater than $150. Click “Save flat rate”.

Configuring Free Shipping

Let’s now add a condition that will ensure this flat rate is applied to only orders above $150:

Configuring Free Shipping

These are the fields you will have to enter values for:

  • Select the condition to add: Choose “Data comparison” from the dropdown.
Configuring Free Shipping
  • DATA TO COMPARE: In the “Data selector” dropdown, you will have to specify the data type that will have to be compared. Since we are trying to compare with the order total, “commerce-order:commerce-order-total:amount” has been iteratively selected and highlighted:
Configuring Free Shipping
  • OPERATOR: Choose the value “is greater than” from the dropdown.
Configuring Free Shipping
  • DATA VALUE: This is where you specify the figure you want to compare against. In my case, the figure is 150. You can’t provide a numerical value using the “Data selector” dropdown. You will have to click “Switch to the direct input mode”:
Configuring Free Shipping

You can now enter the numerical value:

Configuring Free Shipping

Click “Save” at the bottom of the page.

The flat rate and its condition have been saved.

Note that we configured 2 flat rates earlier – “Flat rate” (a $10 flat rate on all orders) and “Flat Rate For California” (a $15 flat rate on orders from California). We will have to create a new condition for both these flat rates so that they don’t apply for orders more than $150.

Let’s configure “Flat rate” first:

Configuring Free Shipping

Click “configure component”.

Click “Add condition”:

Configuring Free Shipping

Create a condition that’s exactly similar to the one we created above. Tick the box against “Negate” to ensure that the flat rate doesn’t apply to it:

Configuring Free Shipping

The condition has been saved:

Configuring Free Shipping

I am going to create a similar condition for “Flat Rate For California”. I have clicked “configure component” and provided the same values like I did in the earlier conditions:

Configuring Free Shipping

The condition has been saved:

Configuring Free Shipping

Let’s perform a checkout to test this free shipping functionality. I have filled my cart with an order worth more than $150:

Configuring Free Shipping

I am providing a California shipping address. Earlier, a shipping rate of $15 was imposed on all California-based orders. Since we specified a new condition above, the $15 will no longer be applicable for orders above $150.

Configuring Free Shipping

The shipping service has rightly invoked free shipping for the user:

Configuring Free Shipping

And observe how the free shipping functionality is reflected in the final screen:

Configuring Free Shipping

Next: Configuring Flat Shipping Rate Based On The Shopper's Shipping Address

Neerav Mehta

Neerav Mehta

Founder & CEO

Neerav Mehta is the Founder & CEO of Red Crackle. With sterling qualities, Neerav’s technological acumen is firing a generation of progressive companies on the digital path. With an undergraduate degree in Electrical Engineering from India's most prestigious institution IIT Bombay and having spent seven years developing and contributing to the launch of AMD's innovative line of computer products, Neerav founded Red Crackle where he is lauded for his dynamic and innovative genius.

View all posts

>

Read Next

10 Tips For Entrepreneurs In 2015

10 Tips For Entrepreneurs In 2015

Learn more

10 Ways To Increase Productivity At Work

10 Ways To Increase Productivity At Work

Learn more

30 best WordPress widgets for your site

30 best WordPress widgets for your site

Learn more

Let’s get you started!

Contact Us

>

RedCrackle

Explore

About Us

Services

Contact Us

Our address

5346 Gerine Blossom Dr,

San Jose, CA 95123

USA

Socials

Twitter
LinkedIn

© 2023 RedCrackle. All rights reserved.