Thursday, February 16, 2017

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.
Drupal Setup Shipping Step(2):Next, click on Shipping.
Drupal Setup Shipping Step(3):Click on Add a flat rate service as shown below.
Drupal Setup Shipping Step(4):Next, Shipping page will get displayed as shown below.
Drupal Setup Shipping 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.
Drupal Setup Shipping Step(6):Here, click on Add condition.
Drupal Setup Shipping Step(7):Choose Data comparison from dropdown and click on Continue.
Drupal Setup Shipping Step(8):For Data selector field, choose commerce-order:...(Order) from the dropdown as shown below.
Drupal Setup Shipping Step(9): Next, choose commerce-order:commerce-order-total:... (Order total) from the dropdown as shown below.
Drupal Setup Shipping Step(10): Next, choose commerce-order:commerce-order-total:amount (Amount) from the dropdown and click Continue as shown below.
Drupal Setup Shipping 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.
Drupal Setup Shipping 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.
Drupal Setup Shipping Step(13): Click on Save changes as shown below.
Drupal Setup Shipping 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.
Drupal Setup Shipping 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.
Drupal Setup Shipping Step(16): Next, add a product to the cart which is less than $100 and click Check out as shown below.
Drupal Setup Shipping Step(17): Next, fillup Shipping information, Billing information and click Continue to next step as shown below.
Drupal Setup Shipping Step(18): Now you can see the Paid Shipping option getting displayed in the below screen.
Drupal Setup Shipping Step(19): Next, you can add some more products, so that Order total exceeds $100 as shown below.
Drupal Setup Shipping Step(20): Now you can see that Free Shipping option getting displayed after it exceeds the $100.
Drupal Setup Shipping

No comments:

Post a Comment