| @@ -17,12 +17,8 @@ | ||
| 17 | 17 | * @subpackage App\Utility |
| 18 | 18 | * @author Ohidul Islam <wahid0003@gmail.com> |
| 19 | 19 | * @link https://webappick.com |
| 20 | 20 | * @property false|mixed|string $filter |
| 21 | - * @property string $discount_valid_from | |
| 22 | - * @property string $discount_valid_to | |
| 23 | - * @property int|string $id | |
| 24 | - * @property int|string $discount_max_user | |
| 25 | 21 | * @license https://opensource.org/licenses/gpl-license.php GNU Public License |
| 26 | 22 | * @category Utility |
| 27 | 23 | */ |
| 28 | 24 | class Config { |
| @@ -107,10 +103,8 @@ | ||
| 107 | 103 | 'discount_based_on' => '', |
| 108 | 104 | 'discount_label' => '', |
| 109 | 105 | 'discount_max_user' => '', |
| 110 | 106 | 'bogo_type' => '', |
| 111 | - 'count_quantity_as' => 'separate', | |
| 112 | - 'free_item_selection' => 'cart_order', | |
| 113 | 107 | 'discount_valid_from' => '', |
| 114 | 108 | 'discount_valid_to' => '', |
| 115 | 109 | 'discount_method' => 'automated', |
| 116 | 110 | 'discount_coupon' => '', |
| @@ -178,36 +172,8 @@ | ||
| 178 | 172 | * @return string |
| 179 | 173 | */ |
| 180 | 174 | public function get_bogo_type() { |
| 181 | 175 | return $this->config['bogo_type']; |
| 182 | - } | |
| 183 | - | |
| 184 | - /** | |
| 185 | - * Get Count Quantity As. | |
| 186 | - * How item quantities aggregate toward the tier min/max. | |
| 187 | - * | |
| 188 | - * @return string One of: separate, variations, filters. | |
| 189 | - */ | |
| 190 | - public function get_count_quantity_as(): string { | |
| 191 | - if ( empty( $this->config['count_quantity_as'] ) ) { | |
| 192 | - return 'separate'; | |
| 193 | - } | |
| 194 | - | |
| 195 | - return $this->config['count_quantity_as']; | |
| 196 | - } | |
| 197 | - | |
| 198 | - /** | |
| 199 | - * Get Free Item Selection (BOGO). | |
| 200 | - * Which qualifying item receives the free / discounted reward. | |
| 201 | - * | |
| 202 | - * @return string One of: cart_order, lowest, highest. | |
| 203 | - */ | |
| 204 | - public function get_free_item_selection(): string { | |
| 205 | - if ( empty( $this->config['free_item_selection'] ) ) { | |
| 206 | - return 'cart_order'; | |
| 207 | - } | |
| 208 | - | |
| 209 | - return $this->config['free_item_selection']; | |
| 210 | 176 | } |
| 211 | 177 | |
| 212 | 178 | /** |
| 213 | 179 | * Get Discount Rules |