Cartflows_Checkout_Markup::calculate_discount( string $discount_coupon, string $discount_type, int $discount_value, int $_product_price )

Calculate discount for product.


Parameters

$discount_coupon

(string) (Required) discount coupon.

$discount_type

(string) (Required) discount type.

$discount_value

(int) (Required) discount value.

$_product_price

(int) (Required) product price.


Return

(int)


Source

File: modules/checkout/classes/class-cartflows-checkout-markup.php


			


Changelog

Changelog
Version Description
1.1.5 Introduced.