Changeset 3450296
- Timestamp:
- 01/30/2026 09:45:57 AM (2 months ago)
- Location:
- discountpilot-dynamic-pricing
- Files:
-
- 2 added
- 2 edited
-
tags/1.0.0/class.coupon-discount.php (added)
-
tags/1.0.0/class.pricing-discount.php (added)
-
trunk/admin/includes/class.coupon-discount.php (modified) (1 diff)
-
trunk/admin/includes/class.pricing-discount.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
discountpilot-dynamic-pricing/trunk/admin/includes/class.coupon-discount.php
r3450170 r3450296 10 10 $this->discounts = Dspilot_Plugin::get_discounts('coupon_discounts'); 11 11 12 //add_action( 'wp_head', array( $this, 'debug_in_admin_footer' ) );13 12 add_action( 'woocommerce_cart_loaded_from_session', [ $this, 'apply_discounts' ] ); 14 13 add_filter( 'woocommerce_get_shop_coupon_data', [ $this, 'register_virtual_coupons' ], 10, 2 ); 15 14 add_filter( 'woocommerce_cart_totals_coupon_label', [ $this, 'custom_coupon_label' ], 10, 2 ); 16 15 add_filter( 'woocommerce_coupon_get_discount_amount', [ $this, 'force_discount_amount' ], 10, 5 ); 17 }18 19 public function debug_in_admin_footer() {20 21 22 // $filtered_products = $this->get_discounted_products();23 24 // echo '<h2>Filtered Products</h2>';25 // echo '<pre>';26 // print_r($filtered_products);27 // echo '</pre>';28 29 30 16 } 31 17 -
discountpilot-dynamic-pricing/trunk/admin/includes/class.pricing-discount.php
r3450170 r3450296 10 10 $this->discounts = Dspilot_Plugin::get_discounts('pricing_discounts'); 11 11 12 //add_action( 'wp_head', array( $this, 'debug_in_admin_footer' ) );13 14 12 // constructor / init 15 13 if(!is_admin()){ … … 60 58 } 61 59 62 public function debug_in_admin_footer() {63 64 65 $filtered_products = $this->get_discounted_products();66 67 // echo '<h2>Filtered Products</h2>';68 // echo '<pre>';69 // // print_r($filtered_products);70 // echo '</pre>';71 72 73 }74 60 75 61 public function reset_applied_discounts_after_qty( $cart_item_key, $buy_qty, $old_quantity ) {
Note: See TracChangeset
for help on using the changeset viewer.