1
vote
Accepted
Remove the old cart items when customer login in the checkout page
You can use controller_action_postdispatch_customer_ajax_login event and set your observer accordingly.
{your_module_path}/etc/events.xml
<?xml version="1.0"?>
<config xmlns:xsi=&...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
magento2 × 47527magento-2.1 × 2479
magento2.3 × 2051
product × 1829
checkout × 1805
php × 1523
module × 1414
database × 1215
layout × 1205
admin × 1194
rest-api × 1179
javascript × 1175
magento2.2 × 1009
uicomponent × 971
category × 892
customer × 878
api × 836
event-observer × 821
cart × 777
magento2.4 × 756
orders × 753
theme × 730
product-attribute × 702
error × 697
attributes × 677