From 689fcb005d5f07a4e2b50fed5e32e29b4511c30b Mon Sep 17 00:00:00 2001 From: TMMeilleur Date: Wed, 4 Dec 2013 10:08:35 +0200 Subject: [PATCH] small fixes --- modules/crossselling/crossselling.php | 4 +- modules/themeconfigurator/views/css/admin.css | 3 +- modules/themeconfigurator/views/js/admin.js | 4 +- .../views/templates/admin/items.tpl | 27 ++- themes/default-bootstrap/css/scenes.css | 162 +++++++----------- themes/default-bootstrap/js/scenes.js | 21 --- themes/default-bootstrap/sass/scenes.scss | 154 +++++++---------- themes/default-bootstrap/scenes.tpl | 34 ++-- 8 files changed, 171 insertions(+), 238 deletions(-) diff --git a/modules/crossselling/crossselling.php b/modules/crossselling/crossselling.php index 5f386cb09..4a50bf463 100755 --- a/modules/crossselling/crossselling.php +++ b/modules/crossselling/crossselling.php @@ -158,7 +158,7 @@ class CrossSelling extends Module $taxCalc = Product::getTaxCalculationMethod(); foreach ($orderProducts AS &$orderProduct) { - $orderProduct['image'] = $this->context->link->getImageLink($orderProduct['link_rewrite'], (int)$orderProduct['product_id'].'-'.(int)$orderProduct['id_image'], ImageType::getFormatedName('medium')); + $orderProduct['image'] = $this->context->link->getImageLink($orderProduct['link_rewrite'], (int)$orderProduct['product_id'].'-'.(int)$orderProduct['id_image'], ImageType::getFormatedName('home')); $orderProduct['link'] = $this->context->link->getProductLink((int)$orderProduct['product_id'], $orderProduct['link_rewrite'], $orderProduct['category'], $orderProduct['ean13']); if (Configuration::get('CROSSSELLING_DISPLAY_PRICE') AND ($taxCalc == 0 OR $taxCalc == 2)) $orderProduct['displayed_price'] = Product::getPriceStatic((int)$orderProduct['product_id'], true, NULL); @@ -215,7 +215,7 @@ class CrossSelling extends Module $taxCalc = Product::getTaxCalculationMethod(); foreach ($orderProducts AS &$orderProduct) { - $orderProduct['image'] = $this->context->link->getImageLink($orderProduct['link_rewrite'], (int)$orderProduct['product_id'].'-'.(int)$orderProduct['id_image'], ImageType::getFormatedName('medium')); + $orderProduct['image'] = $this->context->link->getImageLink($orderProduct['link_rewrite'], (int)$orderProduct['product_id'].'-'.(int)$orderProduct['id_image'], ImageType::getFormatedName('home')); $orderProduct['link'] = $this->context->link->getProductLink((int)$orderProduct['product_id'], $orderProduct['link_rewrite'], $orderProduct['category'], $orderProduct['ean13']); if (Configuration::get('CROSSSELLING_DISPLAY_PRICE') AND ($taxCalc == 0 OR $taxCalc == 2)) $orderProduct['displayed_price'] = Product::getPriceStatic((int)$orderProduct['product_id'], true, NULL); diff --git a/modules/themeconfigurator/views/css/admin.css b/modules/themeconfigurator/views/css/admin.css index f68e3251e..cb1838162 100644 --- a/modules/themeconfigurator/views/css/admin.css +++ b/modules/themeconfigurator/views/css/admin.css @@ -56,7 +56,7 @@ } .lang-items { position:relative; - z-index:0; + z-index:1; background:#f4f4f4; border:1px solid #e9e9e9; margin-top:-1px; @@ -168,3 +168,4 @@ h4.hook-title { .item .displayed_flag, .new-item .displayed_flag { margin:0 0 0 10px; } +.item .normal { font-weight:normal;} \ No newline at end of file diff --git a/modules/themeconfigurator/views/js/admin.js b/modules/themeconfigurator/views/js/admin.js index d2f7a8a02..e092eecc1 100644 --- a/modules/themeconfigurator/views/js/admin.js +++ b/modules/themeconfigurator/views/js/admin.js @@ -4,11 +4,11 @@ jQuery(document).ready(function() { item_container.toggleClass('active').children('.item-container').slideToggle(); }); $('.button-edit').click(function() { - var item_container = $(this).parent('.item'); + var item_container = $(this).parents('.item'); item_container.toggleClass('active').children('.item-container').slideToggle(); }); $('.button-close').click(function() { - var item_container = $(this).parent('.item'); + var item_container = $(this).parents('.item'); item_container.toggleClass('active').children('.item-container').slideToggle(); }); diff --git a/modules/themeconfigurator/views/templates/admin/items.tpl b/modules/themeconfigurator/views/templates/admin/items.tpl index a6a997ddf..2e9f3b19f 100644 --- a/modules/themeconfigurator/views/templates/admin/items.tpl +++ b/modules/themeconfigurator/views/templates/admin/items.tpl @@ -14,12 +14,33 @@