Zen Cart Logo
Forums / Setting Up Specials and SaleMaker / Calling a special on flat shipping?

Calling a special on flat shipping?

Locked

Views: 1,468

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
05 Oct 2007, 20:42
#1
fxchain avatar

fxchain

New Zenner

Join Date:
Oct 2006
Posts:
29
Plugin Contributions:
0

Calling a special on flat shipping?

Hello,

I was able to set free shipping for orders over $50. Now I need to disable free shipping for orders over $50 if all items purchased are on special.

To get free shipping for orders over $50, all I did was add this to /includes/modules/shipping/flat.php:

if ($order->info['subtotal'] < 50){
      $this->enabled = false;
}
```I am wondering if there is a way to to say:
*
"If order over $50 and if all purchased products are not on special then enable free shipping"
*
Anyone has an idea of code I could use?

Thanks for any help!

Francois
05 Oct 2007, 23:32
#2
fxchain avatar

fxchain

New Zenner

Join Date:
Oct 2006
Posts:
29
Plugin Contributions:
0

Re: Calling a special on flat shipping?

Is there a function that checks if a product is on special?
Something like:

isSpecial(products_id);

and would return true or false.

Any answer close to that would make my day!

Francois