Merge branch 'ticket-13148-FixImagePosition' into develop

This commit is contained in:
Marion Muszynski 2017-04-27 11:06:01 +02:00
commit e5bd73992e
2 changed files with 5 additions and 3 deletions

View File

@ -1365,6 +1365,7 @@ class AdminBulkUpdate extends AdminTab {
ON l.`id_image` = i.`id_image`
WHERE l.`id_lang` = '.(int) $id_lang.'
AND i.`id_product` = '.(int) $p->id.'
ORDER BY i.`position`
') as $img) {
$link_image = str_split($img['id_image']);
$images[] = 'http://static.bebeboutik.com/img/p/'.implode('/', $link_image) .'/'. $img['id_image'].'.jpg';
@ -1688,6 +1689,7 @@ class AdminBulkUpdate extends AdminTab {
ON a.`id_image` = i.`id_image`
WHERE l.`id_lang` = '.(int) $id_lang.'
AND a.`id_product_attribute` = '.(int) $k.'
ORDER BY i.`position`
') as $img) {
$link_image = str_split($img['id_image']);
$c_images[] = 'http://static.bebeboutik.com/img/p/'.implode('/', $link_image) .'/'. $img['id_image'].'.jpg';

View File

@ -96,7 +96,7 @@ class Catalog
$sale->description[(int) $id_lang] = $desc->get_text();
}
$this->setXml($sales_today, $sales_last_day, $sale_current, false, $version);
$this->setXml($sales_today, $sales_last_day, $sale_current, false, $version, $test_for_tomorrow);
}
@ -108,7 +108,7 @@ class Catalog
echo 'Fichier généré';
}
public function setXml($sales_today, $sales_last_day, $sale_current, $rss=false, $version)
public function setXml($sales_today, $sales_last_day, $sale_current, $rss=false, $version, $tomorrow=false)
{
$id_lang = (int) $this->versions[$version];
@ -146,7 +146,7 @@ class Catalog
$sql_title = '
SELECT `title`, `preheader`
FROM `ps_privatesale_newsletter`
WHERE `date_pub` = CURDATE()
WHERE `date_pub` = '.($tomorrow?'CURDATE() + INTERVAL 1 day':'CURDATE()').'
AND `version` = "'.$version.'"'
;
$info_newsletter = Db::getInstance()->getRow($sql_title);