Giter Club home page Giter Club logo

Comments (10)

sidneylopes avatar sidneylopes commented on August 17, 2024 1

okay, I'm gonna try to figure it out. I'll give you feedback on the results.

from magento-react-native.

dimaportenko avatar dimaportenko commented on August 17, 2024

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?

  1. Can you share a video with the issue?
  2. Did you reproduce this issue with a clean copy of the current master branch of this repository?

from magento-react-native.

sidneylopes avatar sidneylopes commented on August 17, 2024

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.

dimaportenko avatar dimaportenko commented on August 17, 2024

@sidneylopes ok, show what you have.

from magento-react-native.

sidneylopes avatar sidneylopes commented on August 17, 2024

Here it is:

https://drive.google.com/file/d/1iQ6PgBXEbZ7S0dab82ot3XKJ-Wc6duli/view?usp=sharing

from magento-react-native.

sidneylopes avatar sidneylopes commented on August 17, 2024

PS: If I restart the app, the cart goes back to empty

from magento-react-native.

dimaportenko avatar dimaportenko commented on August 17, 2024

@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.

sidneylopes avatar sidneylopes commented on August 17, 2024

I have the function, but I don't know why the cart doesn't reset

from magento-react-native.

dimaportenko avatar dimaportenko commented on August 17, 2024

@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.

dimaportenko avatar dimaportenko commented on August 17, 2024

probably solve the issue f91d3af

from magento-react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.