Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------- themes/default-bootstrap/js/modules/blockcart/ajax-cart.js ----------
- index 282c324..e4fcf5b 100644
- @@ -576,8 +576,8 @@ var ajaxCart = {
- var productAttributeId = (this.hasAttributes ? parseInt(this.attributes) : 0);
- var content = '<dt class="unvisible" data-id="cart_block_product_' + domIdProduct + '">';
- var name = $.trim($('<span />').html(this.name).text());
- - name = (name.length > 12 ? name.substring(0, 10) + '...' : name);
- - content += '<a class="cart-images" href="' + this.link + '" title="' + name + '"><img src="' + this.image_cart + '" alt="' + this.name +'"></a>';
- + name = (name.length > 12 ? name.substring(0, 35) + '...' : name);
- + content += '<a class="cart-images" href="' + this.link + '" title="' + name + '"><img src="' + (isSecure() ? this.image_cart : this.image_cart.replace('https', 'http')) + '" alt="' + this.name +'"></a>';
- content += '<div class="cart-info"><div class="product-name">' + '<span class="quantity-formated"><span class="quantity">' + this.quantity + '</span> x </span><a href="' + this.link + '" title="' + this.name + '" class="cart_block_product_name">' + name + '</a></div>';
- if (this.hasAttributes)
- content += '<div class="product-atributes"><a href="' + this.link + '" title="' + this.name + '">' + this.attributes + '</a></div>';
- @@ -702,7 +702,7 @@ var ajaxCart = {
- $('#layer_cart_product_attributes').html(product.attributes);
- $('#layer_cart_product_price').text(product.price);
- $('#layer_cart_product_quantity').text(product.quantity);
- - $('.layer_cart_img').html('<img class="layer_cart_img img-responsive" src="' + product.image + '" alt="' + product.name + '" title="' + product.name + '" />');
- + $('.layer_cart_img').html('<img class="layer_cart_img img-responsive" src="' + (isSecure() ? product.image : product.image.replace('https', 'http')) + '" alt="' + product.name + '" title="' + product.name + '" />');
- var n = parseInt($(window).scrollTop()) + 'px';
- @@ -815,6 +815,11 @@ var ajaxCart = {
- }
- };
- +function isSecure()
- +{
- + return location.protocol == 'https:';
- +}
- +
- function HoverWatcher(selector)
- {
- this.hovering = false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement