如何从订单页面到uc_shipping_zones.module页面获取城市价值以执行基于drupal城市的运输

时间:2015-07-10 09:32:22

标签: drupal shipping

我正在使用uc_global_quote模块进行发货,但在此模块中没有城市字段选项。我在运输区域添加了一个城市区域,并希望将城市区域与运输地址城市区域相匹配。我怎么能这样做?

****查询应该在(uc_shipping_zones_module)中****

  $row = db_query("SELECT * FROM {uc_shipping_zones} WHERE countries LIKE :cnid AND city LIKE :city AND (regions LIKE :rnid OR (regions IS NULL OR regions = ''))
                         ORDER BY name", array(':cnid' => $cnid, ':city' => $city, ':rnid' => $rnid))->fetchObject();

截图:

http://kloudzcomputing.com/requires/s.png

http://kloudzcomputing.com/requires/s1.png

0 个答案:

没有答案