Changeset 3254217
- Timestamp:
- 03/11/2025 04:30:51 PM (13 months ago)
- Location:
- awin-advertiser-tracking/trunk
- Files:
-
- 2 edited
-
awin-advertiser-tracking.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
awin-advertiser-tracking/trunk/awin-advertiser-tracking.php
r3229830 r3254217 5 5 * Plugin URI: https://wordpress.org/plugins/awin-advertiser-tracking 6 6 * Description: The Awin Advertiser Tracking plugin allows for seamless integration of our core Advertiser Tracking Suite within WooCommerce. 7 * Version: 1.3. 17 * Version: 1.3.2 8 8 * Author: awinglobal 9 9 * Author URI: https://profiles.wordpress.org/awinglobal/ … … 15 15 */ 16 16 17 define('AWIN_ADVERTISER_TRACKING_VERSION', ' 1.3.1');17 define('AWIN_ADVERTISER_TRACKING_VERSION', '2.0.0'); 18 18 define('AWIN_SLUG', 'awin_advertiser_tracking'); 19 19 define('AWIN_TEXT_DOMAIN', 'awin-advertiser-tracking'); … … 254 254 $order = wc_get_order($order_id); 255 255 256 // check if the order has already been sent to Awin 257 $sentToAwin = get_post_meta($order_id, '_awin_conversion', true); 258 259 if ($sentToAwin) { 260 return; 261 } 262 256 263 // Get all orders of the customer 257 264 $customer_id = $order->get_customer_id(); … … 331 338 // s2s 332 339 awin_perform_server_to_server_call($awc, $channel, $order, $advertiserId, $voucher, $customer_acquisition); 340 341 // add sentToAwin flag to order in order to avoid duplicate calls 342 update_post_meta($order_id, '_awin_conversion', true); 333 343 } 334 344 } … … 490 500 // Define column headers for the feed 491 501 $headers = [ 502 'deep_link', 492 503 'basket_link', 'ean', 'isbn', 'product_GTIN', 'size_stock_amount', 'category_name', 'category_id', 493 504 'image_url', 'product_id', 'product_name', 'price', … … 579 590 $cart_url = wc_get_cart_url(); 580 591 // echo wc_get_cart_url(); 592 $deep_link = get_permalink($product->get_id()); 593 581 594 $row = [ 595 'deep_link' => $deep_link, 582 596 'basket_link' => $cart_url, 583 597 'ean' => $product->get_global_unique_id() ?? '', -
awin-advertiser-tracking/trunk/readme.txt
r3229830 r3254217 9 9 Requires at least: 3.5 10 10 Tested up to: 6.7.1 11 Stable tag: 1.3. 112 Version: 1.3. 111 Stable tag: 1.3.2 12 Version: 1.3.2 13 13 Requires PHP: 7.3 14 14 … … 50 50 51 51 == Changelog == 52 53 = 1.3.1 = 54 * Added aw_deep_link field. 55 * Fixed issue in checkout where calls were firing multiple times 52 56 53 57 = 1.3.1 =
Note: See TracChangeset
for help on using the changeset viewer.