includes/abstracts/abstract-ywdpd-price-rule.php
Copied!
Copy
The action is triggered before get the price to discount
Paramsarray $cart_item the cart item.
string $cart_item_key the cart item key.
Copied!
Copy
The action is triggered after get the price to discount
Paramsarray $cart_item the cart item.
string $cart_item_key the cart item key.
includes/abstracts/abstract-ywdpd-rule.php
Copied!
Copy
The action is triggered after to read the rule from db
Params
int $id the rule id.
includes/class-yith-wc-dynamic-price-rules-manager.php
Copied!
Copy
Triggered before plugin apply the discounts
Copied!
Copy
Triggered after plugin apply the discounts
includes/class-ywdpd-frontend.php
Copied!
Copy
Triggered before replace the cart item price
Paramsstring $price_html the price html.
array $cart_item the cart item.
string $cart_item_key the cart item key.
Copied!
Copy
Triggered after replace the cart item price
Paramsstring $price_html the price html.
array $cart_item the cart item.
string $cart_item_key the cart item key.
Copied!
Copy
Triggered before replace the cart item subtotal
Paramsstring $subtotal the price html.
array $cart_item the cart item.
string $cart_item_key the cart item key.
Copied!
Copy
Triggered after replace the cart item subtotal
Paramsstring $subtotal the price html.
array $cart_item the cart item.
string $cart_item_key the cart item key.
init.php
Copied!
Copy
Triggered to install the plugin
templates/yith_ywdpd_popup.php
Copied!
Copy
Triggered to print the single item in popup
Paramsarray $items the items
string $rule_id The rule id.
string $type The rule type
array $item_to_show The item to show.