Downloads
Stars
Version
composer require chuckbe/chuckcms-module-order-form
php artisan vendor:publish --provider="Chuckbe\ChuckcmsModuleOrderForm\ChuckcmsModuleOrderFormServiceProvider" --tag=order-form-config
php artisan vendor:publish --provider="Chuckbe\ChuckcmsModuleOrderForm\ChuckcmsModuleOrderFormServiceProvider" --tag=order-form-migrations
php artisan vendor:publish --provider="Chuckbe\ChuckcmsModuleOrderForm\ChuckcmsModuleOrderFormServiceProvider" --tag=order-form-assets
php artisan vendor:publish --provider="Chuckbe\ChuckcmsModuleOrderForm\ChuckcmsModuleOrderFormServiceProvider" --tag=order-form-views
Or publish all at once!
php artisan vendor:publish --provider="Chuckbe\ChuckcmsModuleOrderForm\ChuckcmsModuleOrderFormServiceProvider" --tag=order-form-config
php artisan migrate
php artisan chuckcms-module-order-form:install
//use this to load css and styles
{!! ChuckModuleOrderForm::renderStyles() !!}
//use this to load js and scripts
{!! ChuckModuleOrderForm::renderScripts() !!}
//use this to load the form itself - do not wrap it in a container
{!! ChuckModuleOrderForm::renderForm() !!}
//use this to load css and styles
@if(session('order_number'))
{!! ChuckModuleOrderForm::followupStyles(session('order_number')) !!}
@endif
//use this to load js and scripts
@if(session('order_number'))
{!! ChuckModuleOrderForm::followupScripts(session('order_number')) !!}
@endif
//use this to load the followup content itself - do not wrap it in a container
@if(session('order_number'))
{!! ChuckModuleOrderForm::followupContent(session('order_number')) !!}
@endif
ChuckModuleOrderForm::firstAvailableDate(string $location)
This method accepts a location key as used in the config file and will return the first available date for ordering
ChuckModuleOrderForm::firstAvailableDateInDaysFromNow(string $location)
This method accepts a location key as used in the config file and will return the first available date for ordering in number of days from now
ChuckModuleOrderForm::totalSales()
The total amount of sales returned as formatted (no thousands separator, 2 decimals, ',' as a decimal separator) result
ChuckModuleOrderForm::totalSalesLast7Days()
The total amount of sales of the last 7 days returned as formatted result
ChuckModuleOrderForm::totalSalesLast7DaysQty()
The total number of sales of the last 7 days returned as integer
Any security bugs discovered, please email to [email protected] instead of using the issue reporter.
© MIT License