What is it that you changed in the CSS, as I have carried out all the necessary steps as indicated by Sinbad and yourself in the above quoted post, but can't get the images to align horizontally, even though I have made every change possible to change the direction to horizontal or in a grid view.jty wrote:you need to also define 'thumb' in the controller fileThuNderGr wrote:Does this work? i get an error "undefined index thumb".
In catalog/controller/product/category.php
FINDbelow it ADDCode: Select all
$results = $this->model_catalog_category->getCategories($category_id); foreach ($results as $result) {
then a little further below, FINDCode: Select all
// if ($result['image']) { $thumb = $this->model_tool_image->resize($result['image'], $this->config->get('config_image_category_width'), $this->config->get('config_image_category_height')); } else { $thumb = ''; } //
ADD into that arrayCode: Select all
$this->data['categories'][] = array( 'name' => $result['name'] . ' (' . $product_total . ')',
Also, the css needs to be fixed. I'm getting the thumbs listed vertically. And I haven't catered for when a category doesn't have an imageCode: Select all
'thumb' => $thumb,
Thanks in advance.
Hi, Quick question.
refine search function are removed, now how to remove the useless "refine search" words ? Thank you for helping !!
refine search function are removed, now how to remove the useless "refine search" words ? Thank you for helping !!
Hi ! Here is the link below for your desired extension with no price: http://www.opencart.com/index.php?route ... on_id=9688ryancalderon wrote:Hi All! does anyone knows how to convert refine search into a dropdown <select></select> box... Many thanks in advance.
Hi all ! Here is very nice and free extension to add thumbs for subcategories: http://www.opencart.com/index.php?route ... on_id=3907
Who is online
Users browsing this forum: No registered users and 252 guests