Changeset 3460410
- Timestamp:
- 02/12/2026 11:26:45 PM (7 days ago)
- Location:
- pw-woocommerce-affiliates
- Files:
-
- 3 edited
- 30 copied
-
tags/2.7 (copied) (copied from pw-woocommerce-affiliates/trunk)
-
tags/2.7/admin (copied) (copied from pw-woocommerce-affiliates/trunk/admin)
-
tags/2.7/admin/admin.php (copied) (copied from pw-woocommerce-affiliates/trunk/admin/admin.php)
-
tags/2.7/admin/assets/css/icon-style.css (copied) (copied from pw-woocommerce-affiliates/trunk/admin/assets/css/icon-style.css)
-
tags/2.7/admin/assets/js/pw-affiliates-admin.js (copied) (copied from pw-woocommerce-affiliates/trunk/admin/assets/js/pw-affiliates-admin.js)
-
tags/2.7/assets (copied) (copied from pw-woocommerce-affiliates/trunk/assets)
-
tags/2.7/changelog.txt (copied) (copied from pw-woocommerce-affiliates/trunk/changelog.txt) (1 diff)
-
tags/2.7/includes (copied) (copied from pw-woocommerce-affiliates/trunk/includes)
-
tags/2.7/includes/class-pw-affiliate.php (copied) (copied from pw-woocommerce-affiliates/trunk/includes/class-pw-affiliate.php)
-
tags/2.7/includes/pwwa-functions.php (copied) (copied from pw-woocommerce-affiliates/trunk/includes/pwwa-functions.php)
-
tags/2.7/languages (copied) (copied from pw-woocommerce-affiliates/trunk/languages)
-
tags/2.7/languages/pw-woocommerce-affiliates-de_DE.mo (copied) (copied from pw-woocommerce-affiliates/trunk/languages/pw-woocommerce-affiliates-de_DE.mo)
-
tags/2.7/languages/pw-woocommerce-affiliates-de_DE.po (copied) (copied from pw-woocommerce-affiliates/trunk/languages/pw-woocommerce-affiliates-de_DE.po)
-
tags/2.7/languages/pw-woocommerce-affiliates-es_ES.mo (copied) (copied from pw-woocommerce-affiliates/trunk/languages/pw-woocommerce-affiliates-es_ES.mo)
-
tags/2.7/languages/pw-woocommerce-affiliates-es_ES.po (copied) (copied from pw-woocommerce-affiliates/trunk/languages/pw-woocommerce-affiliates-es_ES.po)
-
tags/2.7/languages/pw-woocommerce-affiliates-fr_FR.mo (copied) (copied from pw-woocommerce-affiliates/trunk/languages/pw-woocommerce-affiliates-fr_FR.mo)
-
tags/2.7/languages/pw-woocommerce-affiliates-fr_FR.po (copied) (copied from pw-woocommerce-affiliates/trunk/languages/pw-woocommerce-affiliates-fr_FR.po)
-
tags/2.7/languages/pw-woocommerce-affiliates-it_IT.mo (copied) (copied from pw-woocommerce-affiliates/trunk/languages/pw-woocommerce-affiliates-it_IT.mo)
-
tags/2.7/languages/pw-woocommerce-affiliates-it_IT.po (copied) (copied from pw-woocommerce-affiliates/trunk/languages/pw-woocommerce-affiliates-it_IT.po)
-
tags/2.7/languages/pw-woocommerce-affiliates-nl_NL.mo (copied) (copied from pw-woocommerce-affiliates/trunk/languages/pw-woocommerce-affiliates-nl_NL.mo)
-
tags/2.7/languages/pw-woocommerce-affiliates-nl_NL.po (copied) (copied from pw-woocommerce-affiliates/trunk/languages/pw-woocommerce-affiliates-nl_NL.po)
-
tags/2.7/languages/pw-woocommerce-affiliates-ru_RU.mo (copied) (copied from pw-woocommerce-affiliates/trunk/languages/pw-woocommerce-affiliates-ru_RU.mo)
-
tags/2.7/languages/pw-woocommerce-affiliates-ru_RU.po (copied) (copied from pw-woocommerce-affiliates/trunk/languages/pw-woocommerce-affiliates-ru_RU.po)
-
tags/2.7/languages/pw-woocommerce-affiliates.pot (copied) (copied from pw-woocommerce-affiliates/trunk/languages/pw-woocommerce-affiliates.pot)
-
tags/2.7/license.txt (copied) (copied from pw-woocommerce-affiliates/trunk/license.txt)
-
tags/2.7/pw-affiliates.php (copied) (copied from pw-woocommerce-affiliates/trunk/pw-affiliates.php) (6 diffs)
-
tags/2.7/readme.txt (copied) (copied from pw-woocommerce-affiliates/trunk/readme.txt) (4 diffs)
-
tags/2.7/templates (copied) (copied from pw-woocommerce-affiliates/trunk/templates)
-
tags/2.7/templates/woocommerce/cart (copied) (copied from pw-woocommerce-affiliates/trunk/templates/woocommerce/cart)
-
tags/2.7/templates/woocommerce/checkout (copied) (copied from pw-woocommerce-affiliates/trunk/templates/woocommerce/checkout)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/pw-affiliates.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pw-woocommerce-affiliates/tags/2.7/changelog.txt
r3419594 r3460410 1 = 2.7 = 2 * Fixed an issue where affiliate commission might not apply when using Blocks based Cart and Checkout. Confirmed compatibility with WooCommerce 10.5 3 1 4 = 2.6 = 2 5 * Confirmed compatibility with WordPress 6.9 and WooCommerce 10.4. -
pw-woocommerce-affiliates/tags/2.7/pw-affiliates.php
r3419594 r3460410 4 4 * Plugin URI: https://www.pimwick.com/affiliates/ 5 5 * Description: Affiliate tracking for your WooCommerce store. 6 * Version: 2. 66 * Version: 2.7 7 7 * Author: Pimwick, LLC 8 8 * Author URI: https://www.pimwick.com … … 10 10 * Domain Path: /languages 11 11 * WC requires at least: 4.0 12 * WC tested up to: 10. 412 * WC tested up to: 10.5 13 13 * Requires Plugins: woocommerce 14 14 */ … … 31 31 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 32 32 */ 33 define( 'PWWA_VERSION', '2. 6' );33 define( 'PWWA_VERSION', '2.7' ); 34 34 35 35 defined( 'ABSPATH' ) or exit; … … 116 116 add_filter( 'woocommerce_order_data_store_cpt_get_orders_query', array( $this, 'woocommerce_order_data_store_cpt_get_orders_query' ), 10, 2 ); 117 117 add_action( 'woocommerce_checkout_update_order_meta', array( $this, 'woocommerce_checkout_update_order_meta' ), 10, 2 ); 118 add_action( 'woocommerce_store_api_checkout_update_order_meta', array( $this, 'woocommerce_store_api_checkout_update_order_meta' ) ); 118 119 add_action( 'woocommerce_cart_totals_before_order_total', array( $this, 'woocommerce_cart_totals_before_order_total' ) ); 119 120 add_action( 'woocommerce_review_order_before_order_total', array( $this, 'woocommerce_review_order_before_order_total' ) ); … … 235 236 236 237 function woocommerce_checkout_update_order_meta( $order_id, $data ) { 238 $order = wc_get_order( $order_id ); 239 if ( $order ) { 240 $this->process_affiliate_commission( $order ); 241 } 242 } 243 244 function woocommerce_store_api_checkout_update_order_meta( $order ) { 245 $this->process_affiliate_commission( $order ); 246 } 247 248 function process_affiliate_commission( $order ) { 249 if ( $order->meta_exists( '_pw_affiliate_code' ) ) { 250 return; 251 } 252 237 253 $code = $this->get_affiliate_code_from_session(); 238 254 if ( empty( $code ) ) { … … 242 258 $affiliate = pwwa_get_active_affiliate( $code ); 243 259 if ( $affiliate ) { 244 $order = new WC_Order( $order_id );245 246 260 $pre_tax = boolval( get_option( 'pw_affiliates_commission_before_tax', '1' ) ); 247 261 $total_commission = 0; -
pw-woocommerce-affiliates/tags/2.7/readme.txt
r3419594 r3460410 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 2. 68 Stable tag: 2.7 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 63 63 == Changelog == 64 64 65 = 2.7 = 66 * Fixed an issue where affiliate commission might not apply when using Blocks based Cart and Checkout. Confirmed compatibility with WooCommerce 10.5 67 65 68 = 2.6 = 66 69 * Confirmed compatibility with WordPress 6.9 and WooCommerce 10.4. … … 90 93 * Compatibility with WordPress 6.5 and WooCommerce 8.7 91 94 92 = 1.42 =93 * Confirmed compatibility with WordPress 6.494 95 95 = Previous versions = 96 96 * See changelog.txt … … 98 98 == Upgrade Notice == 99 99 100 = 2. 6=101 * Confirmed compatibility with WordPress 6.9 and WooCommerce 10.4.100 = 2.7 = 101 * Fixed an issue where affiliate commission might not apply when using Blocks based Cart and Checkout. Confirmed compatibility with WooCommerce 10.5 102 102 103 103 -
pw-woocommerce-affiliates/trunk/changelog.txt
r3419594 r3460410 1 = 2.7 = 2 * Fixed an issue where affiliate commission might not apply when using Blocks based Cart and Checkout. Confirmed compatibility with WooCommerce 10.5 3 1 4 = 2.6 = 2 5 * Confirmed compatibility with WordPress 6.9 and WooCommerce 10.4. -
pw-woocommerce-affiliates/trunk/pw-affiliates.php
r3419594 r3460410 4 4 * Plugin URI: https://www.pimwick.com/affiliates/ 5 5 * Description: Affiliate tracking for your WooCommerce store. 6 * Version: 2. 66 * Version: 2.7 7 7 * Author: Pimwick, LLC 8 8 * Author URI: https://www.pimwick.com … … 10 10 * Domain Path: /languages 11 11 * WC requires at least: 4.0 12 * WC tested up to: 10. 412 * WC tested up to: 10.5 13 13 * Requires Plugins: woocommerce 14 14 */ … … 31 31 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 32 32 */ 33 define( 'PWWA_VERSION', '2. 6' );33 define( 'PWWA_VERSION', '2.7' ); 34 34 35 35 defined( 'ABSPATH' ) or exit; … … 116 116 add_filter( 'woocommerce_order_data_store_cpt_get_orders_query', array( $this, 'woocommerce_order_data_store_cpt_get_orders_query' ), 10, 2 ); 117 117 add_action( 'woocommerce_checkout_update_order_meta', array( $this, 'woocommerce_checkout_update_order_meta' ), 10, 2 ); 118 add_action( 'woocommerce_store_api_checkout_update_order_meta', array( $this, 'woocommerce_store_api_checkout_update_order_meta' ) ); 118 119 add_action( 'woocommerce_cart_totals_before_order_total', array( $this, 'woocommerce_cart_totals_before_order_total' ) ); 119 120 add_action( 'woocommerce_review_order_before_order_total', array( $this, 'woocommerce_review_order_before_order_total' ) ); … … 235 236 236 237 function woocommerce_checkout_update_order_meta( $order_id, $data ) { 238 $order = wc_get_order( $order_id ); 239 if ( $order ) { 240 $this->process_affiliate_commission( $order ); 241 } 242 } 243 244 function woocommerce_store_api_checkout_update_order_meta( $order ) { 245 $this->process_affiliate_commission( $order ); 246 } 247 248 function process_affiliate_commission( $order ) { 249 if ( $order->meta_exists( '_pw_affiliate_code' ) ) { 250 return; 251 } 252 237 253 $code = $this->get_affiliate_code_from_session(); 238 254 if ( empty( $code ) ) { … … 242 258 $affiliate = pwwa_get_active_affiliate( $code ); 243 259 if ( $affiliate ) { 244 $order = new WC_Order( $order_id );245 246 260 $pre_tax = boolval( get_option( 'pw_affiliates_commission_before_tax', '1' ) ); 247 261 $total_commission = 0; -
pw-woocommerce-affiliates/trunk/readme.txt
r3419594 r3460410 6 6 Tested up to: 6.9 7 7 Requires PHP: 7.4 8 Stable tag: 2. 68 Stable tag: 2.7 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 63 63 == Changelog == 64 64 65 = 2.7 = 66 * Fixed an issue where affiliate commission might not apply when using Blocks based Cart and Checkout. Confirmed compatibility with WooCommerce 10.5 67 65 68 = 2.6 = 66 69 * Confirmed compatibility with WordPress 6.9 and WooCommerce 10.4. … … 90 93 * Compatibility with WordPress 6.5 and WooCommerce 8.7 91 94 92 = 1.42 =93 * Confirmed compatibility with WordPress 6.494 95 95 = Previous versions = 96 96 * See changelog.txt … … 98 98 == Upgrade Notice == 99 99 100 = 2. 6=101 * Confirmed compatibility with WordPress 6.9 and WooCommerce 10.4.100 = 2.7 = 101 * Fixed an issue where affiliate commission might not apply when using Blocks based Cart and Checkout. Confirmed compatibility with WooCommerce 10.5 102 102 103 103
Note: See TracChangeset
for help on using the changeset viewer.