-
Notifications
You must be signed in to change notification settings - Fork 1.7k
add documentation for assignCustomerToGuestCart mutation #9252
add documentation for assignCustomerToGuestCart mutation #9252
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @karyna-tsymbal-atwix
Thank you for your contribution.
It looks good from technical side.
src/guides/v2.4/graphql/mutations/assign-customer-to-guest-cart.md
Outdated
Show resolved
Hide resolved
|
||
The `assignCustomerToGuestCart` mutation assigns a logged in customer and merge customer's shopping cart items to the specified guest shopping cart. | ||
|
||
The customer must be logged in (You must specify the customer’s authorization token in the headers). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace this line with the standard "This mutation requires a valid customer authentication token." and move it to the bottom of this section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Customer now is assigned to that active cart. | ||
|
||
*Note:* | ||
Customer cart becomes inactive and the guest cart remains active; but for guest cart new `masked_id` is being generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are masked_id
and quote_id
mentioned here, when neither are part of the request or response?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @keharper , I mentioned them because I think it's a useful information for the developers, who can be confused why there is no old masked_id
in the database, but a new one appeared instead.
I can remove this note if you think that it's unnecessary information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Customer cart becomes inactive and the guest cart remains active; but for guest cart new `masked_id` is being generated. | |
The `masked_id` of the guest cart contains a new value. The `quote_id` remains the same. |
src/guides/v2.4/graphql/mutations/assign-customer-to-guest-cart.md
Outdated
Show resolved
Hide resolved
src/guides/v2.4/graphql/mutations/assign-customer-to-guest-cart.md
Outdated
Show resolved
Hide resolved
src/guides/v2.4/graphql/mutations/assign-customer-to-guest-cart.md
Outdated
Show resolved
Hide resolved
src/guides/v2.4/graphql/mutations/assign-customer-to-guest-cart.md
Outdated
Show resolved
Hide resolved
@karyna-tsymbal-atwix |
3e09345
to
2db4e9d
Compare
2db4e9d
to
d247290
Compare
src/guides/v2.4/graphql/mutations/assign-customer-to-guest-cart.md
Outdated
Show resolved
Hide resolved
Customer now is assigned to that active cart. | ||
|
||
*Note:* | ||
Customer cart becomes inactive and the guest cart remains active; but for guest cart new `masked_id` is being generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Customer cart becomes inactive and the guest cart remains active; but for guest cart new `masked_id` is being generated. | |
The `masked_id` of the guest cart contains a new value. The `quote_id` remains the same. |
src/guides/v2.4/graphql/mutations/assign-customer-to-guest-cart.md
Outdated
Show resolved
Hide resolved
@magento import code to magento-devdocs/devdocs |
@keharper the branch with the code is successfully imported into the |
Purpose of this pull request
This pull request (PR) adds a documentation page for the
assignCustomerToGuestCart
mutation (GraphQL).Magento 2 GitHub Issue: magento/magento2#32615
Magento 2 GitHub PR: magento/magento2#33106
Fixes #9248
Affected DevDocs pages
Links to Magento source code
whatsnew
Added the
assignCustomerToGuestCart
mutation.