Skip to content

Commit

Permalink
[ADD] sGallery integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Seiger committed Jan 27, 2024
1 parent 3480c3d commit 5f38d25
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
36 changes: 36 additions & 0 deletions docs/pages/methods.md
Original file line number Diff line number Diff line change
@@ -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.
9 changes: 6 additions & 3 deletions src/sCommerceServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
]);
}

Expand Down

0 comments on commit 5f38d25

Please sign in to comment.