Comments (4)
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.
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.
Still cannot reproduce it, tried on the demo, the newest 12 patch, 12.1, same result.
Steps I've taken:
- Log in as user (grab a token via
/api/v2/shop/authentication-token
and set the bearer) - create an address (POST
/api/v2/shop/addresses
) - 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.
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)
- [ProductAttribute] "Apply To all" for select use the order position, not the value HOT 1
- Installation tutorial fails HOT 7
- Cart update success message displayed for empty discount code input
- Toast message does not close after multiple clicks on the close "X" icon HOT 1
- [CLI FEATURE] Command for deleting an admin user by the given username HOT 1
- [CLI FEATURE] Command for list available admin users
- BUG: [AdminBundle] missing <br> Tag in Product media tab twig template HOT 4
- Disabled products do not disappear from a cart HOT 1
- BUG: Missing spacing between upload image upload button in image_widget HOT 1
- How can I return back to the previous form page from the PRE_SUBMIT event with form values?
- [DOCS] Document available CLI commands for Sylius HOT 2
- Performance issue on admin dashboard HOT 7
- Wrong sorting of products in taxon after saving HOT 2
- Error When try to remove the last OrderItem of cart by Api HOT 1
- Issue with API Platform core v2.7.17 HOT 2
- [Order] Text going out of the frame in the Notes section HOT 2
- [UI] Different product box sizes on the product listing HOT 1
- Form errors during creation of product remove all product images
- [UI] Text going out of the frame in product description HOT 2
- [Refactor][ApiBundle] Unify section resolver usage HOT 1
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 sylius.