mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-14 11:54:45 +00:00
82 lines
2.2 KiB
PHP
82 lines
2.2 KiB
PHP
<?php
|
|
|
|
use Money\Money;
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Gross price as base price
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This default value is used to select the method to calculate prices and taxes
|
|
| If true the item price is managed as a gross price, so taxes will be calculated by separation/exclusion
|
|
|
|
|
*/
|
|
|
|
'calculator' => \Gloudemans\Shoppingcart\Calculation\DefaultCalculator::class,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Rounding strategy
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This default value is used to select the method to calculate prices and taxes
|
|
| If true the item price is managed as a gross price, so taxes will be calculated by separation/exclusion
|
|
|
|
|
*/
|
|
|
|
'rounding' => Money::ROUND_UP,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Default tax rate
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This default tax rate will be used when you make a class implement the
|
|
| Taxable interface and use the HasTax trait.
|
|
|
|
|
*/
|
|
|
|
'tax' => 21,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Shoppingcart database settings
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here you can set the connection that the shoppingcart should use when
|
|
| storing and restoring a cart.
|
|
|
|
|
*/
|
|
|
|
'database' => [
|
|
|
|
'connection' => null,
|
|
|
|
'table' => 'shoppingcart',
|
|
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Default number format
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This defaults will be used for the formatted numbers if you don't
|
|
| set them in the method call.
|
|
|
|
|
*/
|
|
|
|
'format' => [
|
|
|
|
'decimals' => 2,
|
|
|
|
'decimal_point' => '.',
|
|
|
|
'thousand_separator' => ',',
|
|
|
|
],
|
|
|
|
];
|