Changeset 3227167
- Timestamp:
- 01/23/2025 04:43:04 AM (14 months ago)
- Location:
- pushalert-web-push-notifications/trunk
- Files:
-
- 2 edited
-
pushalert.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pushalert-web-push-notifications/trunk/pushalert.php
r2975548 r3227167 6 6 * Author: PushAlert 7 7 * Author URI: https://pushalert.co 8 * Version: 2.8. 18 * Version: 2.8.2 9 9 */ 10 10 … … 46 46 add_action('woocommerce_cart_item_removed', 'pa_custom_updated_cart'); 47 47 add_action('woocommerce_after_cart_item_quantity_update', 'pa_custom_updated_cart'); 48 add_action('woocommerce_before_cart_item_quantity_zero', 'pa_custom_cart_quantity_zero');49 48 add_action('woocommerce_cart_is_empty', 'pa_custom_updated_cart'); 50 49 add_action('woocommerce_order_status_changed', 'pa_custom_order_completed', 10, 3); … … 936 935 } 937 936 } 938 }939 940 function pa_custom_cart_quantity_zero($cart_item_key){941 942 $total_items = WC()->cart->get_cart_contents_count();943 if($total_items-1>0){944 //pa_clear_abandoned_cart();945 pa_init_abandoned_cart($total_items-1);946 }947 //else case is handled by woocommerce_cart_is_empty948 937 } 949 938 -
pushalert-web-push-notifications/trunk/readme.txt
r3181003 r3227167 5 5 Requires at least: 2.7 6 6 Tested up to: 6.7 7 Stable tag: 2.8. 17 Stable tag: 2.8.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.