Cart Quantity/Workflow-ng condition needed

Posts: 10
Joined: 03/30/2008

I'm setting up a site where I need to have free shipping upon a given condition, so I've been looking at doing this via Workflow-ng and Flatrate. Unfortunately the default conditions for Workflow-ng to invoke the Flatrate shipping quote won't work because the current conditions only look at an Order (after the transaction occurs) and not the Cart (before the order is processed).

I basically need the Workflow-ng condition called
Order: Product - "Check an order's number of products
to be ported into a
Cart:Product - "Check the cart's number of products".

I also need this as soon as possible, so please contact me to negotiate a cost

Posts: 744
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Posts: 10
Joined: 03/30/2008

I'm sorry, I don't see how this module helps me with invoking a Flatrate shipping quote of $0 OR skipping/disabling the shipping calculation all together. Unless some PHP custom code can be put together to disable the shipping quote calculation when it knows there is a quantity of 2...?

Posts: 1968
Joined: 08/07/2007
AdministratoreLiTe!

All of the workflow conditions that work on orders also work on products. They're really the same kind of thing (list of products and customer info) so a cart is just an unconfirmed order.

That'll be $5000. Eye-wink

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

Sorry, you're right, my response wasn't responsive to the question. I think I probably skimmed over your post and jumped to a conclusion. If you check on the # of items in the order, that should do it, like Lyle said. Did you try this?

--

<tr>.

Posts: 10
Joined: 03/30/2008

I did try that at first, but it threw an error in the shipping quote. When I don't put any conditions on the Check for Quote, then the "free shipping" flat rate that I setup shows up nicely in the list... too bad I can't give free shipping to everybody.

When it threw the error, yet calculated without the condition I came to the conclusion that the condition must not be getting the right data.

So, what you're saying here is that an order is an order is an order, wether it's on the other side of the checkout page or not?

Posts: 1968
Joined: 08/07/2007
AdministratoreLiTe!

As far as Workflow-ng can tell, anyway. There's nothing in the uc_orders table until you get to the review page. That means that shipping and taxes have to construct a fake order from the cart products and the values in the checkout address fields.

Posts: 10
Joined: 03/30/2008

Right, so in order for Workflow-ng to know how many products are in the cart before an order is prcessed, then it would have to do what the shipping quote calculator and taxes do.