How to change abstract-wc-order via functions.php
-
Hello,
I need to change the word ‘backordered’ to ‘reserved’ in the order confirmation screen and confirmation email.Here’s the code from abstract-wc-order.php that needs to be changed:
(Line 285):// Add line item meta for backorder status if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $values['quantity'] ) ) { wc_add_order_item_meta( $item_id, apply_filters( 'woocommerce_backordered_item_meta_name', __( 'Backordered', 'woocommerce' ), $cart_item_key, $order_id ), $values['quantity'] - max( 0, $_product->get_total_stock() ) ); }
I have a child theme with a functions.php file, what function statement will say:
$item_id, apply_filters( 'woocommerce_backordered_item_meta_name', __( 'Reserved', 'woocommerce' ), $cart_item_key, $order_id ), $values['quantity'] - max( 0, $_product->get_total_stock() ) );
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to change abstract-wc-order via functions.php’ is closed to new replies.