Return stock
in cart product data
#798
Replies: 3 comments 4 replies
-
I just realized, that the data returned by the different actions is not always the same. Sometimes it get's augmented and sometimes not. I wonder if it would be feasable to always augment it, as it would help me a lot. E.g. |
Beta Was this translation helpful? Give feedback.
-
In your example, Simple Commerce is returning an If you extend Statamic's I'm not sure why one controller would be returning a fully augmented version of fields and the other not because they're both using
In the future, we could potentially look at extending what's returned by the actions to stuff that's more helpful. However, that would likely need to wait until a breaking release, like v5.0. |
Beta Was this translation helpful? Give feedback.
-
I think this is where it is getting augmented: I'll look into the docs. |
Beta Was this translation helpful? Give feedback.
-
Currently this is what I get from the items array, when updating the cart and it would be helpful to me if
product
also would containstock
.Beta Was this translation helpful? Give feedback.
All reactions