diff --git a/bridges/PepperBridgeAbstract.php b/bridges/PepperBridgeAbstract.php index 43dbe829..86a488c4 100644 --- a/bridges/PepperBridgeAbstract.php +++ b/bridges/PepperBridgeAbstract.php @@ -62,7 +62,8 @@ class PepperBridgeAbstract extends BridgeAbstract foreach ($list as $deal) { // Get the JSON Data stored as vue $jsonDealData = $this->getDealJsonData($deal); - $dealMeta = Json::decode($deal->find('div[class=js-vue2]', 1)->getAttribute('data-vue2')); + // DEPRECATED : website does not show this info in the deal list anymore + // $dealMeta = Json::decode($deal->find('div[class=js-vue3]', 1)->getAttribute('data-vue3')); $item = []; $item['uri'] = $this->getDealURI($jsonDealData); @@ -77,7 +78,10 @@ class PepperBridgeAbstract extends BridgeAbstract . $this->getHTMLTitle($jsonDealData) . $this->getPrice($jsonDealData) . $this->getDiscount($jsonDealData) - . $this->getShipsFrom($dealMeta) + /* + * DEPRECATED : the list does not show this info anymore + * . $this->getShipsFrom($dealMeta) + */ . $this->getShippingCost($jsonDealData) . $this->getSource($jsonDealData) . $this->getDealLocation($jsonDealData) @@ -354,7 +358,7 @@ HEREDOC; */ private function getDealJsonData($deal) { - $data = Json::decode($deal->find('div[class=js-vue2]', 0)->getAttribute('data-vue2')); + $data = Json::decode($deal->find('div[class=js-vue3]', 0)->getAttribute('data-vue3')); return $data; } @@ -419,7 +423,7 @@ HEREDOC; private function getImage($deal) { // Get thread Image JSON content - $content = Json::decode($deal->find('div[class=js-vue2]', 0)->getAttribute('data-vue2')); + $content = Json::decode($deal->find('div[class=js-vue3]', 0)->getAttribute('data-vue3')); //return ''; return '