Jump to content

Edit History

karcharoth2

karcharoth2

I have the same problem in 1.6.1.20 version. Have you sorted this out ?

UPDATE: After some research, it turned out, that it's actually very simple. All you need to do to solve it, is to paste this function into /classes/Delivery.php:

public function add($autodate = true, $null_values = true)
{
    if (!parent::add($autodate, $null_values)) {
        return false;
    }

    return true;
}

or even better is to do something like this (to limit this behaviour changes just to webservice):

protected $webserviceParameters = array(
    'objectMethods' => array(
        'add' => 'addWs',
    ),
    'objectsNodeName' => 'deliveries',
    'fields' => array(
        'id_carrier' => array('xlink_resource' => 'carriers'),
        'id_range_price' => array('xlink_resource' => 'price_ranges'),
        'id_range_weight' => array('xlink_resource' => 'weight_ranges'),
        'id_zone' => array('xlink_resource' => 'zones'),
    )
);


public function addWs($autodate = true, $null_values = true)
{
    if (!parent::add($autodate, $null_values)) {
        return false;
    }

    return true;
}

 

karcharoth2

karcharoth2

I have the same problem in 1.6.1.20 version. Have you sorted this out ?

UPDATE: After some reseach, it turned out, that it's actually very simple. All you need to do to solve it, is to paste this function into /classes/Delivery.php:

public function add($autodate = true, $null_values = true)
{
    if (!parent::add($autodate, $null_values)) {
        return false;
    }

    return true;
}

 

karcharoth2

karcharoth2

I have the same problem in 1.6.1.20 version. Have you sorted this out ?

UPDATE: After some reseach, it turned out, that it's actually very simple. All you need to do to solve it, is to paste this function into class/Delivery.php:

public function add($autodate = true, $null_values = true)
{
    if (!parent::add($autodate, $null_values)) {
        return false;
    }

    return true;
}

 

karcharoth2

karcharoth2

I have the same problem in 1.6.1.20 version. Have you sorted this out ?

×
×
  • Create New...