Skip to content

Commit 2d00c2f

Browse files
committed
Coderabbit fixes
1 parent a60e34b commit 2d00c2f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

helloextend-protection/helloextend-protection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* Start at version 1.0.0 and use SemVer - https://semver.org
4545
* Rename this for your plugin and update it as you release new versions.
4646
*/
47-
define('HELLOEXTEND_PROTECTION_VERSION', '1.1.0');
47+
define('HELLOEXTEND_PROTECTION_VERSION', '1.2.4');
4848
define('HELLOEXTEND_PRODUCT_PROTECTION_SKU', 'helloextend-product-protection');
4949
define('HELLOEXTEND_SHIPPING_PROTECTION_SKU', 'helloextend-shipping-protection');
5050

helloextend-protection/includes/class-helloextend-global.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public function update_price($cart)
288288
if (is_admin() && !defined('DOING_AJAX')) return;
289289

290290
foreach ($cart->get_cart() as $cart_item_key => $cart_item) {
291-
if (!empty($cart_item['extendData']['price'])) {
291+
if (!empty($cart_item['extendData']['price']) || $cart_item['extendData']['price'] == (int) 0) {
292292

293293
$price = round(floatval($cart_item['extendData']['price']) / 100, 2);
294294

helloextend-protection/readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ For more information on our terms of service and privacy policy, visit the links
8080
== Changelog ==
8181

8282
= 1.2.4 2026-05-08 =
83-
* Fix - Decreased priority for warranty price hook so that plan prices are properly set in more scenarios.
83+
* Fix - Increased priority for warranty price hook so that plan prices are properly set in more scenarios.
8484
* Fix - Fixed a bug where product prices were incorrectly set when orders were sent to Extend.
8585

8686
= 1.2.3 2026-03-25 =

0 commit comments

Comments
 (0)