Guest Posted June 3, 2003 Posted June 3, 2003 I am using MS2.2 with freeamount written 06/02/02. I can have free shipping based on the sales dollar value, but I would like to exclude free shipping if the ship destination is AK or HI. I really don't know what variables contain the appropriate info and how to use the values to exclude the desired states. I have searched the forums and have not had any luck, so I am posting anew. My current code is as follows: if (( $cart->show_total() < MODULE_SHIPPING_FREECOUNT_AMOUNT ) && MODULE_SHIPPING_FREECOUNT_DISPLAY == 'False') return; $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_FREECOUNT_TEXT_TITLE); if ( $cart->show_total() < MODULE_SHIPPING_FREECOUNT_AMOUNT ) $this->quotes['error'] = MODULE_SHIPPING_FREECOUNT_TEXT_WAY; else $this->quotes['methods'] = array(array('id' => $this->code, 'title' => MODULE_SHIPPING_FREECOUNT_TEXT_WAY, 'cost' => 0)); if (tep_not_null($this->icon)) $this->quotes['icon'] = tep_image($this->icon, $this->title) return $this->quotes; } I think I need to place a check at one of the two if statements, but I dont know the values that I actually have to check. I apologize that I am new to PHP and very green. Any help would be good.
Guest Posted June 4, 2003 Posted June 4, 2003 Thanks That might work, I'm playing with it now. I was trying to work within the confines of freeamount.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.