I already have the first part of it down, since all i had to do was redirect erp.company.com to my frappe server, but now that I’m setting up a storefront, I want to split it out to a separate domain (in order to keep b2b and b2c experiences separate).
Not sure what details I’m missing out on. Essentially, i want to use the ecomm features of ERPNext and set up a store. But, i want the store hosted under a different domain name.
Normally, if your erp is located at company.com, then your store would be located at company.com/all-products. I want it to be store.com instead.
Yes, but then both company.com and store.com would show the same pages. I want company.com to lead to Desk and store.com to lead to the storefront. In essence, I would want ERPNext to look at the domain accessing it and display things accordingly.
The only alternative I see now is to have a whole other ERPNext instance for the store, but that sounds extremely tedious.
Edit: Ok I got it working like I want through some nginx magic. Still needs some testing though. Thanks!
Now I just need to figure out how to change the branding logo and favicon based on the domain.
Edit edit: Nginx can only do so much without built-in support
Ahh… unfortunately, it looks like it’s too large a project for me to get into at the moment.
Maybe we can reopen the PRs as draft and see if anybody from the community wants to pick it up? Maybe there’s enough need for the feature now, after all these years.
For now, I’ll stick with Shopify, i think.