Product-Page: Change Discount String Appearing to Customers

In this example a developer modifies their discount message on Autoship products on their store's product page. The filters used are within the autoship_checkout_recurring_discount_string() function.

Example:

// Customize Checkout string to your liking
function xx_autoship_checkout_string_modifyer_checkout($string){
    return $string = 'this time...';
}

function xx_autoship_checkout_string_modifyer_concat($string){
    return $string = '&';
}

function xx_autoship_checkout_string_modifyer_recurring($string){
    return $string ='on Autoship orders, in the future';
}
add_filter('autoship_checkout_string', 'xx_autoship_checkout_string_modifyer_checkout', 10, 1);
add_filter('autoship_concat_string', 'xx_autoship_checkout_string_modifyer_concat', 10, 1);
add_filter('autoship_recurring_string', 'xx_autoship_checkout_string_modifyer_recurring', 10, 1);

Still need help? Contact Us Contact Us