Free Shipping for User Role

Posts: 27
Joined: 09/22/2007

Hi,

Just wondering is there any way I can specify shipping quote rules per user role? I currently use flat rate shipping, but I have a group of users I'd like to be able to override this for. Any thoughts on how I could do this?

Thanks for your help.

James

Posts: 924
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

Same as http://www.ubercart.org/faq/2942 but check user role instead of order total.

--

<tr>.

Posts: 27
Joined: 09/22/2007

Thanks for the tip.

That sounds great, but I'm having a little difficulty making it work.

I've set up two flat rate shipping rules, one called "Flat rate per order" with a price of €5, and the other called "Free shipping within 10 miles" with a price of €0.

I then went to the Workflow-ng section and for free shipping I added a "User has role" condition and selected the role "Local customer". For the flat rate I also added "User has role" and checked the "Negate" box as well as picking "Local Customer".

However, regardless of what user I log in as, when I click "Calculate shipping" it always comes back "€5".

Is there something obvious I've missed, or is there some way I can debug this?

Thanks again.

Posts: 924
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

Sounds like you've done everything right. I've never used the role conditions in Workflow-ng so I can't swear they work, but I would guess they do unless there's a bug report to the contrary on drupal.org.

Try deleting the role conditions so you just have two flatrate methods quoted every time, and make sure that works first. Then try something else like the check order total instead of check user role, to make sure you can get that working (I *know* the check order total works as shown in the FAQ). That will at least narrow things down.

--

<tr>.