Hi All
I'm currently facing a rather frustrating issue with layouts in Opencart, particularly in the context of managing multiple stores for SEO purposes. Whenever I save my multistore settings, Opencart seems to automatically generate the default layouts for me. While I understand the convenience this might offer, it's causing some difficulties for me, as i have many stores and some times is difficult to find where are my layouts.
I'd like to manually create layouts for every new store I set up, rather than having Opencart automatically generate them. This level of customization is crucial for my SEO strategy, and the automatic layout generation is counterproductive in this regard.
Thank you in advance for your assistance! Your expertise and shared experiences will undoubtedly help me and others in the community who might be facing a similar challenge.
I'm currently facing a rather frustrating issue with layouts in Opencart, particularly in the context of managing multiple stores for SEO purposes. Whenever I save my multistore settings, Opencart seems to automatically generate the default layouts for me. While I understand the convenience this might offer, it's causing some difficulties for me, as i have many stores and some times is difficult to find where are my layouts.
I'd like to manually create layouts for every new store I set up, rather than having Opencart automatically generate them. This level of customization is crucial for my SEO strategy, and the automatic layout generation is counterproductive in this regard.
Thank you in advance for your assistance! Your expertise and shared experiences will undoubtedly help me and others in the community who might be facing a similar challenge.
I really can't get my brain around what the issue is with having the default routes added. I would think that would be almost a neccessity if you have lots of stores?
Anyway, the magic happens in:
Anyway, the magic happens in:
The offending lines are (in the addStore() function at the top of the file):../admin/model/setting/store.php
Code: Select all
// Layout Route
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "layout_route WHERE store_id = '0'");
foreach ($query->rows as $layout_route) {
$this->db->query("INSERT INTO " . DB_PREFIX . "layout_route SET layout_id = '" . (int)$layout_route['layout_id'] . "', route = '" . $this->db->escape($layout_route['route']) . "', store_id = '" . (int)$store_id . "'");
}
-
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS
Thanks a lot my friend. I will explain you. Maybe I need to add it also on Opencart bugs. Just to know i am front end developer and i have developed lot of opencart themes, so i can say that this feedback is coming from an advanced users.
I have already 30 stores in the opencart. All the stores got different modules/footer. I have automated opencart for SEO purposes and i will do 500 sub domains as stores and every subdomain will have different modules.
I am using opencart for MASS PRODUCTION for stores. When i am talking mass production it means to take it on a next level. My target is to have 3000 stores in the next 1-2 years (with the brands and categories subdomains). SEO is ranking better when you do subdomains like https://brand.domain.com
1. It happened to me, to break my whole layouts when I added a store
2. Do you know how pain it is, to go one by one layout to delete it manually? As the layouts are created on default opencart layouts. Imagine that i need manually to checking every page to find the default module etc.
I have already 30 stores in the opencart. All the stores got different modules/footer. I have automated opencart for SEO purposes and i will do 500 sub domains as stores and every subdomain will have different modules.
I am using opencart for MASS PRODUCTION for stores. When i am talking mass production it means to take it on a next level. My target is to have 3000 stores in the next 1-2 years (with the brands and categories subdomains). SEO is ranking better when you do subdomains like https://brand.domain.com
1. It happened to me, to break my whole layouts when I added a store
2. Do you know how pain it is, to go one by one layout to delete it manually? As the layouts are created on default opencart layouts. Imagine that i need manually to checking every page to find the default module etc.
Aiming to expand to 3000 stores in the next 1-2 years, is indeed a challenging task. Given the complexity of your operation, you might consider using different domains for each brand store. This can help simplify management and alleviate the challenges you've described.
View all extensions | Request custom work | Pricing | Contact Me
Yes, i know its a challenging task. I am working for this task the last 4 years and i have invest lot of money to happen this. That it was my last issue before start mass production. I have establish to make my open cart multistore store to react like a way you create a simple product. I have multistore assign categories to store, i have done lot of things.
Now i say that i am 100% ready after my tests but the only issue was this layout thing which is a bug.
When you have 20+ stores, then opencart saving the layouts to database and few times happened me to don't save it correct and destroy on the other layouts because of the bad saving when edit/insert to database.
From my experience, is pointless the layout thing. It's better opencart to have a function to enable it and disable it with a note, that Recommended enable. If you are experience user, then is very pointless, as it's 10 minutes maximum job to create all the layouts, if for any reason like me you need them disable.
Also the 70% of my opencart project have been build by me, through my guidelines and my coding experience. I know exactly all the bugs that i have and how my project is reacting. First time after 4 years, i am using ready to start this mass production of subdomain stores.
I have arround 15.000 products and all are inhouse of my partners and hopefully after 3 years to establish to have 30-50.000. I will launch it in Cyprus & Greece this SEO strategy
Now i say that i am 100% ready after my tests but the only issue was this layout thing which is a bug.
When you have 20+ stores, then opencart saving the layouts to database and few times happened me to don't save it correct and destroy on the other layouts because of the bad saving when edit/insert to database.
From my experience, is pointless the layout thing. It's better opencart to have a function to enable it and disable it with a note, that Recommended enable. If you are experience user, then is very pointless, as it's 10 minutes maximum job to create all the layouts, if for any reason like me you need them disable.
Also the 70% of my opencart project have been build by me, through my guidelines and my coding experience. I know exactly all the bugs that i have and how my project is reacting. First time after 4 years, i am using ready to start this mass production of subdomain stores.
I have arround 15.000 products and all are inhouse of my partners and hopefully after 3 years to establish to have 30-50.000. I will launch it in Cyprus & Greece this SEO strategy
It could be better to have separate OpenCart installs rather than using sub-stores.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk