From 6ba367efbd846fffeacacaf5b2cf06dcb9bb251b Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Thu, 17 Mar 2022 16:50:50 +0400 Subject: [PATCH] Fix the description counting. --- modules/ppcp-api-client/src/Factory/ItemFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-api-client/src/Factory/ItemFactory.php b/modules/ppcp-api-client/src/Factory/ItemFactory.php index 10aa40ff8..7145583d8 100644 --- a/modules/ppcp-api-client/src/Factory/ItemFactory.php +++ b/modules/ppcp-api-client/src/Factory/ItemFactory.php @@ -61,7 +61,7 @@ class ItemFactory { mb_substr( $product->get_name(), 0, 127 ), new Money( $price_without_tax_rounded, $this->currency ), $quantity, - mb_substr( wp_strip_all_tags( $product->get_description() ), 0, 127 ), + substr( wp_strip_all_tags( $product->get_description() ), 0, 127 ), $tax, $product->get_sku(), ( $product->is_virtual() ) ? Item::DIGITAL_GOODS : Item::PHYSICAL_GOODS