Request for a filter
-
Hello,
Need to modify the email send by the plugin in a way that seems not possible by just tweaking the declarative templates. To achieve that, a new hook
wacv_cart_itemis envisaged insend-email-cron.phpat~line 318, i.e.function create_email_content(), just before the template substitution happens. Namely:$item['quantity'] = __( 'Quantity:', 'woo-abandoned-cart-recovery' ) . ' ' . $item['quantity']; // alx359: modify presentation of order items $item = apply_filters( 'wacv_cart_item', $item ); $search = array( '{wacv_image_product}', '{wacv_name_&_qty_product}', '{wacv_short_description}', '{product_amount}', '{product_name}', '{product_quantity}' ); $out .= str_replace( $search, $item, $match[1] );Similarly,
function render_email_content_for_order_reminder()has almost the same substitution logic, so it seems consistent to add that same hook at~line 690.The reason for the need of such hook follows from the zero-priced hosting products we use for presentation, which themselves contain other priced products as components. I need to filter out the price and qty of the former as manner to avoid unnecessary confusion and cluttering. I do that already in the cart and anywhere else in the shop, but now also need to do it in the reminder emails send by the plugin.
Thank you for your consideration.
The topic ‘Request for a filter’ is closed to new replies.