slow
Forum Replies Created
-
Forum: Plugins
In reply to: [Debug Bar Slow Actions] WooCommerce showing warning messagesHaving the same issue as @pirenko ^
wc_cart_fragments_params is deprecated since version 3.3.4! Use woocommerce_get_script_data instead.Thanks for the quick response Pavel, I’d happily switch to the addon you guys develop in the future when available.
For the time being, I can duplicate / sync these values, but it’d be great if you guys could check for either post meta field that’s set:
_wc_cog_cost/_purchase_price. But I understand if it’s not a priority.Cheers!
@wildandwoolly & @gilesytheking wouldn’t normally recommend a rubbish & hacky fix like this but invoices sometimes can’t wait! Hopefully @tychesoftwares will provide a hook to exlcude fields in the near future. For the time being you can try this.
Add these 2 lines inside the foreach loop on line 116 in woocommerce-delivery-notes/templates/print-order/print-content.php
foreach ($item['item_meta'] as $key => $value) { $excluded_fields = ['_wc_cog_item_cost', '_wc_cog_item_total_cost']; if (in_array($key, $excluded_fields)) continue; ...Hope it helps while we wait for a proper fix!