3
Answers
Vote up!
0
Vote down!

Simple Shipping Structure Issues

I am trying to get flat-rate to work with what seems to be a simple enough scenario, but I cannot seem to wrap my head around this nor get it to work.

On my site, I have books that get shipped at a lower rate if the customer orders only books (Media Mail). If a book is ordered with any other product, the normal shipping amount is applied which is based on order total.

I have the site recognizing both shipping methods when only a book is ordered, but I cannot seem to get only the correct one to display... right now both shipping options are displayed. I wasn't exactly sure how to accomplish this in rules.

Any thoughts?

Asked by: BD3
on July 24, 2012

3 Answers

Vote up!
1
Vote down!

Event: After updating an existing commerce order

Conditions:

  • Make sure the order status is in Checkout: Review
  • Check the cart to make sure it only contains product type of book

Actions:

  • Collect rates for a shipping method
  • Apply shipping rate to an order (this would, of course, be the media mail rate)
Answer by: MrPeanut
Posted: Jul 24, 2012
Vote up!
1
Vote down!

Alright, thanks to help from @MrPeanut, I got this working, with Product Types (not Taxonomy).

Using Shipping 2.x, and Commerce Extra Rules Conditions, I created the shipping structures below. The taxonomy terms for this module don't seem to be quite working at the moment and the project looks abandoned.

CART TOTAL UNDER $100

Conditions
Data Comparison

  • Data Selector: commerce-order:commerce-order-total:amount
  • Operator: is lower than
  • Data Value: 10001
  • Negate: unchecked

Total product of type quantity comparison

  • Data Selector: commerce_order
  • Value: Books (Product Type that gets charged Media Mail)
  • Exclude: checked
  • Operator: >=
  • Value: 1
  • Negate: unchecked

MEDIA MAIL

Conditions
Total product of type quantity comparison

  • Data Selector: commerce_order
  • Value: Books (Product Type that gets charged Media Mail)
  • Exclude: unchecked
  • Operator: >=
  • Value: 1
  • Negate: unchecked

Total product of type quantity comparison

  • Data Selector: commerce_order
  • Value: non-Book products
  • Exclude: unchecked
  • Operator: >=
  • Value: 1
  • Negate: checked
Answer by: BD3
Posted: Aug 2, 2012
Vote up!
0
Vote down!

Throwing a bounty on this. First person that can get me a working solution (without hacking and that is expandable when more products are added) by Thursday, July 26, 2012 9:00am EST. I will provide you with $100 via PayPal.

Answer by: BD3
Posted: Jul 24, 2012