Skip to content

chuckbe/chuckcms-module-booker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Booking module for ChuckCMS

Usage

  • After installing and publishing the config file, fill in the required details php artisan vendor:publish --provider="Chuckbe\ChuckcmsModuleBooker\ChuckcmsModuleBookerServiceProvider"

php artisan migrate

  • Create a page for the order form in ChuckCMS and use a custom template file
  • Inside that custom template file you can use the following method to call the necessary files
//use this to load css and styles
{!! ChuckModuleBooker::renderStyles() !!}

//use this to load js and scripts
{!! ChuckModuleBooker::renderScripts() !!}

//use this to load the form itself - do not wrap it in a container
{!! ChuckModuleBooker::renderForm() !!}
  • Inside another custom template file you can use the following methods for the subscription files
//use this to load css and styles
{!! ChuckModuleBooker::renderSubscriptionStyles() !!}

//use this to load js and scripts
{!! ChuckModuleBooker::renderSubscriptionScripts() !!}

//use this to load the form itself - do not wrap it in a container
{!! ChuckModuleBooker::renderSubscriptionForm() !!}