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.
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.