Jump to content

Two Prestashops in same domain


6sto

Recommended Posts

Hi.

 

I have a slight problem with my scenario. I have two different Prestashops in same domain. The main shop is in the root foldet and the reseller shop is in the reseller_new folder. 

 

Now some overrides from the main shops effect also the reseller shop (override.css) and I can not change reseller shop's background etc.

 

Could you, please, give me a hint how to configure this correctly. 

 

Thanks.

Link to comment
Share on other sites

It would be helpful to get some more information:

 

- Which prestashop version is in use

- What is override.css? I haven't hear from such a file. What is the path to this file

- Can you provide both shop URLs?

 

From a simple technical view, I wouldn't prefere this setup, even whan it might run after some troubleshooting.

Why not?

 

PrestaShop uses .htaccess rules to provide friendly urls and also resolve image file names. And .htaccess works the way that all rules from the top level file also apply to all subdirectories unless you have another .htaccess in the subdirectory which overrides the root. Getting in conflict with such a setup is quite easy. If one rule is missing in a subdir, the rules from root take effect. Hence, I'd always use the following setup:

 

Shop 1

Install path: /shop1, URL: domain.com - URL path /

 

Shop 2

Install path: /shop2, URL: domain.com - URL path: /shop2

 

This way you still have one shop in root and one beneath root but with complete different directories which do not affect themselfes.

Edited by Scully (see edit history)
Link to comment
Share on other sites

I'd like to solve the issue here in the forum. I don't look at private messages at all. The forums goal is to help others with similar issues. It doesn't help them when we deal with private messages. And btw: Why password protection? Only during tests? You could also disable price display if this is the main concern.

Link to comment
Share on other sites

Or use the multishop option from PrestaShop. This would be a good approach if you wan't to maintain different shops with different thems / designs but have most of your products available in both shops. Then you have to maintain only one core in terms of maintenance and upgrades.

 

Or even more simple: have one shop and assign a special customer group to resellers with a special discount rate.

Link to comment
Share on other sites

Thank you for your quick answers and this suggestion. This is not our solution this time. Prices are "random" so we can't do this. 

 

Maybe it is easiest to get another domain for the reseller shop? Or what do you think?

Link to comment
Share on other sites

The override.css might come from some hard coded settings in your theme. The CSS linked to isn't set the at the place where it should be.

/themes/tuisafi/css/override.css

I'd start to open header.tpl and investigate there. If you still want to maintain to shops. But it is also possible it comes from somewhere else overrided code.

Probably you'd explain why two shops are needed?

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...