Skip to content
Advertisement

Tag: woocommerce

Display product thumbnail in existing product column in WooCommerce quick order preview window

I’m trying to display WooCommerce product thumbnail to WooCommerce Quick order window, I tried using ‘woocommerce_admin_order_preview_end’ and ‘woocommerce_admin_order_preview_get_order_details’ in the below code but nothing changed, Can anyone point me in the right direction? thanks! My Attempted codes Answer Via woocommerce_admin_order_preview_line_item_columns filter hook, we have the option to remove the existing product column and add a new column, for order preview.

How to append meta data to a third party coupon, dynamically?

I need to add a meta_data field to a coupon of a third party plugin, dynamically when it’s loaded. WooCommerce uses the filter woocommerce_get_shop_coupon_data so another plugin can react to it. In class-wc-cart.php the coupon is returned like this: $code is the coupon code as string. So in class-wc-coupon.php (WC_Coupon class) it will apply the filter woocommerce_get_shop_coupon_data and set the

Advertisement