Merge remote-tracking branch 'origin/development' into development
This commit is contained in:
commit
a1555c3fc8
4 files changed
+8
-7
No files matched your search
@@ -48,11 +48,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$("#group_discount_category").fancybox({
|
$("#group_discount_category").fancybox({
|
||||||
onStart: function () {
|
beforeLoad: function () {
|
||||||
$('#group_discount_category_fancybox').show();
|
$('#group_discount_category_fancybox').show();
|
||||||
initFancyBox();
|
initFancyBox();
|
||||||
},
|
},
|
||||||
onClosed: function () {
|
beforeClose: function () {
|
||||||
$('#group_discount_category_fancybox').hide();
|
$('#group_discount_category_fancybox').hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
+2
-1
@@ -2468,8 +2468,9 @@ class ProductCore extends ObjectModel
|
|||||||
|
|
||||||
if (!Validate::isBool($usetax) || !Validate::isUnsignedId($id_product))
|
if (!Validate::isBool($usetax) || !Validate::isUnsignedId($id_product))
|
||||||
die(Tools::displayError());
|
die(Tools::displayError());
|
||||||
|
|
||||||
// Initializations
|
// Initializations
|
||||||
$id_group = (isset($context->customer) ? $context->customer->id_default_group : (int)Configuration::get('PS_CUSTOMER_GROUP'));
|
$id_group = (int)Group::getCurrent()->id;
|
||||||
|
|
||||||
// If there is cart in context or if the specified id_cart is different from the context cart id
|
// If there is cart in context or if the specified id_cart is different from the context cart id
|
||||||
if (!is_object($cur_cart) || (Validate::isUnsignedInt($id_cart) && $id_cart && $cur_cart->id != $id_cart))
|
if (!is_object($cur_cart) || (Validate::isUnsignedInt($id_cart) && $id_cart && $cur_cart->id != $id_cart))
|
||||||
|
|||||||
@@ -1771,7 +1771,7 @@ class BlockLayered extends Module
|
|||||||
$root_category = array('id_category' => '0', 'name' => $this->l('Root'));
|
$root_category = array('id_category' => '0', 'name' => $this->l('Root'));
|
||||||
|
|
||||||
$helper = new Helper();
|
$helper = new Helper();
|
||||||
$html .= $helper->renderCategoryTree(null, $selected_cat, 'categoryBox');
|
$html .= $helper->renderCategoryTree(null, $selected_cat, 'categoryBox', false, false, array(), true);
|
||||||
|
|
||||||
$html .= '
|
$html .= '
|
||||||
<br />
|
<br />
|
||||||
@@ -1930,7 +1930,7 @@ class BlockLayered extends Module
|
|||||||
|
|
||||||
$(\'label a#inline\').fancybox({
|
$(\'label a#inline\').fancybox({
|
||||||
\'hideOnContentClick\': false,
|
\'hideOnContentClick\': false,
|
||||||
\'onClosed\': function() {
|
\'beforeClose\': function() {
|
||||||
lock_treeview_hidding = false;
|
lock_treeview_hidding = false;
|
||||||
$(\'#categories-treeview\').parent().parent().hide();
|
$(\'#categories-treeview\').parent().parent().hide();
|
||||||
updCatCounter();
|
updCatCounter();
|
||||||
|
|||||||
@@ -766,7 +766,7 @@ function multishippingMode(it)
|
|||||||
'transitionIn': 'elastic',
|
'transitionIn': 'elastic',
|
||||||
'transitionOut': 'elastic',
|
'transitionOut': 'elastic',
|
||||||
'type': 'ajax',
|
'type': 'ajax',
|
||||||
'onClosed': function()
|
'beforeClose': function()
|
||||||
{
|
{
|
||||||
// Reload the cart
|
// Reload the cart
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@@ -783,7 +783,7 @@ function multishippingMode(it)
|
|||||||
});
|
});
|
||||||
updateCarrierSelectionAndGift();
|
updateCarrierSelectionAndGift();
|
||||||
},
|
},
|
||||||
'onStart': function()
|
'beforeLoad': function()
|
||||||
{
|
{
|
||||||
// Removing all ids on the cart to avoid conflic with the new one on the fancybox
|
// Removing all ids on the cart to avoid conflic with the new one on the fancybox
|
||||||
// This action could "break" the cart design, if css rules use ids of the cart
|
// This action could "break" the cart design, if css rules use ids of the cart
|
||||||
|
|||||||
Reference in new issue
Block a user