Plugin Directory

Changeset 3450296


Ignore:
Timestamp:
01/30/2026 09:45:57 AM (2 months ago)
Author:
arsyntax
Message:

removed debug log

Location:
discountpilot-dynamic-pricing
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • discountpilot-dynamic-pricing/trunk/admin/includes/class.coupon-discount.php

    r3450170 r3450296  
    1010       $this->discounts = Dspilot_Plugin::get_discounts('coupon_discounts');
    1111       
    12         //add_action( 'wp_head', array( $this, 'debug_in_admin_footer' ) );
    1312        add_action( 'woocommerce_cart_loaded_from_session', [ $this, 'apply_discounts' ] );
    1413        add_filter( 'woocommerce_get_shop_coupon_data', [ $this, 'register_virtual_coupons' ], 10, 2 );
    1514        add_filter( 'woocommerce_cart_totals_coupon_label', [ $this, 'custom_coupon_label' ], 10, 2 );
    1615        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    
    3016    }
    3117
  • discountpilot-dynamic-pricing/trunk/admin/includes/class.pricing-discount.php

    r3450170 r3450296  
    1010       $this->discounts = Dspilot_Plugin::get_discounts('pricing_discounts');
    1111       
    12         //add_action( 'wp_head', array( $this, 'debug_in_admin_footer' ) );
    13 
    1412        // constructor / init
    1513        if(!is_admin()){
     
    6058    }
    6159
    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     }
    7460
    7561    public function reset_applied_discounts_after_qty( $cart_item_key, $buy_qty, $old_quantity ) {
Note: See TracChangeset for help on using the changeset viewer.