<?php // Exit if accessed directly if (!defined('ABSPATH')) { exit; } // Load dependencies if (!class_exists('RP_WCDPD_Pricing_Method')) { require_once('rp-wcdpd-pricing-method.class.php'); } /** * Pricing Method Group: Discount Per Cart Item * * @class RP_WCDPD_Pricing_Method_Discount_Per_Cart_Item * @package WooCommerce Dynamic Pricing & Discounts * @author RightPress */ if (!class_exists('RP_WCDPD_Pricing_Method_Discount_Per_Cart_Item')) { abstract class RP_WCDPD_Pricing_Method_Discount_Per_Cart_Item extends RP_WCDPD_Pricing_Method { protected $group_key = 'discount_per_cart_item'; protected $group_position = 15; /** * Constructor class * * @access public * @return void */ public function __construct() { $this->hook_group(); } /** * Get group label * * @access public * @return string */ public function get_group_label() { return __('Discount Per Item', 'rp_wcdpd'); } } }