Skip to main content

Post categories

  • Drupal Tips & Tricks
  • Drupal HowTos
  • Drupal Tutorials
  • Drupal Modules
  • Drupal Themes
  • twitter
  • youtube
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • Modules
  • About
  • Contact

Breadcrumb

  1. Home
  2. Tutorials
  3. Calculating shipping by weight of items in cart

Calculating shipping by weight of items in cart

Tutorials
May 20, 2014
Profile picture for user drupal
By drupal
  • facebook-f
  • twitter
  • envelope
  • print
9

This (raw) screencast shows how to calculate shipping based on weight of items in the order.

We add a weight field to the product, and then create a "calculation rule" for shipping that walks the line items on the order, checks to see which items have a weight, and for each of those adds more to the price of the shipping line item.

I've posted the result of this as a little feature module, drupal.org/sandbox/rfay/1374058

It was inspired by the questions at drupalcommerce.org/node/1721

Modules

Read more articles

Newer
Drupal Commerce: How to collect additional information during the checkout process?
Older
Drupal Commerce Tutorials #9 - How To Set Up Shipping
  • Log in to post comments
Profile picture for user drupal
drupal
9
1
min read
A- A+
  • facebook-f
  • twitter
  • envelope
  • print

Contact Drupal 4U

Get in touch for questions and our Drupal development, design and SEO services.

Contact Us

We aim to reply the latest within 48h.

About Drupal 4U

We are a group of Drupal designers, developers and webmasters and we launched this website to share our experience and knowledge with you. Drupal is a free software package that allows you to easily organize, manage and publish your content, with an endless variety of customization. Drupal is open source software maintained and developed by a very large community of developers and users.

  • twitter
  • youtube

Drupal Services

  • Drupal Web Design
  • Drupal Development
  • Drupal SEO
  • Drupal Migration

Drupal Insights

  • Drupal Tips & Tricks
  • Drupal HowTos
  • Drupal Tutorials
  • Drupal Modules
  • Drupal Themes

Drupal Blog

  • Configuration
  • Content
  • Installation
  • Menus
  • Modules
  • Optimisation
  • Taxonomy
  • Themes
  • Troubleshooting
  • Views

Drupal 4U

  • Services
  • Blog
  • About

Drupal Links

  • Official Drupal Website
  • Drupal Answers
  • More Than Themes
  • Theme Forest
  • DXPR: Drupal for Marketers
2012 - 2023, Drupal 4U

Footer menu

  • Contact
Home
Drupal 4U
Drupal Development, Drupal Web Design, Drupal SEO
  • Home
  • Showcases
  • Services
  • Blog
  • Themes
  • Modules
  • About
  • Contact
Clear keys input element