From 91679e61d4f0a4c0acd99b30587becb43808d323 Mon Sep 17 00:00:00 2001 From: ade Date: Fri, 4 Oct 2019 10:14:21 +0200 Subject: [PATCH] Removed html tags from price --- .../Everlytic/Productapi/Model/Api2/Product/Rest/Admin/V1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/local/Everlytic/Productapi/Model/Api2/Product/Rest/Admin/V1.php b/app/code/local/Everlytic/Productapi/Model/Api2/Product/Rest/Admin/V1.php index b7d9c79..2c99c62 100644 --- a/app/code/local/Everlytic/Productapi/Model/Api2/Product/Rest/Admin/V1.php +++ b/app/code/local/Everlytic/Productapi/Model/Api2/Product/Rest/Admin/V1.php @@ -46,7 +46,7 @@ class Everlytic_Productapi_Model_Api2_Product_Rest_Admin_V1 extends Mage_Catalog protected function _prepareProductForResponse(Mage_Catalog_Model_Product $product) { $productData = $product->getData(); - $productData['price'] = Mage::helper('core')->currency($product->getPrice()); + $productData['price'] = strip_tags(Mage::helper('core')->currency($product->getPrice())); $productData['gallery'] = $this->getGalleryFromProduct($product); $productData['product_url'] = $product->getProductUrl(); $productData['add_to_cart_url'] = Mage::getBaseUrl() . "add-to-cart/index/index/product/" . $product->getId();