Author Topic: How to create shipping free option in promotions.  (Read 1612 times)

ssharma

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
How to create shipping free option in promotions.
« on: February 05, 2008, 08:10:44 AM »
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 .

ryan

  • Administrator
  • Sr. Member
  • *****
  • Posts: 190
    • View Profile
    • KonaKart Website
Re: How to create shipping free option in promotions.
« Reply #1 on: February 05, 2008, 08:20:16 AM »
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