Jump to content

multistore - strore url always relative fir js, css, images etc?


Recommended Posts

Hi,

 

I have installed Prestashop with multiseller-related modules from Agile which lets me have individual shops. It uses Presta's Multistore manager to add store and edit their URLs. I have these virtual URLs:

 

/shop1/

/shop2/

 

When I visit /shop1/ every link and reference is relative to this url, including Home. This causes some problems. When I asked about this, module vendor said this was a feature in Prestashop.

 

My question is, is there a way to force certain URLs to root for virtual store URLs instead making them relative?

 

Thank you.

 

 

Link to comment
Share on other sites

  • 2 months later...

The only way to do this in the code (I think)

 

Thank you for your reply.

 

We ended up buying a canonical module, which did not solve the problem, but I could easily edit its function that returns CMS URL. I used regex (preg_replace) to filter out any /store/  parts from the URL before they are printed in the HTML.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...