-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added tooltip when product is already added in cart #7727 #372
Conversation
@@ -466,8 +466,14 @@ | |||
$.each(lines, function(index, line) { | |||
$(".product-" + line.product.id + "-buy-now-btn") | |||
.attr('disabled', 'disabled'); | |||
var disable_check=$('.product-buy-now').prop('disabled') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
;
1 similar comment
@@ -466,8 +466,14 @@ | |||
$.each(lines, function(index, line) { | |||
$(".product-" + line.product.id + "-buy-now-btn") | |||
.attr('disabled', 'disabled'); | |||
var disable_check=$('.product-buy-now').prop('disabled'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isDisabled?
LGTM. |
5be6d71
to
f565313
Compare
1 similar comment
.done(function(result){ | ||
$(".cart-message").removeClass("hidden").show().delay(3000).fadeOut(); | ||
$(".cart-add-msg").html(function() { | ||
return '<div class="col-sm-5">' + '<img class="img-responsive"' + "src=" + result.line.image + ">" + "</div>" + '<div class="col-sm-7">' + "<p>" + result.line.display_name + "<br>" + "added to your cart" + "</p>" + "</div>"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use underscore js template. which is already being used in rendering cart dropdown
cd6318a
to
6c08a66
Compare
c6ec7c1
to
7e379c3
Compare
.done(function(result){ | ||
$(".cart-message").removeClass("hidden").show(); | ||
var template = $("#cart-message").html(); | ||
$(".cart-add-msg").html(_.template(template, {'result': result})); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line
: result.line
Added tooltip when product is already added in cart #7727
No description provided.