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 and improve shopping cart #9348
Conversation
britlog
commented
Jun 18, 2017
•
edited
edited
- Fix login page redirect when putting product in cart
- Products ordered by item name (after weightage)
- Fix shopping cart crash when removing the last product from cart
- Don't display tax in cart if amount is zero
- Translations
@britlog thanks for the PR. Can you add an animated GIF to show that this works. Since the users are concerned about stability, we want to ensure that user testing is done at your end. You can use LiceCAP to take an animated GIF. Please re-open when done |
@rmehta Done, but I can't reopen it because it was not closed by myself, could you please do it ? Thanks |
Thanks! The strawberries look delicious 🍓 |
Pull Request SummaryImage or animted GIF Not AddedPlease add an image or animated GIF as proof that you have manually tested this contribution. Hint: use LiceCAP to capture animated GIFs. Test Case Not Added / UpdatedSince you have changed a Python file, you must update the relevant python test case. If there is no test coverage for this code, then please add it. Result
This summary was automatically generated based on this script |
erpnext/public/js/shopping_cart.js
Outdated
@@ -36,7 +36,6 @@ $.extend(shopping_cart, { | |||
}, | |||
|
|||
update_cart: function(opts) { | |||
var full_name = frappe.session.user_fullname; |
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.
this is important, as per the new develop branch (frappe), we have reduced the use of globals. Please check.
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.
I 've noticed frappe.session.user_fullname was empty, so i just revert to the last version which worked but indeed use global. Thanks for review.
erpnext/public/js/shopping_cart.js
Outdated
|
||
if(!full_name || full_name==="Guest") { | ||
update_cart: function(opts) { | ||
if(fraappe.session.user==="Guest") { |
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.
There is a typing error on frappe word if(fraappe.session.user==="Guest")
Thanks fixed.
… On 20-Jun-2017, at 1:29 PM, Britlog ***@***.***> wrote:
@britlog commented on this pull request.
In erpnext/public/js/shopping_cart.js <#9348 (comment)>:
> @@ -35,10 +35,8 @@ $.extend(shopping_cart, {
});
},
- update_cart: function(opts) {
- var full_name = frappe.session && frappe.session.user_fullname;
-
- if(!full_name || full_name==="Guest") {
+ update_cart: function(opts) {
+ if(fraappe.session.user==="Guest") {
There is a typing error on frappe word if(fraappe.session.user==="Guest")
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub <#9348 (review)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAIjLI6weHDc1f319vaCjHhBhb3ZNSvNks5sF3v2gaJpZM4N9mka>.
|
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.
Ok