Thanks it works. actually I edit the code like following to have a full custom text:
add_filter( 'ywpo_order_item_no_date_label_output', '__return_empty_string' );
if ( ! function_exists( 'ywpo_order_item_release_date_label_custom' ) ) {
add_filter( 'ywpo_order_item_release_date_label', 'ywpo_order_item_release_date_label_custom', 10, 3 );
function ywpo_order_item_release_date_label_custom( $label, $item, $order ) {
if ( empty( $item['ywpo_item_for_sale_date'] ) ) {
$label = '<div style="color: #9C27B0;" class="noreleasedatepreordermsg">Shipping within 2-3 weeks</div>';
}
else
$label = '<div style="color: #9C27B0;" class="withreleasedatepreordermsg">Shipping 1-2 weeks after its release date - </div>';
return __( $label, 'yith-pre-order-for-woocommerce' );
}
}
Is it possible to include the release date in this code too?
Thank you in advanced
-
This reply was modified 1 year, 3 months ago by fxp869.
-
This reply was modified 1 year, 3 months ago by fxp869.