You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Normally when generating a cart for a guest user a masked quote ID is returned instead of the quote entity ID. You can work around this by creating your own mask ID record using the Magento\Quote\Model\QuoteIdMaskFactory class, but it might be nice to add this to the CartBuilder?
This could be done in 2 ways. Either by adding another withMaskedId method. For example:
I'm not sure which solution would be preferred, or if this is something that would even be considered as a valuable addition. However, if it is I can create a PR with the needed changes.
The text was updated successfully, but these errors were encountered:
Skullsneeze
changed the title
Missing the ability toi generate a masked ID for a quote
Missing the ability to generate a masked ID for a quote
Mar 21, 2024
Normally when generating a cart for a guest user a masked quote ID is returned instead of the quote entity ID. You can work around this by creating your own mask ID record using the
Magento\Quote\Model\QuoteIdMaskFactory
class, but it might be nice to add this to theCartBuilder
?This could be done in 2 ways. Either by adding another
withMaskedId
method. For example:Or perhaps with an
isGuestCart
method?I'm not sure which solution would be preferred, or if this is something that would even be considered as a valuable addition. However, if it is I can create a PR with the needed changes.
The text was updated successfully, but these errors were encountered: