Advertisement
Guest User

Untitled

a guest
Jul 10th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. Array (
  2. [0] => Array (
  3. [parent_geo_zone_id] => 3
  4. [name] => UK VAT Zone
  5. [shipping_pool_geo_zone_id] =>
  6. [email] =>
  7. )
  8. [1] => Array (
  9. [parent_geo_zone_id] => 4
  10. [name] => UK Shipping
  11. [shipping_pool_geo_zone_id] =>
  12. [email] =>
  13. )
  14. [2] => Array (
  15. [parent_geo_zone_id] => 5
  16. [name] => Texas
  17. [shipping_pool_geo_zone_id] => 5
  18. [email] => ammar.instantsoft@gmail.com
  19. )
  20. [3] => Array (
  21. [parent_geo_zone_id] => 6
  22. [name] => florida
  23. [shipping_pool_geo_zone_id] => 6
  24. [email] => ammar_ul_hasan@hotmail.com
  25. )
  26. [4] => Array (
  27. [parent_geo_zone_id] => 7
  28. [name] => alaska
  29. [shipping_pool_geo_zone_id] =>
  30. [email] =>
  31. )
  32. )
  33.  
  34. 'parent_geo_zone_id' and 'shipping_pool_geo_zone_id '
  35.  
  36. if($results->array['parent_geo_zone_id']==$results->array['shipping_pool_geo_zone_id '])
  37.  
  38. foreach ($results as $result) {
  39.  
  40. $this->data['geo_zones'][] = array(
  41. 'geo_zone_id' => $result['parent_geo_zone_id'],
  42. 'name' => $result['name'],
  43. 'email' => $result['email'],
  44.  
  45. 'selected' => isset($this->request->post['selected']) && in_array($result['geo_zone_id'], $this->request->post['selected'])
  46.  
  47. );
  48.  
  49. if($result['parent_geo_zone_id'] === $result['shipping_pool_geo_zone_id'])
  50. {
  51. // any stuff for true
  52. }
  53. else
  54. {
  55. // any stuff for false
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement