Responsive Theme Different Product Page View For Desktop And Mobile

I am using the responsive theme and I would like a different product page view for desktop and mobile devices.

In Admin/Settings/Appearance/Product list layout settings the Product list default view applies to both the desktop and mobile.

Is there a way to have the Grid view for Desktop and the List Without Options for the Mobile.

I am using cs-cart version 4.8.2

I am using the responsive theme and I would like a different product page view for desktop and mobile devices.

In Admin/Settings/Appearance/Product list layout settings the Product list default view applies to both the desktop and mobile.

Is there a way to have the Grid view for Desktop and the List Without Options for the Mobile.

I am using cs-cart version 4.8.2

Hello! We have the Mobile Layouts add-on that allows to configure different layouts for desktop, mobile phone and tablet. But I am afraid it will not help you to set up grid view for desktop and list without options view for mobile. These settings are global. Anyway with this add-on you can switch off unnecessary blocks for mobile or create new ones.

Please also pay attention to our Mobile Layout add-on

Thanks for the response but as I understand because the settings are global the Mobile Layout add-ons offered will not enable the Grid view for the Desktop and the List Without Options view for the Mobile.

Are there any other suggestions.

Thanks for the response but as I understand because the settings are global the Mobile Layout add-ons offered will not enable the Grid view for the Desktop and the List Without Options view for the Mobile.

Are there any other suggestions.

I am afraid, yes. Both addons do not offer such a feature. In this case additional custom development work is required.

Hello,I would need the same,grid list for desktop and list without options for mobile devices.Was anybody able to set this on ?

Hello,I would need the same,grid list for desktop and list without options for mobile devices.Was anybody able to set this on ?

If you do not find ready-to-use solution, we are ready to make this modification for you

I am using the responsive theme and I would like a different product page view for desktop and mobile devices.

In Admin/Settings/Appearance/Product list layout settings the Product list default view applies to both the desktop and mobile.

Is there a way to have the Grid view for Desktop and the List Without Options for the Mobile.

I am using cs-cart version 4.8.2

You could do it by making some checking and changes using hook get_products_layout_post in app/functions/fn.catalog.php

in app/addons/my_changes/init.php add:

fn_register_hooks(

'get_products_layout_post'

);

in app/addons/my_changes/func.php add:

    /**
     * Change selected layout
     *
     * @param array $selected_view Selected layout
     * @param array $params        Params for getting products layout
     */
    //fn_set_hook('get_products_layout_post', $selected_view, $params);

function fn_my_changes_get_products_layout_post(&$selected_view, $params){

$ua = strtolower($_SERVER["HTTP_USER_AGENT"]);
$isMob = false;
if(is_numeric(strpos($ua, "mobile")) || is_numeric(strpos($ua, "phone")) || is_numeric(strpos($ua, "android"))){
    $isMob = true;
}  
if($isMob && empty($params['layout'])){
    $selected_view = "products_without_options"; //"products_multicolumns" as alternative
}

}

HTH