Hey John!
This seems like a really complex feature to implement in the AquaBlue / uStore setup.
When you say that the customer "has multiple stores under one main company (store)", is that already configured? Are the other "stores" also already configured within the main store, or are they separate configured stores in uStore using the same domain?
I base the rest of the response with the assumption that the other "stores" should be located within the same uStore store instance (i.e StoreID 6).
The initial routing is defined in the Proxy, updated by what type the main store is (B2C, B2B...). Keep in mind that B2C stores are open until you want to check out the cart. B2B stores are secured and required to log in.
I.e, if you hit a B2C store, the proxy will route the user to
www.domain.com/{store}/{lang}/homeIf you hit a B2B store, the proxy will route the user to
www.domain.com/ustore/login.aspx?StoreId={some id}.
As far as I know, these rules are updated via a network call from the XMPie server to the proxy whenever there are changes in the settings of any store..
Basically, it means that the custom React code from AquaBlue is not run before the routing has already been performed.
I can see a less than optimal "solution", if you use a B2C store. Then you can reconfigure the AquaBlue Home page to be your landingpage.js contents, which then routes to the specific store directories. Though that means all directories and products will be public and accessible to anyone, including users of the other stores via URL manipulation.
You can possibly, have a B2C store with your custom AquaBlue store landingpage setup up. Then create multiple uStore Stores with B2B configuration, within the same domain, but using different "Store Folders" like "main", "store1", "store2".
Then point each of the links in the landingpage to the corresponding store;
www.domain.com/main,
www.domain.com/store1,
www.domain.com/store2Though with this solution it would be significantly easier just hosting a simple free page on Vercel or Github pages with the same links.
Best regards,
Magnus