-
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
Fix inventory messages when nereid_catalog_variants is present #7571 #363
Conversation
// Remove the disabled attribute from the buy now button. | ||
$('#buy-now-btn').removeAttr('disabled'); | ||
} else { | ||
statusClass = 'danger'; |
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.
Add disabled
Attr to buy button
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.
Done.
7196e70
to
544ebf0
Compare
LGTM |
|
||
if purpose == 'variant_selection': | ||
res.update({ | ||
'inventory_status': self.inventory_status(), |
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.
if this method is in nereid-catalog-variant then this implementation should be there only.
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.
nereid-catalog-variants is not dependent on nereid-cart-b2c. Hence the serialize
method had to be overriden here itself.
* Also fixed jinja portion for color consistency * Tested that serialize works with catalog-variants present
544ebf0
to
9584b92
Compare
Fix inventory messages when nereid_catalog_variants is present #7571
No description provided.