From 932b649b23d35a4d5a4afbb26e4b067cffdeac66 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Fri, 24 Feb 2012 11:12:12 +0000 Subject: [PATCH] // tax rules product and carriers shop association in webservices --- classes/Carrier.php | 8 +++++++- classes/Product.php | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/classes/Carrier.php b/classes/Carrier.php index b5e2dd193..f63adfbb6 100644 --- a/classes/Carrier.php +++ b/classes/Carrier.php @@ -151,9 +151,15 @@ class CarrierCore extends ObjectModel protected $webserviceParameters = array( 'fields' => array( - 'id_tax_rules_group' => array(), 'deleted' => array(), 'is_module' => array(), + 'id_tax_rules_group' => array( + 'getter' => 'getIdTaxRulesGroup', + 'setter' => 'setTaxRulesGroup', + 'xlink_resource' => array( + 'resourceName' => 'tax_rules_group' + ) + ), ), ); diff --git a/classes/Product.php b/classes/Product.php index 3f2c62168..a7b1d4f89 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -321,6 +321,13 @@ class ProductCore extends ObjectModel 'resourceName' => 'combinations' ) ), + 'id_tax_rules_group' => array( + 'getter' => 'getIdTaxRulesGroup', + 'setter' => 'setTaxRulesGroup', + 'xlink_resource' => array( + 'resourceName' => 'tax_rules_group' + ) + ), 'position_in_category' => array( 'getter' => 'getWsPositionInCategory', 'setter' => false