get_code(); $amount = $coupon->get_amount(); $discount_type = $coupon->get_discount_type(); $discount_lbl = ''; if ($discount_type == 'fixed_cart') : $discount_lbl = sprintf(esc_html__('%s Discount', 'elessi-theme'), wc_price($amount)); endif; if ($discount_type == 'percent') : $discount_lbl = sprintf(esc_html__('%s Discount', 'elessi-theme'), $amount . '%'); endif; if ($discount_type == 'fixed_product') : $discount_lbl = sprintf(esc_html__('%s Product Discount', 'elessi-theme'), wc_price($amount)); endif; $date_expires = $coupon->get_date_expires(); $date_expires_lbl = !$date_expires ? esc_html__('Never expire', 'elessi-theme') : '' . esc_html__('Valid until ', 'elessi-theme') . '' . get_date_from_gmt(date('Y-m-d H:i:s', strtotime($date_expires)), apply_filters('nasa_coupon_date_expire_format', 'm/d/Y')); $desc = $coupon->get_description(); $min_amout = $coupon->get_minimum_amount(); $min_amout_lbl = $min_amout ? sprintf(esc_html__('The minimum spend for this coupon is %s', 'elessi-theme'), wc_price($min_amout)) : ''; $max_amout = $coupon->get_maximum_amount(); $max_amout_lbl = $max_amout ? sprintf(esc_html__('The maximum spend for this coupon is %s', 'elessi-theme'), wc_price($max_amout)) : ''; ?> ' . $desc . '' : ''; ?> ' . $min_amout_lbl . '' : ''; ?> ' . $max_amout_lbl . '' : ''; ?>