Post by shadyyx » Wed Aug 18, 2010 6:56 pm

Hello.

I need some help about how to gain default store data (from setting table) through $this->config->get() while I am in other store using multi-store configuration.

Lets assume I have a default store MyStore at http://mystore.com. Within this store I can acces it's title and URL by:

Code: Select all

$title = $this->config->get('config_title');
$url = $this->config->get('config_url');
 
in whatever controller (lets say in controller/common/header.php).

I also have second store called YourStore at http://yourstore.mystore.com. But after calling the code above within YouStore I get the settings of this YourStore instead of settings of MyStore.

When I install an OpenCart, there is no entry in the store table in database. Just after creating other stores within the administration, these go to the store table. Why is this so? Why there is no entry in store table also for the default store?

So can anybody help and explain how to get the default store (MyStore) settings while I am in YourStore???

Many thanks for every helpfull advice!!!

User avatar
Newbie

Posts

Joined
Wed Aug 18, 2010 6:44 pm
Location - Berlin [DE]
Who is online

Users browsing this forum: Semrush [Bot] and 25 guests