From 628920569cd57a8f66177828a67a0dc3bcfc2216 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Wed, 10 Sep 2025 15:01:00 -0400 Subject: [PATCH] Fixed bug where price was being multiplied by 100 twice --- .../includes/class-helloextend-protection-orders.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helloextend-protection/includes/class-helloextend-protection-orders.php b/helloextend-protection/includes/class-helloextend-protection-orders.php index 55d800a..e7cfe5c 100644 --- a/helloextend-protection/includes/class-helloextend-protection-orders.php +++ b/helloextend-protection/includes/class-helloextend-protection-orders.php @@ -245,8 +245,8 @@ public function helloextend_get_plans_and_products($order, $fulfill_now = false) 'id' => $product->get_id(), 'title' => $product->get_name(), 'category' => $first_category, - 'listPrice' => $this->get_price_in_cents($product->get_regular_price() * 100), - 'purchasePrice' => $this->get_price_in_cents($product->get_price() * 100), + 'listPrice' => $this->get_price_in_cents($product->get_regular_price()), + 'purchasePrice' => $this->get_price_in_cents($product->get_price()), 'purchaseDate' => $order->get_data()['date_created']->getTimestamp() * 1000, 'imageUrl' => $image_url ),