first commit

This commit is contained in:
Konstantin
2026-05-30 09:27:58 +03:00
commit de0344d218
2371 changed files with 661486 additions and 0 deletions
@@ -0,0 +1,11 @@
<?php
namespace googleshopping\traits;
use \googleshopping\Googleshopping;
trait LibraryLoader {
protected function loadLibrary($store_id) {
$this->registry->set('googleshopping', new Googleshopping($this->registry, $store_id));
}
}
@@ -0,0 +1,15 @@
<?php
namespace googleshopping\traits;
trait StoreLoader {
protected function loadStore($store_id) {
$this->registry->set('setting', new \Config());
$this->load->model('setting/setting');
foreach ($this->model_setting_setting->getSetting('advertise_google', $store_id) as $key => $value) {
$this->setting->set($key, $value);
}
}
}