Hi Rod

The last time I installed this mod was OzPost 2.3.3 for 139h. Although this store never went live since it was never completed, the following edits were made in \includes\modules\shipping\ozpost.php


1. To enable working on localhost, Line 81 was changed from
Code:
    $this->SERVER = 'ozpost.net';
to
Code:
//  $this->SERVER = 'ozpost.net';
    $this->SERVER = 'localhost/myshop/' ;    // local testing

2. To disable mod when certain categories (art products requiring specialist shipping, not subject to default Flat Rate) are in cart, after Lines 91-92
Code:
// disable only when entire cart is free shipping
   if (zen_get_shipping_enabled($this->code))  $this->enabled = ((MODULE_SHIPPING_OZPOST_STATUS == 'True') ? true : false);
was inserted

Code:
// bof disable for certain categories in cart
    if (IS_ADMIN_FLAG == false) {
      if (($_SESSION['cart']->in_cart_check('master_categories_id','4') > 0) ||
          ($_SESSION['cart']->in_cart_check('master_categories_id','5') > 0) ||
          ($_SESSION['cart']->in_cart_check('master_categories_id','6') > 0))
		  {
          $this->enabled = false;
		  }
		}
// eof disable for certain categories in cart

Now I wish to apply similar functionality to \includes\modules\shipping\ozpost.php of OzPost 3.4.0 for 151 version of same store, and am seeking confirmation whether same code as above can be applied to around line 240. If so, but code needs to be changed, can you please provide appropriate code?

Thanks