Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

dabehr

Archived
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Real Name
    Mike Behr

dabehr's Achievements

  1. I modified function rfq() to look like: // class constructor function rfq() { global $order; $zones_array = array(); $this->code = 'rfq'; $this->title = MODULE_SHIPPING_RFQ_TEXT_TITLE; $this->description = MODULE_SHIPPING_RFQ_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_RFQ_SORT_ORDER; $this->icon = DIR_WS_ICONS . 'shipping_rfq.gif'; $this->enabled = ((MODULE_SHIPPING_RFQ_STATUS == 'True') ? true : false); //print_r($order->delivery); if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_RFQ_ZONE > 0) ) { $sql_q = tep_db_query("SELECT geo_zone_id FROM zones_to_geo_zones WHERE zone_id = '" . $order->delivery['zone_id'] ."' GROUP BY geo_zone_id "); while($sql_f = mysql_fetch_assoc($sql_q)) { $zones_array[] = $sql_f['geo_zone_id']; } $check_flag = false; if(!in_array(MODULE_SHIPPING_RFQ_ZONE,$zones_array)) { $check_flag = true; } if ($check_flag == false) { $this->enabled = false; } } }
×
×
  • Create New...