Changeset 2902189
- Timestamp:
- 04/21/2023 09:13:34 AM (3 years ago)
- Location:
- viaads
- Files:
-
- 16 added
- 3 edited
-
tags/1.1.15 (added)
-
tags/1.1.15/apikey.php (added)
-
tags/1.1.15/externalJS.php (added)
-
tags/1.1.15/handleEmailGuid.php (added)
-
tags/1.1.15/hooks (added)
-
tags/1.1.15/hooks/addCart.php (added)
-
tags/1.1.15/hooks/orderHooks.php (added)
-
tags/1.1.15/hooks/pageLook.php (added)
-
tags/1.1.15/hooks/removeCart.php (added)
-
tags/1.1.15/http.php (added)
-
tags/1.1.15/js (added)
-
tags/1.1.15/js/viaads_handleEmailGuid.js (added)
-
tags/1.1.15/readme.txt (added)
-
tags/1.1.15/sync.php (added)
-
tags/1.1.15/userAgent.php (added)
-
tags/1.1.15/viaads.php (added)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/sync.php (modified) (2 diffs)
-
trunk/viaads.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
viaads/trunk/readme.txt
r2900782 r2902189 3 3 Tags: ViaAds, ViaBill 4 4 Requires at least: 5.4 5 Tested up to: 6. 16 Stable tag: 1.1.1 45 Tested up to: 6.2 6 Stable tag: 1.1.15 7 7 Requires PHP: 7.0 8 8 License: GPLv3 -
viaads/trunk/sync.php
r2900782 r2902189 31 31 $webshop->ApiKey = get_option($name); 32 32 $webshop->Categories = ViaAds_getCategories(); 33 $webshop->Products = ViaAds_getProducts( $_GET['full']);33 $webshop->Products = ViaAds_getProducts(); 34 34 if (isset($_GET['debug']) && $_GET['debug'] == "tEBLZTqKDLzhEjc2Kw9mqu5vrJUB") { 35 35 print_r(ViaAds_PostToUrl("https://sync.viaads.dk/woocommerce/WebShopData", $webshop, true)); … … 71 71 72 72 73 function ViaAds_getProducts( $full)73 function ViaAds_getProducts() 74 74 { 75 if (strtolower($full) == "true") { 76 $args = array( 77 'orderby' => 'name', 78 'limit' => -1, 79 ); 80 } else { 81 $args = array( 82 'orderby' => 'name', 83 'limit' => -1, 84 'date_modified' => '>' . (time() - 3 * 24 * 60 * 60), 85 ); 86 } 75 $lookBackDays = 7; 76 if (isset($_GET['lookbackdays']) && is_numeric($_GET['lookbackdays'])) { 77 $lookBackDays = $_GET['lookbackdays']; 78 } 79 80 $args = array( 81 'orderby' => 'name', 82 'limit' => -1, 83 'date_modified' => '>' . (time() - $lookBackDays * 24 * 60 * 60), 84 ); 87 85 $productCollection = wc_get_products($args); 88 86 $products = []; -
viaads/trunk/viaads.php
r2900782 r2902189 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 45 * Version: 1.1.15 6 6 * Author: ViaAds 7 7 * Author URI: https://www.viaads.dk/
Note: See TracChangeset
for help on using the changeset viewer.