Giter Club home page Giter Club logo

janusvr-ecommerce's Introduction

JanusVR e-commerce

Ecommerce implementation for JanusVR using Thelia 2.

Installation

  1. Install Composer globally
    curl -sS https://getcomposer.org/installer | php
    mv composer.phar /usr/local/bin/composer
  1. cd to the /online folder and run composer update to download the dependencies.

  2. Run php Thelia thelia:install from the /online folder and follow the instructions to install.

  3. Log into the admin panel and go to Configuration -> System Variables. Set active-front-template to janusvr so it will load the VR enabled storefront template.

Testing

  • 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-folder janusvr-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.

Administration

Creating admin account

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.

Inserting fake data & products

  1. Download Thelia as a zip file.
  2. Unzip the setup folder into the /online folder.
  3. Run php setup/import.php -b ../bootstrap.php from the /online folder to import fake data.

Editing Templates

  • 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 where MODULE_NAME is the name of the module and TEMPLATE_NAME is the filename of the template you are overriding.

Single Product

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.

Latest Products

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

3D Modelling for Products

  • 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`.

janusvr-ecommerce's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.