Developer documentation for MyShopping eCommerce platform
This documentation aims to help you get started with extending My Shopping ecommerce platform and creating
your own addons.
Note: This documentation is not fully completed. It will be updated every time the project has been progressed.
My Shopping cms uses Twig as a primary template engine, and all available twig syntax are available on this page.
There are few global variables available at this time that you can use without needing extra queries with database:
In order to get authorized user in template, you should call
`visitor` variable, and it will
return object of User class.
This is super global variable that can be accessed in any template without extra queries to get logged in user.
To check whenever a logged in user has permission, we simple call
Whenever you need to get primary group of member who is logged in, we simple call
visitor.primaryGroup, this function will give us Object of Groups model.