Changeset 2869496
- Timestamp:
- 02/22/2023 03:57:55 PM (3 years ago)
- Location:
- viaads
- Files:
-
- 16 added
- 3 edited
-
tags/1.1.5 (added)
-
tags/1.1.5/apikey.php (added)
-
tags/1.1.5/externalJS.php (added)
-
tags/1.1.5/handleEmailGuid.php (added)
-
tags/1.1.5/hooks (added)
-
tags/1.1.5/hooks/addCart.php (added)
-
tags/1.1.5/hooks/orderHooks.php (added)
-
tags/1.1.5/hooks/pageLook.php (added)
-
tags/1.1.5/hooks/removeCart.php (added)
-
tags/1.1.5/http.php (added)
-
tags/1.1.5/js (added)
-
tags/1.1.5/js/viaads_handleEmailGuid.js (added)
-
tags/1.1.5/readme.txt (added)
-
tags/1.1.5/sync.php (added)
-
tags/1.1.5/userAgent.php (added)
-
tags/1.1.5/viaads.php (added)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/sync.php (modified) (3 diffs)
-
trunk/viaads.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
viaads/trunk/readme.txt
r2869475 r2869496 4 4 Requires at least: 5.4 5 5 Tested up to: 6.1 6 Stable tag: 1.1. 46 Stable tag: 1.1.5 7 7 Requires PHP: 7.0 8 8 License: GPLv3 -
viaads/trunk/sync.php
r2869475 r2869496 146 146 $product_object->Slug = $product->get_slug(); 147 147 //Price 148 $product_object->price = $product->get_price(); 148 $product_price = $product->get_price(); 149 $product_object->price = !empty($product_price) ? $product_price : 0; 149 150 if ($product_object->price == "") { 150 151 $product_object->price = null; … … 205 206 $child_object->DateCreated = $createdAt->format('c'); 206 207 // Gets the products Final Price 207 $child Price = $child->get_price();208 $child_object->Price = $child Price;208 $child_price = !empty($child->get_price()) ? $child->get_price() : 0; 209 $child_object->Price = $child_price; 209 210 // Regular Price 210 $child_object->RegularPrice = $child ->get_price();211 $child_object->RegularPrice = $child_price; 211 212 if ($child_object->RegularPrice == "") { 212 213 $child_object->RegularPrice = null; … … 240 241 // Getting the Lowest and the Highest price from Child (Variant) Products 241 242 if ($i == 1) { 242 $lowestPrice = $child Price;243 $highestPrice = $child Price;243 $lowestPrice = $child_price; 244 $highestPrice = $child_price; 244 245 } else { 245 if ($child Price < $lowestPrice)246 $lowestPrice = $child Price;247 if ($child Price > $highestPrice)248 $highestPrice = $child Price;246 if ($child_price < $lowestPrice) 247 $lowestPrice = $child_price; 248 if ($child_price > $highestPrice) 249 $highestPrice = $child_price; 249 250 } 250 251 -
viaads/trunk/viaads.php
r2869475 r2869496 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. 45 * Version: 1.1.5 6 6 * Author: ViaAds 7 7 * Author URI: https://www.viaads.dk/
Note: See TracChangeset
for help on using the changeset viewer.