Hi Ajeh
Just when i read your reply i solved the problem
This is what i've done using zen-cart 1.3.9d
Shipping modules installed
flat
flat2 (clone of flat)
freeoptions (total-100)
storepickup
Code implemented in , flat & flat2
/includes/modules/shipping/flat.php
/includes/modules/shipping/flat2.php
on line 49 (fresh install) i added this code;
// BOF if order qualify for freeoption, block this shipping option
$chk_freeoption_amount = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_FREEOPTIONS_TOTAL_MIN'");
$order_value=$chk_freeoption_amount->fields['configuration_value'];
if ((!$chk_freeoption_amount->RecordCount() == 0) AND ($order->info['total'] >= $order_value)){
$this->enabled = false;
} else {
$this->enabled = true;
}
// EOF if order qualify for freeoption, block this shipping option
This code checks if Freeoptions module is installed
if no -> do nothing special
if yes -> AND the amount set in the freeoptions module Total is equal or bigger then the current cart, block this shipping method from presenting itself.
THE RESULT
If the set Total in freeoptions is equal or bigger than the current basket total i only see the shipping options
Free Shipping
Store Pickup
The big advantage by coding this way is that is does'nt matter if you have the freeoptions module installed or not.
I hope that the explanation is clear so everyone can use this.
Thanks for thinking with me anyway
Eightnote