Merge branch 'ticket-blockbestsellerProduct' into develop

This commit is contained in:
Marion Muszynski 2016-06-24 14:03:16 +02:00
commit a72fdf8da2
2 changed files with 7 additions and 4 deletions

View File

@ -100,7 +100,7 @@
width: 65px;
}
#availability_value{
font-size: 1px;
font-size: 10px;
font-weight: 700;
width: 100%;
}
@ -599,11 +599,11 @@
{literal}
$( document ).ready(function() {
$('#add_to_cart_product_footer').click(function(){
$(this).remove();
$(this).hide();
var idProduct = $('#buy_block_footer input[name="id_product"]').val();
var idAttribute = $('#buy_block_footer input[name="id_product_attribute"]').val();
var quantity = $('#buy_block_footer #quantity_wanted').val();
if ($(this).attr('disabled') != 'disabled'){
var quantity = $('#buy_block_footer #quantity_wanted').val();
if ($(this).attr('disabled') != 'disabled' && $('#buy_block_footer #quantity_wanted:visible').length > 0){
$.ajax({
type: 'POST',
url: baseDir + 'cart.php',

View File

@ -160,6 +160,7 @@ function updateDisplay()
//show the "add to cart" button ONLY if it was hidden
$('#add_to_cart:hidden').fadeIn(600);
$('#add_to_cart_product_footer:hidden').fadeIn(600);
//hide the hook out of stock
$('#oosHook').hide();
@ -239,6 +240,7 @@ function updateDisplay()
if (allowBuyWhenOutOfStock && !selectedCombination['unavailable'] && productAvailableForOrder == 1)
{
$('#add_to_cart:hidden').fadeIn(600);
$('#add_to_cart_product_footer:hidden').fadeIn(600);
if (availableLaterValue != '')
{
@ -251,6 +253,7 @@ function updateDisplay()
else
{
$('#add_to_cart:visible').fadeOut(600);
$('#add_to_cart_product_footer:visible').fadeOut(600);
$('p#availability_statut:hidden').show('slow');
}