Drupal - Setup Shipping
In this chapter let us study about Setup Shipping in Drupal. In general Shipping refers to transport of goods from one location to another. In order to Setup Shipping you have to install Commerce Flat Rate and Commerce Shipping modules. In this chapter let us create Free Shipping for orders greater than $100 and Paid Shipping for orders less than $100.
Following are the simple steps to Setup Shipping.
Step(1): Go to Store and click on Configuration as shown below.
Step(2):Next, click on Shipping.
Step(3):Click on Add a flat rate service as shown below.
Step(4):Next, Shipping page will get displayed as shown below.
It contains below fields:
Title:Provide a title which will be the administrative title of this flat rate.
Display title: Enter title that will be displayed on front end on the flat rate shown to customers.
Description: Enter brief description about the flat rate.
Base rate: Provide a value for the flat rate.
Later, click on Save button.
Step(5): Next, you have to configure the component by clicking configure component as shown below.
Step(6):Here, click on Add condition.
Step(7):Choose Data comparison from dropdown and click on Continue.
Step(8):For Data selector field, choose commerce-order:...(Order) from the dropdown as shown below.
Step(9): Next, choose commerce-order:commerce-order-total:... (Order total) from the dropdown as shown below.
Step(10): Next, choose commerce-order:commerce-order-total:amount (Amount) from the dropdown and click Continue as shown below.
Step(11): Next, under OPERATOR section, you have to select is lower than value from the dropdown and click on Switch to the direct input mode as shown below.
Step(12): Next, under DATA VALUE section, provide the value(usually the value given here is in cents(i.e. $100 = 10000 cents)). Later, click on Save button.
Step(13): Click on Save changes as shown below.
Step(14): For Free Shipping you have to create another Flat rate service(as we did in Step(3 and 4)) and provide zero(0) for Base rate as shown below.
Step(15): Next, you have to configure the component for Free Shipping(follow the same steps from 5 to 10 for free shipping as well), choose is greater than and provide 10000(i.e. 10000 cents) value as shown below and click on Save button.
Step(16): Next, add a product to the cart which is less than $100 and click Check out as shown below.
Step(17): Next, fillup Shipping information, Billing information and click Continue to next step as shown below.
Step(18): Now you can see the Paid Shipping option getting displayed in the below screen.
Step(19): Next, you can add some more products, so that Order total exceeds $100 as shown below.
Step(20): Now you can see that Free Shipping option getting displayed after it exceeds the $100.