protected function preAdmin() { parent::preAdmin(); \Dsc\Apps::registerPath($this->dir . "/src/Shop/MassUpdate", 'massupdate'); if (class_exists('\\Minify\\Factory')) { \Minify\Factory::registerPath($this->dir . "/src/"); $files = array('Shop/Assets/js/jquery.sortable.css', 'Shop/Assets/css/jquery.star-rating.css'); foreach ($files as $file) { \Minify\Factory::css($file); } $files = array('Shop/Assets/js/class.js', 'Shop/Assets/js/validation.js', 'Shop/Assets/js/jquery.star-rating.js'); foreach ($files as $file) { \Minify\Factory::js($file); } } \Shop\Models\Reports::register('\\Shop\\Reports\\CustomersExpiredCarts', array('title' => 'Expired Carts', 'icon' => 'fa fa-shopping-cart', 'type' => 'customers', 'slug' => 'customers-expired-carts')); \Shop\Models\Reports::register('\\Shop\\Reports\\OrdersByCouponCode', array('title' => 'Orders - by Coupon Code', 'icon' => 'fa fa-inbox', 'type' => 'orders', 'slug' => 'orders-coupon-code')); $path = $this->app->hive()['PATH']; if (strpos($path, '/admin/shop/reports') !== false) { // Bootstrap the reports \Shop\Models\Reports::bootstrap(); } if (class_exists('\\Search\\Factory')) { \Search\Factory::registerSource(new \Search\Models\Source(array('id' => 'shop.products', 'title' => 'Products', 'class' => '\\Shop\\Models\\Products', 'priority' => 20))); \Search\Factory::registerSource(new \Search\Models\Source(array('id' => 'shop.orders', 'title' => 'Orders', 'class' => '\\Shop\\Models\\Orders', 'priority' => 20))); } \Shop\Models\PaymentMethods::register('\\Shop\\PaymentMethods\\OmnipayPaypalExpress', array('title' => 'Paypal Express (via Omnipay)', 'identifier' => 'omnipay.paypal_express')); \Shop\Models\PaymentMethods::register('\\Shop\\PaymentMethods\\OmnipayCybersource', array('title' => 'Cybersource (via Omnipay)', 'identifier' => 'omnipay.cybersource')); \Shop\Models\PaymentMethods::register('\\Shop\\PaymentMethods\\CCAvenue', array('title' => 'CCAvenue', 'identifier' => 'ccavenue')); static::diagnostics(); }
protected function preAdmin() { parent::preAdmin(); \Dsc\Apps::registerPath($this->dir . "/src/Redirect/MassUpdate", 'massupdate'); }