Flate Rate - WorkFlow

Posts: 3
Joined: 12/24/2007

Hi,

Thanks a lot guys. I am launching my site with ubercart next week. I have completed most of the things and everything is working fine. I have found a bug today morning. I have defined a set of flatrate methods. One is them is a Free Delivery. I have configured in workflow-ng such that this only appears when the total order is $100 or above. Everything is working fine. This method only appears when the total order is above $100. But when I select this, it gives me the following error.

"Invalid option selected. Recalculate shipping quotes to continue."

Anyone encountered this problem before?

Thanks for the help.

Posts: 36
Joined: 02/10/2008

I too am seeing this issue in beta 5 with PHP v5.2.4. I have setup a flatrate workflow that provides free shipping on orders over $2000. I have UPS quotes working, and have set up the workflows in workflow-ng. On orders under $2000 the ups module does it thing and life is good. When an order is over $2000 the shipping is calculated correctly as $0.00. When I click the "Review Order" button I get the "Invalid option selected. Recalculate shipping quotes to continue" error and the customer is stuck with no other options.

--

www.PrintersCloset.com - Epson professional graphics printers and supplies for photographers, fine art galleries, sign printers and commercial printing companies.

Posts: 36
Joined: 02/10/2008

OK this seems to be a workflow-ng problem (could also be my thick head). When I remove the "Check the order total" condition from the workflow I get the free shipping option on all orders (as expected). I get both the UPS rates and the flat rate. When selecting either one I am able to complete the transaction.

Attached are the workflow config pages. Am I missing something???

AttachmentSize
Picture 4.png25.27 KB
Picture 3.png39 KB
Picture 2.png20.92 KB
--

www.PrintersCloset.com - Epson professional graphics printers and supplies for photographers, fine art galleries, sign printers and commercial printing companies.

Posts: 36
Joined: 02/10/2008

Hallelujah!!! I got this to work. My solution is a little bit hacky and I know there is a right way to do this, but I am not quite ready to jump into writing my own module.

I found that if instead of checking the order total in my workflow I check for products of a specific shipping type everything goes as planned. My next problem was that the only selectable product shipping type was "Small Package". I am pretty sure that I can create my own shipping type by using hook_shipping_type, but as I said I am not quite ready for that. My hacky solution was to install the In-store Pickup Shipping module which gave me a "Customer Pickup" shipping type. I added this default shipping type to the products that are eligible for free freight. I adjusted my Free Shipping flatrate shipping workflow to look for "Customer Pickup" products and apply the $0.00 shipping. Likewise I created a flatrate shipping type for lift gate and residential delivery. I also created a flatrate workflow for heavy orders. If an orders total weight is over 150 pounds I am charging a flat ground weight of $75.

This does not solve the problem that flatrate/workflow-ng will not work when evaluating an orders total sale price, but it gives me the functionality I need.

--

www.PrintersCloset.com - Epson professional graphics printers and supplies for photographers, fine art galleries, sign printers and commercial printing companies.