Plugin Directory

Changeset 3081645


Ignore:
Timestamp:
05/06/2024 03:36:04 AM (2 years ago)
Author:
phongpn
Message:

Fix conflict issues with elementor plugin.
Update on/off function from Ecomdy platform

Location:
ecomdy-pixel/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ecomdy-pixel/trunk/README.txt

    r3038240 r3081645  
    11=== Ecomdy Pixel ===
    2 Contributors: ecomdy_media
     2Contributors: Ecomdy Media
    33Tags: tiktok, pixel, woocommerce, analytics, ecomdy
    44Requires at least: 5.7.0
    55Tested up to: 6.4
    6 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6565== Changelog ==
    6666
     67= 1.0.1 =
     68* Fix conflict issues with elementor plugin.
     69* Update on/off function from Ecomdy platform
     70
    6771= 1.0.0 =
    6872* Initial release.
     
    7074
    7175== Upgrade Notice ==
     76= 1.0.1 =
     77* Fix conflict issues with elementor plugin.
     78* Update on/off function from Ecomdy platform
    7279
    7380= 1.0.0 =
  • ecomdy-pixel/trunk/pixel-tiktok.php

    r3038250 r3081645  
    206206function ctecd_wp_kama_woocommerce_cart_needs_shipping_filter($needs_shipping)
    207207{
     208
    208209  if (!is_checkout() || did_action('wp_footer')) {
    209210    remove_filter('woocommerce_cart_needs_shipping', 'ctecd_wp_kama_woocommerce_cart_needs_shipping_filter');
    210211    return;
    211212  }
     213  // Removed Script on Every Ajax Request on Checkout Page By M Usman Rashid
     214  if(wp_doing_ajax() ){
     215    remove_filter('woocommerce_cart_needs_shipping', 'ctecd_wp_kama_woocommerce_cart_needs_shipping_filter');
     216    return;
     217  }
     218 
    212219  remove_filter('woocommerce_cart_needs_shipping', 'ctecd_wp_kama_woocommerce_cart_needs_shipping_filter');
    213 
     220   
     221   
    214222  $cart_contents = WC()->cart->get_cart();
    215223  $js_event_data = [];
Note: See TracChangeset for help on using the changeset viewer.