Jump to content

MajkisMikiman

Members
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • First Name
    Michal
  • Last Name
    Farnik

Recent Profile Visitors

1,812 profile views

MajkisMikiman's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Dobrý den. Bez problémů Vám pomohu. Zkušeností a znalosti s prestashop mám dosti. Nejvíce s verzí 1.6.x a novou 1.7.x. Pokud Váš zájem trvá neváhejte mě kontaktorvat . mail: [email protected]
  2. I've just tried all the possibilities of the business and everything works perfectly without problems. Please describe your problem in more detail and I will try to edit the feature. Just add that I tested everything in version 1.6.1.11 I know it's not just about Ajax, but I needed to fix it. That's why I used this solution. Just to get something out of it. I´m sorry for my english.
  3. Hello. He came to the state-of-the-art upgrade solution. In the themes / your_theme / js / cart-summary.js file, find function upQuantity (id, qty) at line 578 For this function, complete the following function after the closed race: function updateCartAvailability(json) { var i; var product_list = new Array(); if (typeof json == 'undefined') return; $('div.error').fadeOut(); for (i=0;i<json.products.length;i++) product_list[json.products[i].id_product + '_' + json.products[i].id_product_attribute + '_' + json.products[i].id_address_delivery] = json.products[i]; for (i in product_list) { var key_for_blockcart_nocustom = product_list[i].id_product + '_' + product_list[i].id_product_attribute + '_' + ((product_list[i].quantity_without_customization != product_list[i].quantity)? 'nocustom' : '0') + '_' + product_list[i].id_address_delivery; if (product_list[i].quantity_available - product_list[i].cart_quantity >= 0) { $('#product_' + key_for_blockcart_nocustom + ' .cart_ref').html('<span class="availableown">{l s='In Stock'}</span>'); } else if (product_list[i].quantity_available - product_list[i].cart_quantity < 0 && product_list[i].allow_oosp) { $('#product_' + key_for_blockcart_nocustom + ' .cart_ref').html('<span class="backorderedown">{l s='%d backordered' sprintf=$product.cart_quantity - $product.quantity_available}</span>'); } else if (product_list[i].quantity_available - product_list[i].cart_quantity < 0 && !product_list[i].allow_oosp) { $('#product_' + key_for_blockcart_nocustom + ' .cart_ref').html('<span class="availableown">{l s='Out of stock'}</span>'); } } } I´m sorry for ma english.
×
×
  • Create New...