diff --git a/docs/pages/methods.md b/docs/pages/methods.md new file mode 100644 index 0000000..3369708 --- /dev/null +++ b/docs/pages/methods.md @@ -0,0 +1,36 @@ +--- +layout: page +title: Methods +description: sCommerce Core methods +permalink: /methods/ +--- + +## Basic functionality + +### getProduct + +Retrieves the product based on the given ID and language. + +### getProductByAlias + +Retrieves a product by its alias. + +### getCategoryProducts + +Retrieves the products belonging to a specific category. + +### getActiveCategoriesTree + +## Technical functionality + +### documentListing + +Retrieves the products listing from cache or sets it if not found. + +### moduleUrl + +Retrieves the module URL. + +### config + +Retrieves the value from the config file based on the given key. \ No newline at end of file diff --git a/src/sCommerceServiceProvider.php b/src/sCommerceServiceProvider.php index 94cb839..ef83447 100644 --- a/src/sCommerceServiceProvider.php +++ b/src/sCommerceServiceProvider.php @@ -29,12 +29,15 @@ public function boot() $this->publishes([ dirname(__DIR__) . '/config/sCommerceAlias.php' => config_path('app/aliases/sCommerce.php', true), dirname(__DIR__) . '/config/sCommerceSettings.php' => config_path('seiger/settings/sCommerce.php', true), - dirname(__DIR__) . '/builder/richtext/config.php' => public_path('assets/modules/scommerce/builder/richtext/config.php'), - dirname(__DIR__) . '/builder/richtext/render.blade.php' => public_path('assets/modules/scommerce/builder/richtext/render.blade.php'), - dirname(__DIR__) . '/builder/richtext/template.blade.php' => public_path('assets/modules/scommerce/builder/richtext/template.blade.php'), + dirname(dirname(__DIR__)) . '/sgallery/config/sGalleryAlias.php' => config_path('app/aliases/sGallery.php', true), + dirname(dirname(__DIR__)) . '/sgallery/config/sGallerySettings.php' => config_path('seiger/settings/sGallery.php', true), dirname(__DIR__) . '/images/noimage.png' => public_path('assets/site/noimage.png'), dirname(__DIR__) . '/images/seigerit-blue.svg' => public_path('assets/site/seigerit-blue.svg'), + dirname(dirname(__DIR__)) . '/sgallery/images/youtube-logo.png' => public_path('assets/images/sgallery/youtube-logo.png'), dirname(__DIR__) . '/views/s_commerce_product.blade.php' => public_path('views/s_commerce_product.blade.php'), + dirname(__DIR__) . '/builder/richtext/config.php' => public_path('assets/modules/scommerce/builder/richtext/config.php'), + dirname(__DIR__) . '/builder/richtext/render.blade.php' => public_path('assets/modules/scommerce/builder/richtext/render.blade.php'), + dirname(__DIR__) . '/builder/richtext/template.blade.php' => public_path('assets/modules/scommerce/builder/richtext/template.blade.php'), ]); }