Plugin Directory

Changeset 2916496


Ignore:
Timestamp:
05/23/2023 06:36:32 PM (3 years ago)
Author:
viaads
Message:

Performance Update

Location:
viaads
Files:
16 added
8 edited

Legend:

Unmodified
Added
Removed
  • viaads/trunk/externalJS.php

    r2859216 r2916496  
    1313function viaads_add_script() {
    1414    $cookie_provider = get_option( 'viaads_cookie_provider' );
    15     echo "<script id='viaads-cookie-script' src='https://viaadspublicfiles.blob.core.windows.net/plugins/ViaAds/ViaAds-Cookie.js' data-cookie-provider='$cookie_provider' async defer></script>";
     15    echo "<script id='viaads-cookie-script' src='https://viaadspublicfiles.blob.core.windows.net/plugins/ViaAds/ViaAds-Cookie.js' data-cookie-provider='$cookie_provider' async></script>";
    1616}
  • viaads/trunk/hooks/addCart.php

    r2880482 r2916496  
    8989        $plugin->Version = $pluginData['Version'];
    9090        $data->Plugin = $plugin;
    91 
    92         $data->ApiKey = get_option( "viaads_api_key" );
     91        $data->ApiKey = strval(get_option( "viaads_api_key" ));
    9392        $data->client = $clientInfo;
    9493        $data->url = $productPageUrl;
  • viaads/trunk/hooks/orderHooks.php

    r2884235 r2916496  
    142142        // Final infos
    143143        $orderFinal = new stdClass();
    144         $orderFinal->ApiKey = get_option("viaads_api_key");
    145144        $orderFinal->Shop_order = $order_object;
    146145
     
    160159        $plugin->Version = $pluginData['Version'];
    161160        $orderFinal->Plugin = $plugin;
    162        
     161        $orderFinal->ApiKey = strval(get_option("viaads_api_key"));
     162
    163163        ViaAds_PostToUrl("https://integration.viaads.dk/woocommerce/WebShopOrderHook", $orderFinal, true);
    164164    } catch (Exception $e) {
  • viaads/trunk/hooks/pageLook.php

    r2884235 r2916496  
    8787        $plugin->Version = $pluginData['Version'];
    8888        $data->Plugin = $plugin;
    89 
    90         $data->ApiKey = get_option("viaads_api_key");
     89        $data->ApiKey = strval(get_option("viaads_api_key"));
    9190        $data->client = $clientInfo;
    9291        $data->url = $productPageUrl;
  • viaads/trunk/hooks/removeCart.php

    r2880482 r2916496  
    9393        $data->Plugin = $plugin;
    9494
    95         $data->ApiKey = get_option("viaads_api_key");
     95        $data->ApiKey = strval(get_option("viaads_api_key"));
    9696        $data->client = $clientInfo;
    9797        $data->url = $productPageUrl;
  • viaads/trunk/readme.txt

    r2902189 r2916496  
    44Requires at least: 5.4
    55Tested up to: 6.2
    6 Stable tag: 1.1.15
     6Stable tag: 1.1.16
    77Requires PHP: 7.0
    88License: GPLv3
  • viaads/trunk/sync.php

    r2902189 r2916496  
    2929            $webshop = new stdClass();
    3030            $webshop->Type = "WooCommerce";
    31             $webshop->ApiKey = get_option($name);
     31            $webshop->ApiKey = strval(get_option($name));
    3232            $webshop->Categories = ViaAds_getCategories();
    3333            $webshop->Products = ViaAds_getProducts();
     
    4343                    ViaAds_PostToUrl("https://sync.viaads.dk/woocommerce/WebShopData", $webshop, true);
    4444                    $webshop->Categories = [];
     45                }
     46                //If no product have been updated, force a update
     47                if (empty($splitted)) {
     48                    ViaAds_PostToUrl("https://sync.viaads.dk/woocommerce/WebShopData", $webshop, true);
    4549                }
    4650            }
     
    448452            // Final infos
    449453            $orderFinal = new stdClass();
    450             $orderFinal->ApiKey = get_option("viaads_api_key");
     454            $orderFinal->ApiKey = strval(get_option("viaads_api_key"));
    451455            $orderFinal->Shop_order = $order_object;
    452456
  • viaads/trunk/viaads.php

    r2902189 r2916496  
    33 * Plugin Name: ViaAds
    44 * Description: Plugin der muliggør forbindelsen til ViaAds / Plug-in enabling the connection to ViaAds.
    5  * Version: 1.1.15
     5 * Version: 1.1.16
    66 * Author: ViaAds
    77 * Author URI: https://www.viaads.dk/
Note: See TracChangeset for help on using the changeset viewer.