PHPackages                             lyrasoft/shopgo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. lyrasoft/shopgo

ActiveLuna-package

lyrasoft/shopgo
===============

Luna ShopGo package

0.2.3(7mo ago)08722[26 issues](https://github.com/lyrasoft/luna-shopgo/issues)1MITPHPPHP &gt;=8.4.6

Since Feb 1Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/lyrasoft/luna-shopgo)[ Packagist](https://packagist.org/packages/lyrasoft/shopgo)[ RSS](/packages/lyrasoft-shopgo/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (31)Used By (1)

LYRASOFT ShopGo Package
=======================

[](#lyrasoft-shopgo-package)

- [LYRASOFT ShopGo Package](#lyrasoft-shopgo-package)
    - [Installation](#installation)
        - [Seeders](#seeders)
        - [Global Settings](#global-settings)
        - [Env](#env)
        - [Session](#session)
        - [Favorites Type](#favorites-type)
        - [Language Files](#language-files)
        - [CSS/JS](#cssjs)
        - [Add Cart Button](#add-cart-button)
    - [Register Admin Menu](#register-admin-menu)
    - [Frontend Available Routes](#frontend-available-routes)
    - [Override Vue Components](#override-vue-components)
        - [Method 1: Override Particular Component](#method-1-override-particular-component)
        - [Method 2: Override All Components](#method-2-override-all-components)

Installation
------------

[](#installation)

Install from composer

```
composer require lyrasoft/shopgo
```

ShopGo dependents on [lyrasoft/sequence](https://github.com/lyrasoft/luna-sequence) and [lyrasoft/favorite](https://github.com/lyrasoft/luna-favorite) packages. Please read their README and configure them first.

Then copy files to project

```
php windwalker pkg:install lyrasoft/shopgo -t routes -t migrations -t seeders
php windwalker pkg:install lyrasoft/favorite -t routes -t migrations
```

### Seeders

[](#seeders)

Add these files to `resources/seeders/main.php`

```
return [
    // ...

    __DIR__ . '/payment.seeder.php',
    __DIR__ . '/shipping.seeder.php',
    __DIR__ . '/manufacturer.seeder.php',
    __DIR__ . '/product-feature.seeder.php',
    __DIR__ . '/product-attribute.seeder.php',
    __DIR__ . '/product-tab.seeder.php',
    __DIR__ . '/product.seeder.php',
    __DIR__ . '/discount.seeder.php',
    __DIR__ . '/address.seeder.php',
    __DIR__ . '/additional-purchase.seeder.php',
    __DIR__ . '/order.seeder.php',
];
```

Add these types to `category.seeder.php`

```
    static function () use ($seeder, $orm, $db) {
        $types = [
            // ...

            'product' => [
                'max_level' => 2,
                'number' => 30,
            ],
            'attribute' => [
                'max_level' => 1,
                'number' => 10,
            ],
        ];
```

### Global Settings

[](#global-settings)

Open `/etc/packages/shopgo.config.php`, you can configure there settings:

```
