diff --git a/controllers/front/CompareController.php b/controllers/front/CompareController.php index d88826c8d..09f819c5a 100644 --- a/controllers/front/CompareController.php +++ b/controllers/front/CompareController.php @@ -138,9 +138,10 @@ class CompareControllerCore extends FrontController 'product_features' => $listFeatures, 'products' => $listProducts, 'width' => $width, + 'HOOK_COMPARE_EXTRA_INFORMATION' => Hook::exec('displayCompareExtraInformation', array('list_ids_product' => $ids)), + 'HOOK_EXTRA_PRODUCT_COMPARISON' => Hook::exec('displayProductComparison', array('list_ids_product' => $ids)), 'homeSize' => Image::getSize(ImageType::getFormatedName('home')) )); - $this->context->smarty->assign('HOOK_EXTRA_PRODUCT_COMPARISON', Hook::exec('displayProductComparison', array('list_ids_product' => $ids))); } elseif (isset($this->context->cookie->id_compare)) { diff --git a/themes/default-bootstrap/css/comparator.css b/themes/default-bootstrap/css/comparator.css index 3715b7e0c..44642a120 100644 --- a/themes/default-bootstrap/css/comparator.css +++ b/themes/default-bootstrap/css/comparator.css @@ -20,7 +20,7 @@ table#product_comparison tbody tr td.comparison_infos div.center { table#product_comparison tbody tr td.td_empty { vertical-align: bottom; } -table#product_comparison tbody tr td.td_empty span { +table#product_comparison tbody tr td.td_empty > span { font: 600 18px/22px "Open Sans", sans-serif; text-transform: uppercase; color: #555454; @@ -95,6 +95,51 @@ table#product_comparison .product-rating { margin-bottom: 20px; } +#stOCClose { + width: 29px !important; + height: 29px !important; +} + +.stButton .stFb, .stButton .stTwbutton, .stButton .stMainServices { + height: 22px !important; +} + +.stButton .stButton_gradient { + height: 22px !important; +} + +@media (min-width: 1200px) { + .share { + margin-bottom: 315px; + } +} +@media (min-width: 992px) and (max-width: 1199px) { + .share { + margin-bottom: 315px; + } +} +@media (min-width: 768px) and (max-width: 991px) { + .share { + margin-bottom: 315px; + } +} +.share strong { + display: block; + margin-bottom: 10px; +} + +.share > div { + margin-bottom: 8px; +} + +.stArrow { + display: none !important; +} + +.stButton { + margin-left: 0 !important; +} + #product_comparison .comparison_feature .product_name { display: none; } diff --git a/themes/default-bootstrap/products-comparison.tpl b/themes/default-bootstrap/products-comparison.tpl index 9ad6999e9..a45c33f07 100644 --- a/themes/default-bootstrap/products-comparison.tpl +++ b/themes/default-bootstrap/products-comparison.tpl @@ -37,7 +37,8 @@
- {assign var='taxes_behavior' value=false} diff --git a/themes/default-bootstrap/sass/comparator.scss b/themes/default-bootstrap/sass/comparator.scss index 811593a8a..e168cee7f 100644 --- a/themes/default-bootstrap/sass/comparator.scss +++ b/themes/default-bootstrap/sass/comparator.scss @@ -30,11 +30,11 @@ table#product_comparison { td.td_empty { vertical-align:bottom; - span { + > span { font:600 18px/22px $font-custom; text-transform:uppercase; color:#555454; - } + } } } } @@ -110,8 +110,46 @@ table#product_comparison { width:auto; } .footer_link { margin-bottom:20px;} - - +#stOCClose { + width:29px !important; + height:29px !important; +} +.stButton .stFb, .stButton .stTwbutton, .stButton .stMainServices { + height:22px !important; +} +.stButton .stButton_gradient { + height:22px !important; +} +@media (min-width: $screen-lg) { // min 1200px + .share { + margin-bottom:315px; + } +} +@media (min-width: $screen-md) and (max-width: $screen-md-max) { // min 992px max 1199px + .share { + margin-bottom:315px; + } +} +@media (min-width: $screen-sm) and (max-width: $screen-sm-max) { // min 768px max 991px + .share { + margin-bottom:315px; + } +} +.share { + strong { + display:block; + margin-bottom:10px; + } +} +.share > div { + margin-bottom:8px; +} +.stArrow { + display:none !important; +} +.stButton { + margin-left:0 !important; +} #product_comparison{ .comparison_feature{ .product_name{display: none;}
+ + {$HOOK_COMPARE_EXTRA_INFORMATION} {l s='Features:'}