2017 © Pedro Peláez
 

project luya-module-estore

E-Store

image

luyadev/luya-module-estore

E-Store

  • Wednesday, July 4, 2018
  • by nadar
  • Repository
  • 7 Watchers
  • 3 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

E-STORE MODULE

Work in Progress - don't use in Production, (*1)

Connect the E-Store module to an existing LUYA Instance with or without CMS. The E-Store Module basically provides the Administration Area and the Database Setup. For the Frontend there are some usefull widgets you can use., (*2)

For now, you have to create your own controllers and actions in order to access, list or display the models, (*3)

Things to consider in future development:, (*4)

  • VAT
  • Frontend Controllers
  • Frontend Widgets
  • Mechanism to get all Article Groups
  • Language handling based on Admin Ui Language Input.

Installation

Install the module trough composer:, (*5)

compser require luyadev/luya-module-estore:dev-master

Add the module to the config, (*6)

'modules' => [
    'estoreadmin' => [
        'class' => 'luya\estore\admin\Module',
    ]
]

Run the migration and import commands:, (*7)

./vendor/bin/luya migrate
./vendor/bin/luya import

Go into the groups section and assign the new estore admin permissions to your account. You should now be able to see the administration area., (*8)

Controllers and Frontend

Until now this work in progress Module contains only the admin area with all migrations and models. In order to display the products you have to create your own controllers, actions and views:, (*9)

namespace app\controllers;

use luya\web\Controller;
use yii\data\ActiveDataProvider;
use luya\estore\models\Product;

class EstoreController extends Controller
{
    public function actionIndex()
    {
        $provider = new ActiveDataProvider([
            'query' => Product::find(),
        ]);

        return $this->render('index', [
            'provider' => $provider,
        ]);
    }
}

ERD

Here you can see how the tables are connected with each other:, (*10)

ERD, (*11)

The Versions

04/07 2018

dev-master

9999999-dev http://luya.io

E-Store

  Sources   Download

MIT

The Requires

 

The Development Requires

php yii2 module cms yii luya