-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Widgets * Handle should be value. * Update default product blueprints Related: duncanmcclean/simple-commerce#986 * New namespace * Update package namespace
- Loading branch information
1 parent
d115cfc
commit b7777cd
Showing
7 changed files
with
247 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
|
||
'shipping' => [ | ||
'methods' => [ | ||
\DoubleThreeDigital\SimpleCommerce\Shipping\FreeShipping::class => [], | ||
\DuncanMcClean\SimpleCommerce\Shipping\FreeShipping::class => [], | ||
], | ||
], | ||
], | ||
|
@@ -39,11 +39,11 @@ | |
*/ | ||
|
||
'gateways' => [ | ||
\DoubleThreeDigital\SimpleCommerce\Gateways\Builtin\DummyGateway::class => [ | ||
\DuncanMcClean\SimpleCommerce\Gateways\Builtin\DummyGateway::class => [ | ||
'display' => 'Card', | ||
], | ||
|
||
// \DoubleThreeDigital\SimpleCommerce\Gateways\Builtin\StripeGateway::class => [ | ||
// \DuncanMcClean\SimpleCommerce\Gateways\Builtin\StripeGateway::class => [ | ||
// 'key' => env('STRIPE_KEY'), | ||
// 'secret' => env('STRIPE_SECRET'), | ||
// ], | ||
|
@@ -64,17 +64,17 @@ | |
|
||
'notifications' => [ | ||
'order_paid' => [ | ||
// \DoubleThreeDigital\SimpleCommerce\Notifications\CustomerOrderPaid::class => [ | ||
// \DuncanMcClean\SimpleCommerce\Notifications\CustomerOrderPaid::class => [ | ||
// 'to' => 'customer', | ||
// ], | ||
|
||
// \DoubleThreeDigital\SimpleCommerce\Notifications\BackOfficeOrderPaid::class => [ | ||
// \DuncanMcClean\SimpleCommerce\Notifications\BackOfficeOrderPaid::class => [ | ||
// 'to' => '[email protected]', | ||
// ], | ||
], | ||
|
||
'order_shipped' => [ | ||
// \DoubleThreeDigital\SimpleCommerce\Notifications\CustomerOrderShipped::class => [ | ||
// \DuncanMcClean\SimpleCommerce\Notifications\CustomerOrderShipped::class => [ | ||
// 'to' => 'customer', | ||
// ], | ||
], | ||
|
@@ -117,7 +117,7 @@ | |
| | ||
*/ | ||
|
||
'tax_engine' => \DoubleThreeDigital\SimpleCommerce\Tax\BasicTaxEngine::class, | ||
'tax_engine' => \DuncanMcClean\SimpleCommerce\Tax\BasicTaxEngine::class, | ||
|
||
'tax_engine_config' => [ | ||
// Basic Engine | ||
|
@@ -156,17 +156,17 @@ | |
|
||
'content' => [ | ||
'customers' => [ | ||
'repository' => \DoubleThreeDigital\SimpleCommerce\Customers\EntryCustomerRepository::class, | ||
'repository' => \DuncanMcClean\SimpleCommerce\Customers\EntryCustomerRepository::class, | ||
'collection' => 'customers', | ||
], | ||
|
||
'orders' => [ | ||
'repository' => \DoubleThreeDigital\SimpleCommerce\Orders\EntryOrderRepository::class, | ||
'repository' => \DuncanMcClean\SimpleCommerce\Orders\EntryOrderRepository::class, | ||
'collection' => 'orders', | ||
], | ||
|
||
'products' => [ | ||
'repository' => \DoubleThreeDigital\SimpleCommerce\Products\EntryProductRepository::class, | ||
'repository' => \DuncanMcClean\SimpleCommerce\Products\EntryProductRepository::class, | ||
'collection' => 'products', | ||
], | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Control Panel | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Whether the Control Panel should be enabled, and through what route. | ||
| | ||
*/ | ||
|
||
'enabled' => env('CP_ENABLED', true), | ||
|
||
'route' => env('CP_ROUTE', 'cp'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Start Page | ||
|-------------------------------------------------------------------------- | ||
| | ||
| When a user logs into the Control Panel, they will be taken here. | ||
| For example: "dashboard", "collections/pages", etc. | ||
| | ||
*/ | ||
|
||
'start_page' => 'dashboard', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Dashboard Widgets | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you may define any number of dashboard widgets. You're free to | ||
| use the same widget multiple times in different configurations. | ||
| | ||
*/ | ||
|
||
'widgets' => [ | ||
[ | ||
'type' => 'orders_chart', | ||
'width' => 100, | ||
], | ||
[ | ||
'type' => 'recent_orders', | ||
'limit' => 5, | ||
'width' => 50, | ||
], | ||
[ | ||
'type' => 'top_customers', | ||
'limit' => 5, | ||
'width' => 50, | ||
], | ||
[ | ||
'type' => 'low_stock_products', | ||
'limit' => 5, | ||
'width' => 50, | ||
], | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Date Format | ||
|-------------------------------------------------------------------------- | ||
| | ||
| When a date is encountered throughout the Control Panel, it will be | ||
| rendered in the following format unless overridden in specific | ||
| fields, and so on. Any PHP date variables are permitted. | ||
| | ||
| This takes precedence over the date_format in system.php. | ||
| | ||
| https://www.php.net/manual/en/function.date.php | ||
| | ||
*/ | ||
|
||
'date_format' => 'Y-m-d', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Pagination | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you may define the default pagination size as well as the options | ||
| the user can select on any paginated listing in the Control Panel. | ||
| | ||
*/ | ||
|
||
'pagination_size' => 50, | ||
|
||
'pagination_size_options' => [10, 25, 50, 100, 500], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Links to Documentation | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Show contextual links to documentation throughout the Control Panel. | ||
| | ||
*/ | ||
|
||
'link_to_docs' => env('STATAMIC_LINK_TO_DOCS', true), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Support Link | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Set the location of the support link in the "Useful Links" header | ||
| dropdown. Use 'false' to remove it entirely. | ||
| | ||
*/ | ||
|
||
'support_url' => env('STATAMIC_SUPPORT_URL', 'https://statamic.com/support'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Theme | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Optionally spice up the login and other outside-the-control-panel | ||
| screens. You may choose between "rad" or "business" themes. | ||
| | ||
*/ | ||
|
||
'theme' => env('STATAMIC_THEME', 'rad'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| White Labeling | ||
|-------------------------------------------------------------------------- | ||
| | ||
| When in Pro Mode you may replace the Statamic name, logo, favicon, | ||
| and add your own CSS to the control panel to match your | ||
| company or client's brand. | ||
| | ||
*/ | ||
|
||
'custom_cms_name' => env('STATAMIC_CUSTOM_CMS_NAME', 'Statamic'), | ||
|
||
'custom_logo_url' => env('STATAMIC_CUSTOM_LOGO_URL', null), | ||
|
||
'custom_favicon_url' => env('STATAMIC_CUSTOM_FAVICON_URL', null), | ||
|
||
'custom_css_url' => env('STATAMIC_CUSTOM_CSS_URL', null), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Thumbnails | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you may define additional CP asset thumbnail presets. | ||
| | ||
*/ | ||
|
||
'thumbnail_presets' => [ | ||
// 'medium' => 800, | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters