From 1fcf67f14a8f738f22395d453cb39aeed573af78 Mon Sep 17 00:00:00 2001 From: sysadminstory Date: Wed, 9 Aug 2023 17:36:02 +0200 Subject: [PATCH] [PepperBridgeAbstract] Fix deal origin (#3605) Origin display has chenged : this commit follow the websites changes. Fixes #3521 --- bridges/PepperBridgeAbstract.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bridges/PepperBridgeAbstract.php b/bridges/PepperBridgeAbstract.php index 85178e54375..c152d249d4f 100644 --- a/bridges/PepperBridgeAbstract.php +++ b/bridges/PepperBridgeAbstract.php @@ -393,10 +393,10 @@ private function getShippingCost($deal) */ private function getSource($deal) { - if ($deal->find('a[class*=text--color-greyShade]', 0) != null) { - return '
' . $this->i8n('origin') . ' : ' - . $deal->find('a[class*=text--color-greyShade]', 0)->outertext - . '
'; + 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); + return '
' . $this->i8n('origin') . ' : ' . $text . '
'; } else { return ''; }