We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When cart contains several versions of customizable product, then deletion of one version from the cart can deletes other versions as well
The cart should contain product with customization
The whole cart becomes empty.
The text was updated successfully, but these errors were encountered:
I was trying to see why happen this bug. I believe it has something to do with:
protected function processDeleteProductInCart() { if(isset($this->id_customization)){ $customizationProduct = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS( (new DbQuery()) ->select('*') ->from('customization') ->where('`id_cart` = '.(int) $this->context->cart->id) ->where('`id_product` = '.(int) $this->id_product) ->where('`id_customization` = '.(int) $this->customization_id) );
Because if there is one entry of that same product with customization but you want to delete the customization-less one it returns one row.
But couldn't fix it :(
Sorry, something went wrong.
30dd282
No branches or pull requests
When cart contains several versions of customizable product, then deletion of one version from the cart can deletes other versions as well
Reprosteps:
Expected result:
The cart should contain product with customization
Actual result
The whole cart becomes empty.
The text was updated successfully, but these errors were encountered: