Send Cart URL to MIAW#2388
Conversation
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
It's for the Cart team to build a cart link from. Because the cart link doesn't have to follow any specific convention, and there doesn't seem to be an ECOM API they can call to get the base cart link, they need the site owners to provide it. |
| commerceOrgId: 'f_ecom_zzeu_052', | ||
| siteId: 'RefArchGlobal' | ||
| siteId: 'RefArchGlobal', | ||
| cartUrl: 'https://agentgatos-production.mobify-storefront.com/cart' |
There was a problem hiding this comment.
How does it work with site/locale config here? If the customer sets up the storefront to have site/locale as path, the cart page would become /siteId/en-GB/cart.
There was a problem hiding this comment.
Yeah I've talked to Mukul about this, for now we might have to reconstruct the cart link via agentforce incorporating the locale? But users could also choose to have a completely separate convention.
Do you now if there is an ECOM API where we can get a cart link? We couldn't find one.
There was a problem hiding this comment.
Unfortunately, no. pwa-kit constructs url based on the config.app.url within the code base and not based on any ECOM API atm. To see how we construct url. See here
There was a problem hiding this comment.
FYI spun up another work item to sync up with Mukul and Thomas Loche around this. For now, I'm merging to our branch to unblock the Cart teams for integration purposes.
a111942
into
feature-shopper-agent-exp-v3.0
Send Cart URL to MIAW
Description
Allows a Cart URL defined in environment variables to be sent to MIAW
Types of Changes
Changes
How to Test-Drive This PR
Checklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization