On 9/4/2019 at 7:26 PM, kellmann said:How do I force Prestashop to delete the customized text when the customer removes the item from the cart?
Hi,
I think this behavior might not be configurable through the admin panel, so you may need to implement custom code to address this issue.
- You'll need to find the code responsible for removing items from the cart and determine where the customization data is being handled.
- Then you can modify it to also delete the customization data associated with the item being removed from the cart. This might involve deleting entries from the ps_customization and ps_customized_data tables
- After making the necessary changes, thoroughly test the functionality to ensure that customization data is properly cleared when an item is removed from the cart.
NOTE : Regarding the issue with customization data not being cleared when deleting the cart from the admin panel versus when the customer removes the item themselves, it could indicate a discrepancy in how the deletion process is handled in these different scenarios. You may need to investigate further to understand why this difference exists and whether it requires additional customization to address.
Thanks!