lightspeedretail / webstore

Web Store eCommerce solution for Lightspeed
http://www.lightspeedpos.com/webstore
Open Software License 3.0
85 stars 63 forks source link

Change viewsets #634

Closed adrianricardo closed 10 years ago

adrianricardo commented 10 years ago

i read about viewsets here https://github.com/lightspeedretail/webstore/wiki/Viewsets-and-Bootstrap

How do you switch to cities2 viewset?

I see this block of code in Controller.php that sets the viewset depending on the theme info but can't seem to find where to set the change for the theme.

$strViewset = Yii::app()->theme->info->viewset;
        if(!empty($strViewset))
            Yii::app()->setViewPath(Yii::getPathOfAlias('application')."/views-".$strViewset);

I tried changed the viewset setting in config.xml and also the "VIEWSET" row in xlsws_configuration table with no luck. Where do i change from cities to cities2?

adrianricardo commented 10 years ago

Also, will changing the viewset automatically load Bootstrap 3 instead of Bootstrap 2?

tylerforesthauser commented 10 years ago

@adrianricardo You should reference this wiki page and look specifically at the following variables:

protected $bootstrap = null;
protected $viewset = "cities";

You can set $viewset to "cities2" to use the second viewset and then set $bootstrap to "bootstrap3" to use Bootstrap 3 instead of Bootstrap 2.

Hope that helps!

adrianricardo commented 10 years ago

@tylerforesthauser thanks!