obrien48:
Ok. Wow! What a stress :wacko:
Firstly thankyou SO much for all your help.
Here's how I/we did it!
- Set your columns to row in admin>configuration>IndexListing to your required amount (I wanted 6).
- Go to (/includes/modules/featured_products.php (copied to /includes/modules/YOUR_TEMPLATE/featured_products.php before you edit it)
Find:
$col_width = floor(100/$num_products_count);
} else {
$col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_FEATURED_PRODUCTS);
Change to:
$col_width = floor(YOUR_CALCULATED TOTAL NEEDED WIDTH/$num_products_count);
} else {
$col_width = floor(YOUR_CALCULATED TOTAL NEEDED WIDTH/SHOW_PRODUCT_INFO_COLUMNS_FEATURED_PRODUCTS);
- Go to /includes/templates/template_default/tpl_modules_products_featured_listing.php COPY TO /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_products_featured_listing.php
Find:
<div class="centerBoxWrapper" id="featuredProducts">
<?php
/**
* require the list_box_content template to display the product
*/
require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
?>
</div>
Add a div inside so it looks like this:
<div class="centerBoxWrapper" id="featuredProducts"><div class="featuredProductsHolder">
<?php
/**
* require the list_box_content template to display the product
*/
require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
?>
</div></div>
- Go to templates/YOUR TEMPLATE/css/stylesheet
Add:
.featuredProductsHolder {width: [YOUR TOTAL WIDTH] !important; height: [YOUR HEIGHT FOR THE SINGLE ROW] !important;}
.centerBoxWrapper { height:[YOUR CHOICE]; width:[OF SITE/CENTER COLUMN; overflow: auto;}
That's it! In the end it was quite easy just took time getting there! Now for part 2.
A link to my site
Good luck everybody and happy Zenning!
Sorry something I forgot: in > /includes/modules/YOUR TEMPLATE/featured_products.php
**Find: **
class="back"' . ' ' . 'style="width:' . $col_width .'%;">
Remove the bold part.