Uninstalling Category discounts messes up orders list in admin
-
I used category discounts for a while, but then realized that I need to either bulk edit products to have same discounts or just manually add them so that all necessary features (product filters, SEO etc) work properly as designed.
After I disable Category Discounts plugin, the order information is messed up with unwanted meta_keys that originate from the plugin. When I enable the plugin again even without any active rule, it’s fine again. How can get rid of this? I know WooCommerce saves this meta_key in the woocommerce_order_itemmetadata table but I wouldn’t just go and start deleting all the keys.
I cannot remove the final random “rule” as it just doesn’t allow me.
Plugin enabled:
https://prnt.sc/11r3o4d
Settings:
https://prnt.sc/11r3y0u
Plugin disabled:
https://prnt.sc/11r3q49
Browser console logs:<input type="hidden" name="order_item_tax_class[27677]" value="" /> <div class="view"> <table cellspacing="0" class="display_meta"> <tr> <th>_Wcd_applied_discount_rules:</th> <td><p>[]</p> </td> </tr> <tr> <th>_Wcd_applied_discount_amounts:</th> <td><p>{"23401":{"original_price":35,"discount_price":0},"22354":{"original_price":36,"discount_price":0},"6369":{"original_price":35,"discount_price":0}}</p> </td> </tr> </table>
The page I need help with: [log in to see the link]
- The topic ‘Uninstalling Category discounts messes up orders list in admin’ is closed to new replies.