modif rss flux catalogue

This commit is contained in:
Marion Muszynski 2017-04-10 16:33:42 +02:00
parent 400feb54e1
commit d6e3e16a51

View File

@ -67,17 +67,17 @@ class Catalog
$this->_xml = '<?xml version="1.0" encoding="UTF-8" ?>'; $this->_xml = '<?xml version="1.0" encoding="UTF-8" ?>';
// Catalog // Catalog
$this->_xml .= '<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><catalogue>'; $this->_xml .= '<rss xmlns:atom="https://www.w3.org/2005/Atom" version="2.0"><catalogue>';
//Shop details //Shop details
$this->_xml .= '<infos_boutique>'; $this->_xml .= '<infos_boutique>';
$this->_xml .= '<logo>http://www.bebeboutik.com/img/logo.png</logo>'; $this->_xml .= '<logo>https://www.bebeboutik.com/img/logo.png</logo>';
$this->_xml .= '<nom>bebeboutik.com</nom>'; $this->_xml .= '<nom>bebeboutik.com</nom>';
if (Tools::getValue('partenaire') if (Tools::getValue('partenaire')
&& Tools::getValue('partenaire') == "family_deal") { && Tools::getValue('partenaire') == "family_deal") {
$this->_xml .= '<url><![CDATA[http://www.bebeboutik.com/invite/MjAxMy0xMC0y=02bj5yapRXdvJWZiVmYAxWYlRWL5xWatFmZ&lp=mosaique-enfant]]></url>'; $this->_xml .= '<url><![CDATA[https://www.bebeboutik.com/invite/MjAxMy0wNC0z=02bj5yapRXdvJWZiVmYANWasJWdwtCdjFGdu92Y&lp=mosaique-enfant?utm_source=publicidees&utm_medium=CPL]]></url>';
} else { } else {
$this->_xml .= '<url>www.bebeboutik.com</url>'; $this->_xml .= '<url>https://www.bebeboutik.com</url>';
} }
$this->_xml .= '</infos_boutique>'; $this->_xml .= '</infos_boutique>';
@ -90,7 +90,7 @@ class Catalog
$this->_xml .= '<date_debut>'.$item->date_start.'</date_debut>'; $this->_xml .= '<date_debut>'.$item->date_start.'</date_debut>';
$this->_xml .= '<date_fin>'.$item->date_end.'</date_fin>'; $this->_xml .= '<date_fin>'.$item->date_end.'</date_fin>';
$this->_xml .= '<reduction>'.$item->reduction.'</reduction>'; $this->_xml .= '<reduction>'.$item->reduction.'</reduction>';
$this->_xml .= '<image_vente>http://www.bebeboutik.com/modules/privatesales/img/'.$item->id.'/liston_'.(int) $id_lang.'.jpg</image_vente>'; $this->_xml .= '<image_vente>https://www.bebeboutik.com/modules/privatesales/img/'.$item->id.'/liston_'.(int) $id_lang.'.jpg</image_vente>';
$this->_xml.='</vente>'; $this->_xml.='</vente>';