Child pages
  • [In-Commerce] Notice, when adding product to discount [5.2.1]
Skip to end of metadata
Go to start of metadata

I'm getting following notice, when trying to add a product to a discount (same issue might be affecting coupons as well):

Undefined index: c in \modules\in-commerce\units\discount_items\discount_items_event_handler.php on line 57

This happens because assumption is made, that POST data always contains c and p keys, but it only will contain each of them, when at least one category/product will be selected.

Related Tasks