Franchise Plugin

Franchise PluginArrowOctober Cms, Plugin

Github

Details

Whilst planning the Surridge Sport website to build the webshop system it became clear that we needed a way for resticting database records to spectific webshops whilst also having other data be accessible across all webshops. For example the products on each webshop needed to be unique from each other but the user accounts needed to be the same across all webshops. To achieve this I built a franchising plugin where an administrator could build webshops and then manage each of these.

The franchsing plugin uses the host to determine which webshop to load. Then a behaviour is applied to models that need to be 'franchised' so the correct records load.

This plugin aidied in the success of the Surridge Sport project, the code for this plugin can be found in my GitHub using the link above!