Plugin Directory

Changeset 3254217


Ignore:
Timestamp:
03/11/2025 04:30:51 PM (13 months ago)
Author:
awinglobal
Message:

Updated to 1.3.2

Location:
awin-advertiser-tracking/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • awin-advertiser-tracking/trunk/awin-advertiser-tracking.php

    r3229830 r3254217  
    55 * Plugin URI: https://wordpress.org/plugins/awin-advertiser-tracking
    66 * Description: The Awin Advertiser Tracking plugin allows for seamless integration of our core Advertiser Tracking Suite within WooCommerce.
    7  * Version: 1.3.1
     7 * Version: 1.3.2
    88 * Author: awinglobal
    99 * Author URI: https://profiles.wordpress.org/awinglobal/
     
    1515 */
    1616
    17 define('AWIN_ADVERTISER_TRACKING_VERSION', '1.3.1');
     17define('AWIN_ADVERTISER_TRACKING_VERSION', '2.0.0');
    1818define('AWIN_SLUG', 'awin_advertiser_tracking');
    1919define('AWIN_TEXT_DOMAIN', 'awin-advertiser-tracking');
     
    254254            $order = wc_get_order($order_id);
    255255
     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
    256263            // Get all orders of the customer
    257264            $customer_id = $order->get_customer_id();
     
    331338            // s2s
    332339            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);
    333343        }
    334344    }
     
    490500        // Define column headers for the feed
    491501        $headers = [
     502            'deep_link',
    492503            'basket_link', 'ean', 'isbn', 'product_GTIN', 'size_stock_amount', 'category_name', 'category_id',
    493504            'image_url', 'product_id', 'product_name', 'price',
     
    579590            $cart_url              = wc_get_cart_url();
    580591            // echo wc_get_cart_url();
     592            $deep_link =  get_permalink($product->get_id());
     593
    581594            $row = [
     595                'deep_link'                        => $deep_link,
    582596                'basket_link'                      => $cart_url,
    583597                'ean'                              => $product->get_global_unique_id() ?? '',
  • awin-advertiser-tracking/trunk/readme.txt

    r3229830 r3254217  
    99Requires at least: 3.5
    1010Tested up to:      6.7.1
    11 Stable tag:        1.3.1
    12 Version:           1.3.1
     11Stable tag:        1.3.2
     12Version:           1.3.2
    1313Requires PHP:      7.3
    1414
     
    5050
    5151== Changelog ==
     52
     53= 1.3.1 =
     54* Added aw_deep_link field.
     55* Fixed issue in checkout where calls were firing multiple times
    5256
    5357= 1.3.1 =
Note: See TracChangeset for help on using the changeset viewer.