Add Discount Type in Woocommerce Coupon


My Client want to add “Diskon Ongkir” in Coupon type like image below

Question :

How to do that … ?


Go to your functions.php in themes folder and add this code:

function custom_discount_type( $discount_types ) {
 $discount_types['diskon_ongkir'] =__( 'Diskon Ongkir', 'woocommerce' );
    return $discount_types;
add_filter( 'woocommerce_coupon_discount_types', 'custom_discount_type',10, 1);

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *