Thanks for pointing that out. It is incorrect in recommending just the jscript folder be carried over.
The best method for basing a template on responsive_classic is to use Clone a Template and make a clone of the responsive_classic. Then you can "adjust" to your heart's content.
There are a lot of files in other responsive_classic folders that must be present for the template just to be responsive. There are also files that are modified from template_default to add layout tags for responsive manipulation.
Case in point - in the common folder is the file main_template_vars.php. It is changed in the responsive_classic template and therefore present in the responsive_classic/common folder. The changes in the file for responsive_classic are
Code:
if (!isset($max_display_page_links)) $max_display_page_links = ($layoutType == 'mobile' ? MAX_DISPLAY_PAGE_LINKS_MOBILE : MAX_DISPLAY_PAGE_LINKS); if (!isset($paginateAsUL)) $paginateAsUL = $layoutType == 'mobile' || (isset($isMobile) && $isMobile) || (isset($isTablet) && $isTablet);
if (!isset($flag_disable_left)) {
$flag_disable_left = false;
}
if (!isset($flag_disable_right)) {
$flag_disable_right = false;
}
if (!class_exists('Mobile_Detect')) {
include_once(DIR_WS_CLASSES . 'Mobile_Detect.php');
}
if (!isset($detect)) $detect = new Mobile_Detect;
if (!isset($_SESSION['layoutType'])) $_SESSION['layoutType'] = 'legacy';
$display_as_mobile = ($detect->isMobile() || $detect->isTablet() || $_SESSION['layoutType'] == 'mobile' || $_SESSION['layoutType'] == 'tablet');
Look familiar? Those pesky columns again.
So, you can see, if you fail to take this file into your custom template; a major portion of the response to the environment (phone, tablet, desktop) is just not going to happen. The template will default to the template_default's file without the correct coding and not be responsive. There are a lot more like that.
I will be working on fixing the wording of these instructions as they have not been updated in the new Zen Cart Documentation. The wiki/faq of old is being replaced by the DOCS link you see at the top of this page. The page to be "fixed" is https://docs.zen-cart.com/user/templ...ting_template/
Bookmarks