How about this one, it only changes two lines from the original 1.0.x file
```
protected function updateCustomizationQuantity($quantityChange, $idCustomization, $idProduct, $idProductAttribute, $idAddressDelivery, $operator = 'up')
{
// Link customization to product combination when it is first added to cart
if (empty($idCustomization) && $operator === 'up') {
$customization = $this->getProductCustomization($idProduct, null, true);
foreach ($customization as $field) {
if ((int) $field['quantity'] === 0) {
Db::getInstance()->update(
'customization',
[
'quantity' => (int) $quantityChange,
'idproduct' => (int) $idProduct,
'idproductattribute' => (int) $idProductAttribute,
'idaddressdelivery' => (int) $idAddressDelivery,
'incart' => true,
],
'id_customization = '.(int) $field['idcustomization']
);
}
}
}
/* Quantity update */
if (!empty($idCustomization)) {
$result = (int) Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue(
(new DbQuery())
->select('`quantity`')
->from('customization')
->where('`id_customization` = '.(int) $idCustomization)
);
if ($operator === 'down' && ((int) $result - (int) $quantityChange) < 1) {
return Db::getInstance()->delete('customization', '`id_customization` = '.(int) $idCustomization);
}
return Db::getInstance()->update(
'customization',
[
'quantity' => ['type' => 'sql', 'value' => '`quantity` '.($operator === 'up' ? '+' : '-').(int) $quantityChange],
'id_address_delivery' => (int) $idAddressDelivery,
'in_cart' => true,
],
'`id_customization` = '.(int) $idCustomization
);
}
// refresh cache of static::_products
$this->_products = $this->getProducts(true);
$this->update();
return true;
}
```