Comments (10)
okay, I'm gonna try to figure it out. I'll give you feedback on the results.
from magento-react-native.
hi @sidneylopes,
I don't really understand what do you mean by old cart still appears
. Why do you need a new cart after buy?
- Can you share a video with the issue?
- Did you reproduce this issue with a clean copy of the current
master
branch of this repository?
from magento-react-native.
I won't be able to reproduce it on a fresh copy because, in my version of the app, I need extra payment info to go through with the purchase. Can I record it on my copy?
from magento-react-native.
@sidneylopes ok, show what you have.
from magento-react-native.
Here it is:
https://drive.google.com/file/d/1iQ6PgBXEbZ7S0dab82ot3XKJ-Wc6duli/view?usp=sharing
from magento-react-native.
PS: If I restart the app, the cart goes back to empty
from magento-react-native.
@sidneylopes
There is this.props.getCart();
in the CheckoutTotals.js
. It's supposed to refresh cart data. Try to take look there and check why it's not happening.
// src/components/checkout/CheckoutTotals.js
showPopup(title, message) {
this.props.checkoutSetActiveSection(1);
this.props.getCart();
// this.props.checkoutOrderPopupShown();
Alert.alert(
title,
message,
[{ text: translate('common.ok'), onPress: () => this.goHome() }],
{ cancelable: false },
);
}
from magento-react-native.
I have the function, but I don't know why the cart doesn't reset
from magento-react-native.
@sidneylopes sure. It's where developer daily life starts. You should start to debug this functionality. Go to the getCart
and check each line and variable and try to understand if it's working as expected.
from magento-react-native.
probably solve the issue f91d3af
from magento-react-native.
Related Issues (20)
- Error messages HOT 9
- Products HOT 11
- Cupon problem HOT 8
- Product filter HOT 11
- Signup Loading Forever HOT 2
- Problems when adding an address HOT 2
- AppRegistry HOT 2
- Getting issue after the app has started HOT 14
- i cant see description of product , but only name and price HOT 2
- issue faced HOT 1
- BUILD FAILED in 30s
- #<WeakSet> could not be cloned. HOT 8
- I found new issue on react native 17.0.1 HOT 1
- After register firstname returns error HOT 11
- Empty values for Country and Region on address page and checkou HOT 2
- Issues on running app HOT 4
- Issue on running ios app
- npm install not working fine HOT 1
- Unable to install app on android devices HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento-react-native.