kieckhafer on feat-kieckhafer-multiplePermissions
fix addAccountToGroup tests Si… (compare)
willopez on feat-integration-test-account-cart-by-account-id
chore: remove unnecessary role … (compare)
willopez on feat-integration-test-account-cart-by-account-id
chore: remove unnecessary role … (compare)
willopez on release-3.0.0
refactor:Update token name for … Merge branch 'release-3.0.0' of… refactor:Update token name for … and 7 more (compare)
$text
index on the fields you need, then return the paginated results. On the storefront, you’ll have to create an HOC for this query, as well as a search page (probably based on the existing tag page, but could be a custom one as well).
Hello, how are transform functions called? When are they called? Are they automatically called? Example taxes transform
I cant find any documentation.
Ok, I found out they are being called by transformAndValidateCart
function. Is this transformation only on the level of graphql? Is there no modification of database.
I am trying to integrate discount codes to 2.9 but now I see this. cart.discount
is set in this transform functions, but database is not updated.
This is somewhat urgent so if anyone can please say anyhing it would be helpful.
So previously (reaction 2.1) we had afterCartUpdate
appEvent which had an on handler in discounts. This updated cart in db with discount field.
Current implementantion moved away from afterCartUpdate
and started using cartTransforms
. This cartTransforms only modifiy cart object, but not update cart in DB.
Is it safe to modify cart in setDiscountOnCart.js
discount
is no longer set on cart.cart object
with correct cart.discount
value.findOne
to get new cart object.shopId
was required to access almost all data now, which means multi-store support will become more prominent in the new release