Beispiel #1
0
 public function installStore()
 {
     $pkg = Package::getByHandle('vivid_store');
     if (version_compare($pkg->getPackageVersion(), '2.1', '<')) {
         Installer::renameDatabaseTables($pkg);
     }
     if (version_compare(APP_VERSION, '5.7.4', '<')) {
         Installer::refreshDatabase($pkg);
     }
     Installer::installSinglePages($pkg);
     Installer::installProductParentPage($pkg);
     Installer::installStoreProductPageType($pkg);
     Installer::updateConfigStorage($pkg);
     Installer::setDefaultConfigValues($pkg);
     Installer::installPaymentMethods($pkg);
     Installer::installShippingMethods($pkg);
     Installer::installBlocks($pkg);
     Installer::setPageTypeDefaults($pkg);
     Installer::installCustomerGroups($pkg);
     Installer::installUserAttributes($pkg);
     Installer::installOrderAttributes($pkg);
     Installer::installProductAttributes($pkg);
     Installer::createDDFileset($pkg);
     Installer::installOrderStatuses($pkg);
     Installer::installDefaultTaxClass($pkg);
     if (version_compare($pkg->getPackageVersion(), '3.0', '<')) {
         Installer::migrateOldShippingMethod($pkg);
         Installer::migrateOldTaxRates($pkg);
     }
 }