Ecommerce implementation for JanusVR using Thelia 2.
- Install Composer globally
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
-
cd
to the/online
folder and runcomposer update
to download the dependencies. -
Run
php Thelia thelia:install
from the/online
folder and follow the instructions to install. -
Log into the admin panel and go to Configuration -> System Variables. Set
active-front-template
tojanusvr
so it will load the VR enabled storefront template.
- Run
./scripts/launch-janusvr.command
to open up JanusVR window mode and automatically connect to the e-commerce store. You may wish to modify the URL it points to - by default it expects the web folder to be located in a sub-folderjanusvr-ecommerce/online/web/
under the root of your server. Currently this will not connect to the multiplayer server in order to increase performance while testing locally. You will also be able to see the JanusVR client log in the terminal to get more insight into errors.
php Thelia admin:create
You will be prompted to select a username and password which will let you access the admin panel. A good default is
admin
/ admin
during development, however you should change this when deploying to your production environment.
- Download Thelia as a zip file.
- Unzip the
setup
folder into the/online
folder. - Run
php setup/import.php -b ../bootstrap.php
from the/online
folder to import fake data.
-
A useful list of default template hooks are available here: http://doc.thelia.net/en/documentation/modules/hooks/hooks_list.html
-
You can override any module's templates by placing a template file matching the filename of the original module template file at
online/templates/frontOffice/janusvr/modules/MODULE_NAME/TEMPLATE_NAME.html
whereMODULE_NAME
is the name of the module andTEMPLATE_NAME
is the filename of the template you are overriding.
online/templates/frontOffice/janusvr/includes/single-product.html
This template is used to display each product on the home page for the "Offers" list and in "Category" pages.
online/local/modules/HookProductsNew/templates/frontOffice/default/home-body.html
This template lists the latest products on the homepage. It is controlled by a module and in order to overwrite the
template a copy of home-body.html must be placed in online/templates/frontOffice/janusvr/modules/HookProductsNew/home-body.html
- When using 3D models collada DAE files are preferred. To ensure maximum compatibility the
cull_face
attribute on the<Object> element must be set to
none`.