From 6bea0782e9da4a7c824e2eebbd6dfd7be7f47096 Mon Sep 17 00:00:00 2001
From: sThiebaut
Date: Mon, 5 Dec 2011 17:22:27 +0000
Subject: [PATCH] git-svn-id:
http://dev.prestashop.com/svn/v1/branches/1.5.x@10953
b9a71923-0436-4b27-9f14-aed3839534dd
---
themes/default/css/global.css | 6 ++++++
themes/default/css/product.css | 5 ++++-
themes/default/css/product_list.css | 5 +++++
themes/default/js/product.js | 6 +++---
themes/default/product-list.tpl | 16 ++++++++--------
themes/default/product-sort.tpl | 1 -
themes/default/product.tpl | 7 ++++---
7 files changed, 30 insertions(+), 16 deletions(-)
diff --git a/themes/default/css/global.css b/themes/default/css/global.css
index c5501473b..97be508e0 100644
--- a/themes/default/css/global.css
+++ b/themes/default/css/global.css
@@ -547,6 +547,12 @@ div.star_hover a, div.star a:hover { background-position: 0 -32px }
#footer li {padding:7px 0}
#footer li a {color:#fff}
+#footer .myaccount {padding: 15px 10px;}
+#footer .myaccount h4 {
+ padding:0 0 10px 0;
+ background:none;
+}
+
/* ************************************************************************************************
PRODUCT PAGE
************************************************************************************************ */
diff --git a/themes/default/css/product.css b/themes/default/css/product.css
index 1e347ef61..f3c9c3b68 100644
--- a/themes/default/css/product.css
+++ b/themes/default/css/product.css
@@ -151,10 +151,11 @@ span.view_scroll_spacer {
padding:1px;
border:1px solid #ccc
}
+.attribute_list #color_to_pick_list li.selected{border:1px solid #000}
.attribute_list #color_to_pick_list a.color_pick{
display:block;
height:15px;
- width:15px
+ width:15px;
}
.product_attributes {
@@ -198,6 +199,8 @@ span.view_scroll_spacer {
/* prices */
.content_prices {
margin-top:10px;
+ padding-top:10px;
+ border-top:1px solid #ccc;
text-align:right
}
#buy_block p.price {padding:0}
diff --git a/themes/default/css/product_list.css b/themes/default/css/product_list.css
index b532ec09b..1c426529c 100644
--- a/themes/default/css/product_list.css
+++ b/themes/default/css/product_list.css
@@ -102,6 +102,11 @@ ul#product_list {
text-transform: uppercase;
background: none repeat scroll 0 0 #9B0000
}
+ #product_list li .online_only {
+ position:absolute;
+ top:20px;
+ right:0;
+ }
#product_list li .content_price {
margin:26px 0 15px 0;
}
diff --git a/themes/default/js/product.js b/themes/default/js/product.js
index 12604a611..c125e3df3 100644
--- a/themes/default/js/product.js
+++ b/themes/default/js/product.js
@@ -306,7 +306,7 @@ function updateDisplay()
if (selectedCombination['specific_price'].reduction_type == 'percentage')
{
$('#reduction_amount').hide();
- $('#reduction_percent_display').html('-' + selectedCombination['specific_price'].reduction*100 + '%');
+ $('#reduction_percent_display').html('-' + parseFloat(selectedCombination['specific_price'].reduction_percent) + '%');
$('#reduction_percent').show();
} else if (selectedCombination['specific_price'].reduction_type == 'amount') {
$('#reduction_percent').hide();
@@ -584,11 +584,11 @@ function checkMinimalQuantity(minimal_quantity)
function colorPickerClick(elt)
{
id_attribute = $(elt).attr('id').replace('color_', '');
- $('.color_pick').removeClass('selected');
+ $('.color_pick').parent().removeClass('selected');
$(elt).fadeTo('fast', 1, function(){
$(this).fadeTo('slow', 0, function(){
$(this).fadeTo('slow', 1, function(){
- $(this).addClass('selected');
+ $(this).parent().addClass('selected');
});
});
});
diff --git a/themes/default/product-list.tpl b/themes/default/product-list.tpl
index 93ad243b9..396f3f7ef 100644
--- a/themes/default/product-list.tpl
+++ b/themes/default/product-list.tpl
@@ -38,8 +38,11 @@
{/if}
@@ -55,17 +58,14 @@
{if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE}
{if ($product.allow_oosp || $product.quantity > 0)}
{if isset($static_token)}
-
{l s='Add to cart'}
+
{l s='Add to cart'}
{else}
-
{l s='Add to cart'}
+
{l s='Add to cart'}
{/if} {else}
{l s='Add to cart'}
{/if}
{/if}
-
{l s='View'}
- {if isset($comparator_max_item) && $comparator_max_item}
-
{l s='Select to compare'}
- {/if}
+
{l s='View'}
{/foreach}
diff --git a/themes/default/product-sort.tpl b/themes/default/product-sort.tpl
index 95d3e4888..2c8260ae4 100644
--- a/themes/default/product-sort.tpl
+++ b/themes/default/product-sort.tpl
@@ -66,7 +66,6 @@ $(document).ready(function()
{l s='In-stock first'}
{/if}
- {l s='Sort by'}
diff --git a/themes/default/product.tpl b/themes/default/product.tpl
index a81c47819..a3da4140c 100644
--- a/themes/default/product.tpl
+++ b/themes/default/product.tpl
@@ -350,6 +350,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus
quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='items in stock'}
{/if}
+
quantity > 0} style="display: none;"{/if}>
{$HOOK_PRODUCT_OOS}
@@ -377,9 +378,9 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus
{if $priceDisplay >= 0 && $priceDisplay <= 2}
{convertPrice price=$productPrice}
-
+
{/if}