Giter Club home page Giter Club logo

Comments (4)

NoResponseMate avatar NoResponseMate commented on June 18, 2024

Hi Valentin 👋

Could you provide some more info regarding this?
I've tried to reproduce it via the demo through both UI and API and in both cases, the address was available (API shop's addresses endpoint, UI's address book/checkout).

Cheers 🍻

from sylius.

vasilvestre avatar vasilvestre commented on June 18, 2024

When I try to create a new address and use it's IRI to update my customer address, the IRI isn't available for my user. Thus, I can't update the address of my customer, apparently the customer_id is set to null in DB

from sylius.

NoResponseMate avatar NoResponseMate commented on June 18, 2024

Still cannot reproduce it, tried on the demo, the newest 12 patch, 12.1, same result.
Steps I've taken:

  1. Log in as user (grab a token via /api/v2/shop/authentication-token and set the bearer)
  2. create an address (POST /api/v2/shop/addresses)
  3. try to use the address
    3.1. update it (PUT /api/v2/shop/addresses/{id})
    3.2. set as default (PUT /api/v2/shop/customers/{id} w/ IRI like /api/v2/shop/addresses/{id})
    3.3. pick up a cart, add anything, update it via /api/v2/shop/orders/{tokenValue} with no body; the previously set as default address pops in and is visible in the response

The only way I was able to create an address w/ no customer is by creating it via the order update (no customer_id set in this case) then a clone will be saved on the customer after the order is placed, but the IRI will differ and the one from the order's response cannot be updated with PUT /api/v2/shop/addresses/{id} endpoint because it's a different resource and its update should go through order endpoints directly.

Just as a sidenote - the address persister in question has not changed in any substantial way since 1.10.

from sylius.

vasilvestre avatar vasilvestre commented on June 18, 2024

Maybe this is due to something in my project.. when I will investigate further I will return here. Thank you for your time and sorry !

from sylius.

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.