From 84b5ffcc7c6ee42d323bb897f61e523127eb7595 Mon Sep 17 00:00:00 2001 From: sysadminstory Date: Tue, 7 Nov 2023 05:02:34 +0100 Subject: [PATCH] [PepperBridgeAbstract] Fix Deal Origin and Shipping cost (#3790) - Deal Origin was changed by the website : fixed the CSS class to get it - Shipping cost had an extra SVG image in the content : removed the whole HTML tags from the content --- bridges/PepperBridgeAbstract.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bridges/PepperBridgeAbstract.php b/bridges/PepperBridgeAbstract.php index 5d2e552b844..875ed8f647c 100644 --- a/bridges/PepperBridgeAbstract.php +++ b/bridges/PepperBridgeAbstract.php @@ -356,11 +356,11 @@ private function getShippingCost($deal) if ($deal->find('span[class*=space--ml-2 size--all-s overflow--wrap-off]', 0) != null) { if ($deal->find('span[class*=space--ml-2 size--all-s overflow--wrap-off]', 0)->children(1) != null) { return '
' . $this->i8n('shipping') . ' : ' - . $deal->find('span[class*=space--ml-2 size--all-s overflow--wrap-off]', 0)->children(1)->innertext + . strip_tags($deal->find('span[class*=space--ml-2 size--all-s overflow--wrap-off]', 0)->children(1)->innertext) . '
'; } else { return '
' . $this->i8n('shipping') . ' : ' - . $deal->find('span[class*=text--color-greyShade flex--inline]', 0)->innertext + . strip_tags($deal->find('span[class*=text--color-greyShade flex--inline]', 0)->innertext) . '
'; } } else { @@ -376,7 +376,7 @@ private function getSource($deal) { if (($origin = $deal->find('button[class*=text--color-greyShade]', 0)) != null) { $path = str_replace(' ', '/', trim(Json::decode($origin->{'data-cloak-link'})['path'])); - $text = $origin->find('span[class*=cept-merchant-name]', 0); + $text = $origin->find('span[class*=link]', 0); return '
' . $this->i8n('origin') . ' : ' . $text . '
'; } else { return '';