Merge branch 'development' of https://github.com/PrestaShop/PrestaShop into development
This commit is contained in:
commit
5562b5ac92
5 files changed
+30
-13
No files matched your search
@@ -72,6 +72,10 @@ class ProductSaleCore
|
|||||||
$sql_groups = (count($groups) ? 'IN ('.implode(',', $groups).')' : '= 1');
|
$sql_groups = (count($groups) ? 'IN ('.implode(',', $groups).')' : '= 1');
|
||||||
$interval = Validate::isUnsignedInt(Configuration::get('PS_NB_DAYS_NEW_PRODUCT')) ? Configuration::get('PS_NB_DAYS_NEW_PRODUCT') : 20;
|
$interval = Validate::isUnsignedInt(Configuration::get('PS_NB_DAYS_NEW_PRODUCT')) ? Configuration::get('PS_NB_DAYS_NEW_PRODUCT') : 20;
|
||||||
|
|
||||||
|
$prefix = '';
|
||||||
|
if ($order_by == 'date_add')
|
||||||
|
$prefix = 'p.';
|
||||||
|
|
||||||
$sql = 'SELECT p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity,
|
$sql = 'SELECT p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity,
|
||||||
pl.`description`, pl.`description_short`, pl.`link_rewrite`, pl.`meta_description`,
|
pl.`description`, pl.`description_short`, pl.`link_rewrite`, pl.`meta_description`,
|
||||||
pl.`meta_keywords`, pl.`meta_title`, pl.`name`,
|
pl.`meta_keywords`, pl.`meta_title`, pl.`name`,
|
||||||
@@ -104,7 +108,7 @@ class ProductSaleCore
|
|||||||
WHERE cg.`id_group` '.$sql_groups.'
|
WHERE cg.`id_group` '.$sql_groups.'
|
||||||
)
|
)
|
||||||
GROUP BY product_shop.id_product
|
GROUP BY product_shop.id_product
|
||||||
ORDER BY `'.pSQL($order_by).'` '.pSQL($order_way).'
|
ORDER BY '.$prefix.'`'.pSQL($order_by).'` '.pSQL($order_way).'
|
||||||
LIMIT '.(int)($page_number * $nb_products).', '.(int)$nb_products;
|
LIMIT '.(int)($page_number * $nb_products).', '.(int)$nb_products;
|
||||||
|
|
||||||
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
|
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
|
||||||
|
|||||||
@@ -43,13 +43,17 @@ class InstallSession
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
session_name('install_'.md5(__PS_BASE_URI__));
|
session_name('install_'.md5(__PS_BASE_URI__));
|
||||||
if (!session_start()
|
if (!($session_started = session_start())
|
||||||
|| (!isset($_SESSION['session_mode']) && (isset($_POST['submitNext']) || isset($_POST['submitPrevious']) || isset($_POST['language']))))
|
|| (!isset($_SESSION['session_mode']) && (isset($_POST['submitNext']) || isset($_POST['submitPrevious']) || isset($_POST['language']))))
|
||||||
{
|
{
|
||||||
InstallSession::$_cookie_mode = true;
|
InstallSession::$_cookie_mode = true;
|
||||||
InstallSession::$_cookie = new Cookie('ps_install', null, time() + 7200, null, true);
|
InstallSession::$_cookie = new Cookie('ps_install', null, time() + 7200, null, true);
|
||||||
}
|
}
|
||||||
$_SESSION['session_mode'] = 'session';
|
if ($session_started && !isset($_SESSION['session_mode']))
|
||||||
|
{
|
||||||
|
$_SESSION['session_mode'] = 'session';
|
||||||
|
session_write_close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function clean()
|
public function clean()
|
||||||
|
|||||||
@@ -43,12 +43,11 @@ a {cursor:pointer;}
|
|||||||
width:990px;
|
width:990px;
|
||||||
background :#fff;
|
background :#fff;
|
||||||
}
|
}
|
||||||
#header {
|
#header {
|
||||||
padding:6px 16px 16px 16px;
|
padding:6px 16px 16px 16px;
|
||||||
height:68px;/* 90 */
|
height:50px;
|
||||||
background:#394049;
|
background:#394049;
|
||||||
}
|
}
|
||||||
|
|
||||||
#loaderSpace{
|
#loaderSpace{
|
||||||
display:none;
|
display:none;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
@@ -77,7 +76,7 @@ div#leftpannel{
|
|||||||
div#sheets {
|
div#sheets {
|
||||||
float:left;
|
float:left;
|
||||||
margin-top:65px;
|
margin-top:65px;
|
||||||
min-height:400px;
|
min-height:360px;
|
||||||
width:700px;
|
width:700px;
|
||||||
background-color:#fff;
|
background-color:#fff;
|
||||||
}
|
}
|
||||||
@@ -93,7 +92,7 @@ div#leftpannel{
|
|||||||
div#buttons{
|
div#buttons{
|
||||||
clear:both;
|
clear:both;
|
||||||
margin:0 0 0 295px;
|
margin:0 0 0 295px;
|
||||||
height:70px;
|
height:60px;
|
||||||
width:650px;
|
width:650px;
|
||||||
}
|
}
|
||||||
* html div#buttons {
|
* html div#buttons {
|
||||||
@@ -407,7 +406,7 @@ ul#footer a:link, ul#footer a:active, ul#footer a:visited {
|
|||||||
}
|
}
|
||||||
.sheet .contentTitle {
|
.sheet .contentTitle {
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:90px;
|
top:72px;
|
||||||
left:0;
|
left:0;
|
||||||
padding:15px 25px 10px 38px;
|
padding:15px 25px 10px 38px;
|
||||||
height:28px;/* 53 */
|
height:28px;/* 53 */
|
||||||
|
|||||||
@@ -39,11 +39,13 @@
|
|||||||
<li class="lnk_forum"><a href="<?php echo $this->getSupportLink() ?>" target="_blank"><?php echo $this->l('Support') ?></a></li>
|
<li class="lnk_forum"><a href="<?php echo $this->getSupportLink() ?>" target="_blank"><?php echo $this->l('Support') ?></a></li>
|
||||||
<li class="lnk_forum"><a href="<?php echo $this->getDocumentationLink() ?>" target="_blank"><?php echo $this->l('Documentation') ?></a></li>
|
<li class="lnk_forum"><a href="<?php echo $this->getDocumentationLink() ?>" target="_blank"><?php echo $this->l('Documentation') ?></a></li>
|
||||||
<li class="lnk_blog last"><a href="<?php echo $this->getBlogLink() ?>" target="_blank"><?php echo $this->l('Blog') ?></a></li>
|
<li class="lnk_blog last"><a href="<?php echo $this->getBlogLink() ?>" target="_blank"><?php echo $this->l('Blog') ?></a></li>
|
||||||
|
<!--
|
||||||
<?php if ($this->getPhone()): ?>
|
<?php if ($this->getPhone()): ?>
|
||||||
<li id="phone_block" class="last">
|
<li id="phone_block" class="last">
|
||||||
<div><span><?php echo $this->l('Contact us!') ?></span><br /><?php echo $this->getPhone() ?></div>
|
<div><span><?php echo $this->l('Contact us!') ?></span><br /><?php echo $this->getPhone() ?></div>
|
||||||
</li>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
-->
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div id="PrestaShopLogo">PrestaShop</div>
|
<div id="PrestaShopLogo">PrestaShop</div>
|
||||||
@@ -69,6 +71,12 @@
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ol>
|
</ol>
|
||||||
|
<?php if (@fsockopen('api.prestashop.com', 80, $errno, $errst, 3)): ?>
|
||||||
|
<iframe scrolling="no" style="height:200px;width:160px;border:none;margin-top:20px"
|
||||||
|
src="https://api.prestashop.com/iframe/install.php?step=<?php echo $this->step ?>&lang=<?php echo $this->language->getLanguageIso() ?>&country=<?php echo $this->session->shop_country ?>">
|
||||||
|
<p><?php echo $this->l('Contact us!') ?><br /><?php echo $this->getPhone() ?></p>
|
||||||
|
</iframe>
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Page content -->
|
<!-- Page content -->
|
||||||
@@ -85,5 +93,5 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<noscript>
|
<noscript>
|
||||||
<h3 class="errorBlock" style="margin-bottom:10px"><?php echo $this->l('To install PrestaShop, you need to have JavaScript enabled in your browser.') ?></h3>
|
<h3 class="errorBlock" style="margin-bottom:10px"><?php echo $this->l('To install PrestaShop, you need to have JavaScript enabled in your browser.') ?> <a href="<?php echo $this->l('http://doc.prestashop.com/display/PS15/What+you+need+to+get+started#HowtoenableJavaScript-HowtoenableJavaScript') ?>" target="_blank"><img src="theme/img/help.png" /></a></h3>
|
||||||
</noscript>
|
</noscript>
|
||||||
@@ -10,9 +10,11 @@
|
|||||||
<div>
|
<div>
|
||||||
<input type="checkbox" id="set_license" class="required" name="licence_agrement" value="1" style="vertical-align: middle;float:left" <?php if ($this->session->licence_agrement): ?>checked="checked"<?php endif; ?> />
|
<input type="checkbox" id="set_license" class="required" name="licence_agrement" value="1" style="vertical-align: middle;float:left" <?php if ($this->session->licence_agrement): ?>checked="checked"<?php endif; ?> />
|
||||||
<div style="float:left;width:600px;margin-left:8px"><label for="set_license"><strong><?php echo $this->l('I agree to the above terms and conditions.') ?></strong></label></div>
|
<div style="float:left;width:600px;margin-left:8px"><label for="set_license"><strong><?php echo $this->l('I agree to the above terms and conditions.') ?></strong></label></div>
|
||||||
|
<!--
|
||||||
<br />
|
<br />
|
||||||
<input type="checkbox" id="configuration_agrement" name="configuration_agrement" value="1" style="vertical-align: middle;float:left" <?php if ($this->session->configuration_agrement): ?>checked="checked"<?php endif; ?> />
|
<input type="checkbox" id="configuration_agrement" name="configuration_agrement" value="1" style="vertical-align: middle;float:left" <?php if ($this->session->configuration_agrement): ?>checked="checked"<?php endif; ?> />
|
||||||
<div style="float:left;width:600px;margin-left:8px"><label for="configuration_agrement"><strong><?php echo $this->l('I agree to participate in improving the solution by sending anonymous information about my configuration.') ?></strong></label></div>
|
<div style="float:left;width:600px;margin-left:8px"><label for="configuration_agrement"><strong><?php echo $this->l('I agree to participate in improving the solution by sending anonymous information about my configuration.') ?></strong></label></div>
|
||||||
|
-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php $this->displayTemplate('footer') ?>
|
<?php $this->displayTemplate('footer') ?>
|
||||||
Reference in new issue
Block a user