Finally got it!!
First, I would like to share some tips.
1.) Use both file from ksookma and bn17311(in #39)
2.) If you are using v1.5.1 or above version, pls run the SQL code bn17311 provided in #68.
(Or you may not see the new added bar Featured Products Two, Featured Products Three, Featured Products Four in Admin > Catalog)
You should get the module correctly installed right now.
Second, I believe someone may need this.
So, below is my adjustment to the code.
Force the "static center-box" to scroll :
STEP 1)
includes/templates/YOURTEMPLATE/templates/tpl_modules_featured_products2.php
includes/templates/YOURTEMPLATE/templates/tpl_modules_featured_products3.php
includes/templates/YOURTEMPLATE/templates/tpl_modules_featured_products4.php
In file tpl_modules_featured_products 2, 3, 4 ,
change this
PHP Code:
<div class="centerBoxWrapper" id="featuredProducts">
to this
PHP Code:
<div class="centerBoxWrapper carousel-box" id="featuredProducts">
Then, in the same files,
change this
PHP Code:
require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
to this
PHP Code:
require($template->get_template_dir('tpl_carousel_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_carousel_display.php');
STEP 2)
includes/modules/YOURTEMPLATE/featured_products_two.php
includes/modules/YOURTEMPLATE/featured_products_three.php
includes/modules/YOURTEMPLATE/featured_products_four.php
In file featured_products two, three, four,
change this (Line #71-72)
PHP Code:
$list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => (($featured_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_price);
to this
PHP Code:
$list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsFeatured float-left ' . $additional_class . '"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => (($featured_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<div class="columnar-product-info"><div class="columnar-product-img"><a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_PRODUCT_NEW_WIDTH, IMAGE_PRODUCT_NEW_HEIGHT) . '</a></div>') . '<div class="product-box-name"><a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . substr($featured_products->fields['products_name'], 0, 22) . (strlen($featured_products->fields['products_name']) > 22 ? "..." : "") . '</a></div>' . $products_price . '</div><a class="detail-link" href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">'. DETAIL_LINK .'</a>');
STEP 3)
Done, congratulations!
BEFORE:
AFTER:
Bookmarks