KonaKart Community Forum

General Category => Feature Requests => Topic started by: ssharma on February 05, 2008, 01:10:44 pm

Title: How to create shipping free option in promotions.
Post by: ssharma on February 05, 2008, 01:10:44 pm
hi
  there is a requirement of this kind Purchase two items worth $50 or more each and receive free shipping
and in konakart there in only order value discount. Is it possible in konakart ? please relply if any option for this .
Title: Re: How to create shipping free option in promotions.
Post by: ryan on February 05, 2008, 01:20:16 pm
Hi,

If I've understood the question correctly, it is relatively easy to implement this type of logic in a custom shipping module. In the method getQuote() of the shipping module, the order is passed in as a parameter. What you need to do is to go through the OrderProducts (an order has an array of order products) and figure out whether there are two items worth $50 or more. If so, you return a value of zero for shipping.

Hope that helps.

Ryan