Remove SKU through WordPress hook
-
Hi Payrexx team,
May you add the filter for the basket entity?
I just need to remove SKU element from the email notification
If I set here the empty string it works:
https://plugins.trac.www.ads-software.com/browser/woo-payrexx-gateway/trunk/src/Util/BasketUtil.php#L38A hook is like this below can be helpful instead of line 33 https://plugins.trac.www.ads-software.com/browser/woo-payrexx-gateway/trunk/src/Util/BasketUtil.php#L33:
$basket[] = apply_filter( 'wc_payrexx_basket_product', array( 'name' => $item['data']->get_title(), 'description' => strip_tags($item['data']->get_short_description()), 'quantity' => $item['quantity'], 'amount' => round($amount * 100), 'sku' => $item['data']->get_sku(), ) );
Let me know if it’s possible,
Best Regards!
- The topic ‘Remove SKU through WordPress hook’ is closed to new replies.