Merge branch 'ticket-11199-RebuildNewsletter' into develop
This commit is contained in:
commit
5e4b33c56d
@ -160,7 +160,7 @@ class Catalog
|
||||
$this->_xml .= '<title><![CDATA['.$item->title[(int) $id_lang].']]>|<![CDATA['.$item->reduction.']]></title>';
|
||||
$this->_xml .= '<description><![CDATA['.$item->description[(int) $id_lang].']]></description>';
|
||||
$this->_xml .= '<category><![CDATA['.$category->name[(int) $id_lang].']]></category>';
|
||||
$this->_xml .= '<link>'.$link_sale.'</link>';
|
||||
$this->_xml .= '<link>'.$sale_link.'</link>';
|
||||
$this->_xml .= '<reduction><![CDATA['.$item->reduction.']]></reduction>';
|
||||
$this->_xml .= '<image>';
|
||||
$this->_xml .= '<title><![CDATA['.$item->title[(int) $id_lang].']]></title>';
|
||||
@ -169,6 +169,20 @@ class Catalog
|
||||
|
||||
$this->_xml.='</sect_01>';
|
||||
}
|
||||
if (count($sales_today)%2 == 1){
|
||||
$this->_xml.='<sect_01>';
|
||||
$this->_xml .= '<title>></title>';
|
||||
$this->_xml .= '<description>Bebeboutik.com</description>';
|
||||
$this->_xml .= '<category></category>';
|
||||
$this->_xml .= '<link>'.$link_sale.'</link>';
|
||||
$this->_xml .= '<reduction></reduction>';
|
||||
$this->_xml .= '<image>';
|
||||
$this->_xml .= '<title>Bebeboutik.com</title>';
|
||||
$this->_xml .= '<url>http://www.bebeboutik.com/img/newsletter_'.(int) $id_lang.'.png</url>';
|
||||
$this->_xml .= '</image>';
|
||||
|
||||
$this->_xml.='</sect_01>';
|
||||
}
|
||||
foreach ($sales_last_day as $item) {
|
||||
$link = new Link();
|
||||
$category = new Category($item->id_category);
|
||||
@ -201,6 +215,20 @@ class Catalog
|
||||
|
||||
$this->_xml.='</sect_02>';
|
||||
}
|
||||
if (count($sales_last_day)%2 == 1){
|
||||
$this->_xml.='<sect_02>';
|
||||
$this->_xml .= '<title>></title>';
|
||||
$this->_xml .= '<description>Bebeboutik.com</description>';
|
||||
$this->_xml .= '<category></category>';
|
||||
$this->_xml .= '<link>'.$link_sale.'</link>';
|
||||
$this->_xml .= '<reduction></reduction>';
|
||||
$this->_xml .= '<image>';
|
||||
$this->_xml .= '<title>Bebeboutik.com</title>';
|
||||
$this->_xml .= '<url>http://www.bebeboutik.com/img/newsletter_'.(int) $id_lang.'.png</url>';
|
||||
$this->_xml .= '</image>';
|
||||
|
||||
$this->_xml.='</sect_02>';
|
||||
}
|
||||
|
||||
foreach ($sale_current as $item) {
|
||||
$link = new Link();
|
||||
@ -233,6 +261,20 @@ class Catalog
|
||||
|
||||
$this->_xml.='</sect_04>';
|
||||
}
|
||||
if (count($sale_current)%2 == 1){
|
||||
$this->_xml.='<sect_04>';
|
||||
$this->_xml .= '<title>></title>';
|
||||
$this->_xml .= '<description>Bebeboutik.com</description>';
|
||||
$this->_xml .= '<category></category>';
|
||||
$this->_xml .= '<link>'.$link_sale.'</link>';
|
||||
$this->_xml .= '<reduction></reduction>';
|
||||
$this->_xml .= '<image>';
|
||||
$this->_xml .= '<title>Bebeboutik.com</title>';
|
||||
$this->_xml .= '<url>http://www.bebeboutik.com/img/newsletter_'.(int) $id_lang.'.png</url>';
|
||||
$this->_xml .= '</image>';
|
||||
|
||||
$this->_xml.='</sect_04>';
|
||||
}
|
||||
|
||||
foreach ($sales_last_day as $item) {
|
||||
$link = new Link();
|
||||
@ -253,6 +295,20 @@ class Catalog
|
||||
|
||||
$this->_xml.='</sect_03>';
|
||||
}
|
||||
if (count($sales_last_day)%2 == 1){
|
||||
$this->_xml.='<sect_03>';
|
||||
$this->_xml .= '<title>></title>';
|
||||
$this->_xml .= '<description>Bebeboutik.com</description>';
|
||||
$this->_xml .= '<category></category>';
|
||||
$this->_xml .= '<link>'.$link_sale.'</link>';
|
||||
$this->_xml .= '<reduction></reduction>';
|
||||
$this->_xml .= '<image>';
|
||||
$this->_xml .= '<title>Bebeboutik.com</title>';
|
||||
$this->_xml .= '<url>http://www.bebeboutik.com/img/newsletter_'.(int) $id_lang.'.png</url>';
|
||||
$this->_xml .= '</image>';
|
||||
|
||||
$this->_xml.='</sect_03>';
|
||||
}
|
||||
|
||||
$this->_xml .= '</channel>';
|
||||
$this->_xml .= '</rss>';
|
||||
|
Loading…
Reference in New Issue
Block a user