I am a little Autistic so when I have a subcategorie I want boxes with a small picture, like I had in the old version.
But I am not able to find out how to get this to work.
My old, how I would like it, site:
http://shop.taartmonster.nl/index.php?r ... y&path=289
The new one:
http://www.taartmonster.nl/webstoretest ... y&path=190
(I added the pictures but you only see them when you click on one of the subcategories, how can I show them here??)
TIA!!!
Marielle
Building my second webshop with OC 2.1.0.2 3.0.2.0
Code: Select all
$this->data['categories'][] = array(
'name' => $result['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($data) . ')' : ''),
--- FROM HERE ---
'image'=>$this->model_tool_image->resize($result['image'], 160,125),
--- TO HERE ---
'href' => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '_' . $result['category_id'] . $url)
);
Code: Select all
$data['categories'][] = array(
'name' => $result['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->getTotalProducts($filter_data) . ')' : ''),
'image' =>$this->model_tool_image->resize($result['image'], 160,125),
'href' => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '_' . $result['category_id'] . $url)
);
Code: Select all
<?php if ($categories) { ?>
<h4><?php echo $text_refine; ?></h4>
<div class="row">
<?php foreach (array_chunk($categories, ceil(count($categories) / 4)) as $categories) { ?>
<div class="col-sm-3">
<div class="list-group">
<?php foreach ($categories as $category) { ?>
<a class="list-group-item" href="<?php echo $category['href']; ?>">
<!-- JTI MOD SubCat Image -->
<?php if($category['image']){ ?>
<img class="img-thumbnail" src="<?php echo $category['image']; ?>" alt="Category" width="160" height="125" /><br>
<?php } ?>
<!-- JTI END MOD SubCat Image -->
<?php echo $category['name']; ?></a>
<?php } ?>
</div>
</div>
<?php } ?>
</div>
<?php } ?>
At least, if I copied the correct Code ..

Good Luck!
Ernie
---
Attachments
subcat_images.jpg (92.85 KiB) Viewed 632 times
For Sale: Turnkey Top URLs with Opencart installed!
Latest Opencart LIGHT + V-Pro Test Site: http://www.hitline.info
For more Information, please contact me at: jti@jacob.ch
Free OC Extensions from the largest Github OC Archive on Earth,
560+ Repositories - from OC v.1.5.x up
on my Github Opencart Site: https://github.com/IP-CAM

Sub Category (Refine Search) Images
https://www.opencart.com/index.php?rout ... on_id=3907
For Sale: Turnkey Top URLs with Opencart installed!
Latest Opencart LIGHT + V-Pro Test Site: http://www.hitline.info
For more Information, please contact me at: jti@jacob.ch
Free OC Extensions from the largest Github OC Archive on Earth,
560+ Repositories - from OC v.1.5.x up
on my Github Opencart Site: https://github.com/IP-CAM
In the ZIP File enclosed, you find 2 files, wich shall replace your default controller file in:
1. catalog/controller/product/category.php
and the corresponding default Theme File:
2. catalog/view/theme/default/template/product/category.tpl
---
Rename the existing OC v.2.1.0.2 default files on the Server to:
1. d_category.tpl
2. d_category.php
to still have them available, if you need to change back...

and upload the two unzipped modified files into their place instead.
---
Then add some sample images to subcategories, and then,
clear out / Reset your OcModification Section and your VqMod Cache Sub,
and test for Results.
---
Untested, Good Luck

Ernie
PS. I am not sure of hand , if the<br> Tag will work swell in <ul><li> <br> </li></ul> Listings, just to mention this !

For Sale: Turnkey Top URLs with Opencart installed!
Latest Opencart LIGHT + V-Pro Test Site: http://www.hitline.info
For more Information, please contact me at: jti@jacob.ch
Free OC Extensions from the largest Github OC Archive on Earth,
560+ Repositories - from OC v.1.5.x up
on my Github Opencart Site: https://github.com/IP-CAM
Does this mean if I will go to any other theme in the near future (what probably will happen) this might not work but one of the others will do? You think??
Really really thanks a lot for your time and effort!
Building my second webshop with OC 2.1.0.2 3.0.2.0
and likely their own Stylesheet Content, and even Class-Names.
So, one has to find out first, how something has been done on a Page,
in order to 'place' modifications, to work and match the visual 'Look'.
Good Luck!
Ernie
For Sale: Turnkey Top URLs with Opencart installed!
Latest Opencart LIGHT + V-Pro Test Site: http://www.hitline.info
For more Information, please contact me at: jti@jacob.ch
Free OC Extensions from the largest Github OC Archive on Earth,
560+ Repositories - from OC v.1.5.x up
on my Github Opencart Site: https://github.com/IP-CAM
I am trying to fix my site... I added the pictures and they are fine... BUT... nnow it comes

I can not click the images to go to the products belonging to the brand I click on. I can only click the brand name.
I hope you understand what I am saying... I just dont understand this version... thanks again!
Building my second webshop with OC 2.1.0.2 3.0.2.0
<a class="list-group-item" href= Routine, and closing this Section after this:
<?php echo $category['name']; ?></a>
and if you used the same Routine, it should add the href-commend to the images as well.
Ernie
Code: Select all
<a class="list-group-item" href="<?php echo $category['href']; ?>">
<?php if($category['image']){ ?>
<img class="img-thumbnail" src="<?php echo $category['image']; ?>" alt="Category" width="160" height="125" /><br>
<?php } ?>
<?php echo $category['name']; ?></a>
For Sale: Turnkey Top URLs with Opencart installed!
Latest Opencart LIGHT + V-Pro Test Site: http://www.hitline.info
For more Information, please contact me at: jti@jacob.ch
Free OC Extensions from the largest Github OC Archive on Earth,
560+ Repositories - from OC v.1.5.x up
on my Github Opencart Site: https://github.com/IP-CAM
Users browsing this forum: No registered users and 82 guests