MPAPI client is a PHP tool created to help Internet Mall, a. s. partners easily manage article catalog, deliveries, orders, etc. using Mall Marketplace API.
I'm not sure about the AbstractDelivery class setters. When I want to set min height to 0, min height key will not be created. I think that there should be if statment in setHeightMin method this way:
if ((double) $heightMin !== $this->getHeightMin() || !isset($this->data[self::KEY_HEIGHT][self::KEY_MIN]))
and also for setLengthMin should be:
if ((double) $lengthMin !== $this->getLengthMin() || !isset($this->data[self::KEY_LENGTH][self::KEY_MIN]))
This way it works for me, but I'm not sure about another dependencies.
Hello,
I'm not sure about the AbstractDelivery class setters. When I want to set min height to 0, min height key will not be created. I think that there should be if statment in setHeightMin method this way: if ((double) $heightMin !== $this->getHeightMin() || !isset($this->data[self::KEY_HEIGHT][self::KEY_MIN])) and also for setLengthMin should be: if ((double) $lengthMin !== $this->getLengthMin() || !isset($this->data[self::KEY_LENGTH][self::KEY_MIN]))
This way it works for me, but I'm not sure about another dependencies.
Best Regards, Jan Sevcik