Commerce module for Mconsole
Support for Laravel 11
$ composer require milax/mconsole-commerce
$ php artisan vendor:publish
- Milax\Mconsole\Commerce\Contracts\Repositories\CategoriesRepository
- Milax\Mconsole\Commerce\Contracts\Repositories\DeliveryTypesRepository
- Milax\Mconsole\Commerce\Contracts\Repositories\DiscountsRepository
- Milax\Mconsole\Commerce\Contracts\Repositories\ProductsRepository
Open and edit config/commerce.products.php
, remove example tables and lists.
commerce_category_has_cover
- Enable or disable categories covercommerce_product_has_cover
- Enable or disable products covercommerce_product_has_gallery
- Enable or disable products gallerycommerce_shop_enabled
- Enable or disable shopcommerce_increase_price
- Set increased price in percentscommerce_decrease_price
- Set decreased price in percentscommerce_guests_enabled
- Allow unauthorized users to use shopcommerce_show_empty_categories
- Show empty categoriescommerce_commerce_message
- Set shop message of the day
Required localization files:
/resources/lang/vendor/mconsole/{lang}/commerce/custom.php
example:
<?php
return [
'orders' => [
'status' => [
'new' => null,
'delivery' => null,
'done' => null,
],
'fields' => [
'name' => null,
'email' => null,
],
],
];