DEV Community

Discussion on: Headless Magento - Using Frontend URLs in Emails

 
rain2o profile image
Joel Rainwater

@lukecollymore I just did some brief testing, and it does seem to work for the most part, though it is limited.
I'm a little curious how you have it working with Vue Storefront? The default routes that come with VSF default theme as well as Capybara don't directly align with what Magento generates for URLs with this approach. Did you implement your own VSF routes that matches all of the Magento generated ones?

If you have any media in emails templates, the media path would need to use the Vue Storefront /img/ processor, unless you have added a proxy to directly access media from Magento instead of using the img processor. I tried setting the base_media_url to something like {{secure_base_url}}/img/1200/1200/resize just to see if that would work and it didn't seem to use that value at all. Maybe I'm missing something there.