Larvela
Larvela

Vhost Variables for Multiple Store Support

Overview

Larvela supports multiple stores in the single instance of the code base. This is done using the "Stores" table and environment variables passed in via the vhosts configuration for the respective domain.

To implement multiple stores:

  1. Decide what store code to use for each store or variant of a main store. For example, the larvela.org site uses LARVELA_EN for an english language version.
  2. Create an entry for the additional stores in the Administration Console -- > "Stores" - > fill in all details and enter the code.
  3. Edit the domain vhosts file or use your web host providers control panel to add the SetEnv STORE_CODE <your-code-here> to each vhost url that needs to go to a new store.
  4. Reload your web servers configuration.
  5. Test each store to ensure it renders.
  6. You can now add store specific products and categories as well as SEO content.

Sample VHOST Configuration

Below is a sample of a Non-SSL Configuration, using the store code "LARVELA_EU", the store environment has been set also to "PROD", at time of writing this is a planned introduction but may be removed later.

<VirtualHost *:80>
   ServerName larvela.org
   ServerAdmin webmaster@localhost.com
   DocumentRoot /var/www/vhosts/larvela.org/dev/public
   <Directory /var/www/vhosts/larvela.org/dev/public>
     AllowOverride All
     <LimitExcept HEAD POST GET>
       Deny from all
     </LimitExcept>
   </Directory>
   SetEnv STORE_CODE LARVELA_EN
   SetEnv STORE_ENV  PROD
</VirtualHost>






About Larvela

Larvela is a Laravel 5 web application providing a fast and simple eCommerce framework and natively supports the Bootstrap Responsive UI framework. It was developed to replace aging Magento stores that had become to complicated and expensive to upgrade or maintain.

Larvela provides a host of feature you find in high end enterprise stores while still providing all the basic functions needed to enable your customers to view products and make purchases.

Larvela is currently in Beta release and is being used in production systems daily.

CONTACT INFO



Mobile:
Hours: ( )
E-Mail: gro.alevral@ofni

MAILING LIST