Changeset 2916496
- Timestamp:
- 05/23/2023 06:36:32 PM (3 years ago)
- Location:
- viaads
- Files:
-
- 16 added
- 8 edited
-
tags/1.1.16 (added)
-
tags/1.1.16/apikey.php (added)
-
tags/1.1.16/externalJS.php (added)
-
tags/1.1.16/handleEmailGuid.php (added)
-
tags/1.1.16/hooks (added)
-
tags/1.1.16/hooks/addCart.php (added)
-
tags/1.1.16/hooks/orderHooks.php (added)
-
tags/1.1.16/hooks/pageLook.php (added)
-
tags/1.1.16/hooks/removeCart.php (added)
-
tags/1.1.16/http.php (added)
-
tags/1.1.16/js (added)
-
tags/1.1.16/js/viaads_handleEmailGuid.js (added)
-
tags/1.1.16/readme.txt (added)
-
tags/1.1.16/sync.php (added)
-
tags/1.1.16/userAgent.php (added)
-
tags/1.1.16/viaads.php (added)
-
trunk/externalJS.php (modified) (1 diff)
-
trunk/hooks/addCart.php (modified) (1 diff)
-
trunk/hooks/orderHooks.php (modified) (2 diffs)
-
trunk/hooks/pageLook.php (modified) (1 diff)
-
trunk/hooks/removeCart.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/sync.php (modified) (3 diffs)
-
trunk/viaads.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
viaads/trunk/externalJS.php
r2859216 r2916496 13 13 function viaads_add_script() { 14 14 $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>"; 16 16 } -
viaads/trunk/hooks/addCart.php
r2880482 r2916496 89 89 $plugin->Version = $pluginData['Version']; 90 90 $data->Plugin = $plugin; 91 92 $data->ApiKey = get_option( "viaads_api_key" ); 91 $data->ApiKey = strval(get_option( "viaads_api_key" )); 93 92 $data->client = $clientInfo; 94 93 $data->url = $productPageUrl; -
viaads/trunk/hooks/orderHooks.php
r2884235 r2916496 142 142 // Final infos 143 143 $orderFinal = new stdClass(); 144 $orderFinal->ApiKey = get_option("viaads_api_key");145 144 $orderFinal->Shop_order = $order_object; 146 145 … … 160 159 $plugin->Version = $pluginData['Version']; 161 160 $orderFinal->Plugin = $plugin; 162 161 $orderFinal->ApiKey = strval(get_option("viaads_api_key")); 162 163 163 ViaAds_PostToUrl("https://integration.viaads.dk/woocommerce/WebShopOrderHook", $orderFinal, true); 164 164 } catch (Exception $e) { -
viaads/trunk/hooks/pageLook.php
r2884235 r2916496 87 87 $plugin->Version = $pluginData['Version']; 88 88 $data->Plugin = $plugin; 89 90 $data->ApiKey = get_option("viaads_api_key"); 89 $data->ApiKey = strval(get_option("viaads_api_key")); 91 90 $data->client = $clientInfo; 92 91 $data->url = $productPageUrl; -
viaads/trunk/hooks/removeCart.php
r2880482 r2916496 93 93 $data->Plugin = $plugin; 94 94 95 $data->ApiKey = get_option("viaads_api_key");95 $data->ApiKey = strval(get_option("viaads_api_key")); 96 96 $data->client = $clientInfo; 97 97 $data->url = $productPageUrl; -
viaads/trunk/readme.txt
r2902189 r2916496 4 4 Requires at least: 5.4 5 5 Tested up to: 6.2 6 Stable tag: 1.1.1 56 Stable tag: 1.1.16 7 7 Requires PHP: 7.0 8 8 License: GPLv3 -
viaads/trunk/sync.php
r2902189 r2916496 29 29 $webshop = new stdClass(); 30 30 $webshop->Type = "WooCommerce"; 31 $webshop->ApiKey = get_option($name);31 $webshop->ApiKey = strval(get_option($name)); 32 32 $webshop->Categories = ViaAds_getCategories(); 33 33 $webshop->Products = ViaAds_getProducts(); … … 43 43 ViaAds_PostToUrl("https://sync.viaads.dk/woocommerce/WebShopData", $webshop, true); 44 44 $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); 45 49 } 46 50 } … … 448 452 // Final infos 449 453 $orderFinal = new stdClass(); 450 $orderFinal->ApiKey = get_option("viaads_api_key");454 $orderFinal->ApiKey = strval(get_option("viaads_api_key")); 451 455 $orderFinal->Shop_order = $order_object; 452 456 -
viaads/trunk/viaads.php
r2902189 r2916496 3 3 * Plugin Name: ViaAds 4 4 * Description: Plugin der muliggør forbindelsen til ViaAds / Plug-in enabling the connection to ViaAds. 5 * Version: 1.1.1 55 * Version: 1.1.16 6 6 * Author: ViaAds 7 7 * Author URI: https://www.viaads.dk/
Note: See TracChangeset
for help on using the changeset viewer.