Post by Harm10 » Tue Jan 21, 2014 4:27 am

Hi!
I am building a second shop together with my default shop on the same domain (with different sub domains).
All lay-outs are now created twice so I can give them a different look and feel (even the Information lay-out).
But I decided to share the content of the information pages so I added all those pages to both the default shop and the new shop and selected the correct override.
As soon as I start up one of those information pages from the new shop the entire shop settings switches to the default shop (style and also the links).
It even gets weirder....... I have defined an additional information page which is selected to be only viewable in the new shop. As soon as I select that one the settings also switch and I get the page not found error!

I have version 1.5.6 installed.
All other navigation seems to be OK (due to all lay-outs being defined twice?)

Can this be solved?

Quality is in the detail!


Newbie

Posts

Joined
Sat Jun 29, 2013 7:22 pm

Post by cwswebdesign » Tue Jan 21, 2014 4:42 am

I've had the most issues with multi store when it's not installed in the root folder of the server. Where is yours located?

DL

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by Harm10 » Tue Jan 21, 2014 6:38 am

I am still testing but my opencart is not installed in the root folder.
Currently it is in public_html/sitetest/opencart.
When it is ready it will be installed in public_html/opencart.

Quality is in the detail!


Newbie

Posts

Joined
Sat Jun 29, 2013 7:22 pm

Post by cwswebdesign » Tue Jan 21, 2014 8:42 am

Harm10 wrote:I am still testing but my opencart is not installed in the root folder.
Currently it is in public_html/sitetest/opencart.
When it is ready it will be installed in public_html/opencart.
I know this doesn't help your current question but I do want to tell right now that if you're going to use SSL on your site, it has to be installed in public_html or you won't get that to work. This may also be the issue you're having with the pages switching to default.

Can you move it to public_html quickly to test it?

DL

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by Harm10 » Wed Jan 22, 2014 3:58 am

Sorry but no, my webshop will be accessible through my own website which is (obviously) in the root.
So moving it to public_html is not doable.
BTW my shops do not use SSL and navigation is fine for the other elements.
I even tested by sharing one of the lay-outs and then navigation was flawless.

So the error should be somewhere in the coding that takes care of the Information pages.

I might add that I use a symlink for a non existing subfolder to expose the files that are needed for the new shop.
In that way I can separate the URLs.

Quality is in the detail!


Newbie

Posts

Joined
Sat Jun 29, 2013 7:22 pm

Post by labeshops » Wed Jan 22, 2014 4:07 am

Do you have the full path in both config files and in the settings section including the trailing / yourdomain.com/subdomain/ NOT yourdomain.com/subdomain

That's the most common issue with paths being screwed up.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by Harm10 » Wed Jan 22, 2014 4:26 am

As far as I am aware I do not need an additional config file.
I have defined a second web shop in the same backend and instead of manipulating the document root (which I am not allowed) I put a symlink in place. So all references to my new subfolder are in fact referring to the "real" files that belong to the default shop.

As I said all other navigation, definitions and settings (like last 2 new ones in the one shop and the last 5 in the other) work OK. Even checking out and wish list. The new shop has another theme (the problem is still there if I give the new shop the same theme) and that shows also correctly.

Would upgrading to 1.5.6.1 help?

Quality is in the detail!


Newbie

Posts

Joined
Sat Jun 29, 2013 7:22 pm

Post by labeshops » Wed Jan 22, 2014 4:47 am

No, you don't need an additional config file, just need to make sure you have the paths set correctly in the normal opencart config files - there are 2 one in the store's root folder and one in /admin

I'm not familiar with using symlinks, so perhaps someone else can help you there. Might be the way you are doing that which is confusing things.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by Harm10 » Wed Jan 22, 2014 6:33 am

As far as I can conclude the paths are set correctly.
If they were not then navigation between the lay-outs in both the default shop and the new shop would also be wrong somehow. Or not?

Symlink just tells the server that a non existing folder should be considered as an equal to another existing one.

Maybe someone knows how these links are built within OpenCart?
Is there some general php file that holds the overall functions?

Quality is in the detail!


Newbie

Posts

Joined
Sat Jun 29, 2013 7:22 pm

Post by cwswebdesign » Wed Jan 22, 2014 7:21 am

What's the URL and under settings for each store, what's the default layout set at?

DL

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by Harm10 » Wed Jan 22, 2014 1:29 pm

The default URL is http://www.mysite.nl/sitetest/opencart/ and the new shop is at
http://www.mysite.nl/sitetest/openmob/
(the shops are both offline; a symlink is created for openmob folder to point at opencart folder)
and Default layout has no routes defined for it.
The default shop has default route Default defined to it and the new shop Home_mobile which is a copy of Home meant to only be used for this shop. So layout Home_mobile is only allocated to the new shop with route common/home

Quality is in the detail!


Newbie

Posts

Joined
Sat Jun 29, 2013 7:22 pm

Post by Harm10 » Thu Jan 23, 2014 4:07 am

Just upgraded to 1.5.6.1 and the problem persists....... :'(

Quality is in the detail!


Newbie

Posts

Joined
Sat Jun 29, 2013 7:22 pm

Post by Harm10 » Fri Jan 24, 2014 5:23 am

After some searching I put an echo in system\library\url.php in __construct and wherever I navigate on my new shop the url remains pointing to the new shop EXCEPT when I navigate to an information page.

But...... I noticed something peculiar on the link to the Information pages.
This is also the case in the default shop.
Normally the links are of the form /index.php?route=information/contact
but the links to the information pages are created using the meta tags I defined for them!
So for example if I use the meta tag about_us then the link to that page becomes /about_us.
No index.php and no route. No wonder it cannot find the new shop route!

If you leave out the meta tag(s) altogether then the link becomes /index.php?route=information/information&information_id=7

Remember I created a page to be only displayed on the new shop? I removed its meta tag and now it displays fine!

So not the creation of the links on the information page goes wrong but the link to the information page!

This has to be a bug!

Quality is in the detail!


Newbie

Posts

Joined
Sat Jun 29, 2013 7:22 pm

Post by labeshops » Fri Jan 24, 2014 8:59 pm

Are you using any seo mods? Perhaps one that auto generates seo urls? Perhaps it does it from the meta info?

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by Harm10 » Sat Jan 25, 2014 1:46 am

I am not using seo mods.
What kind of link do you get if you specify a meta tag for any of the Information pages?

I just opened a bug for this https://github.com/opencart/opencart/issues/1166

Quality is in the detail!


Newbie

Posts

Joined
Sat Jun 29, 2013 7:22 pm

Post by Harm10 » Mon Jan 27, 2014 5:15 am

The issue was closed because they considered it irrelevant.................. :-X

But I think I found the answer to the problem.
Thess peculiar links are constructed whenever you switch on SEO URLs and you add some tags to your pages.
Together with switching that feature on you should activate the .htaccess file.
Because none of my shops is located in the root I had to change the RewriteBase (as is documented in the .htaccess.txt file).
But................ as soon as I duplicated the entire block of lines to also be used on another RewriteBase (my second shop) things worked again!
So apparently you need to redo those rewrites for every new shop you have....... ;)

Quality is in the detail!


Newbie

Posts

Joined
Sat Jun 29, 2013 7:22 pm

Post by labeshops » Wed Jan 29, 2014 11:38 pm

No you don't have to rewrite those lines, but if you have one store set up in a subfolder, you must include all of them that way. You cannot for example mix domain1.com and domain2.com/shop/ and domain3.com/store/ you would have to use all of them domain1.com/shop/ domain2.com/shop/ and so on or not of them that way.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA
Who is online

Users browsing this forum: No registered users and 7 guests