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 3.0.2.0
https://shop.taartmonster.nl/
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
---
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Thanks for your post, I am not at home right now but will try it tonight!
I will let you know.
Thanks again!
Building my second webshop with OC 3.0.2.0
https://shop.taartmonster.nl/
Sub Category (Refine Search) Images
https://www.opencart.com/index.php?rout ... on_id=3907
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Building my second webshop with OC 3.0.2.0
https://shop.taartmonster.nl/
Building my second webshop with OC 3.0.2.0
https://shop.taartmonster.nl/
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 !
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
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 3.0.2.0
https://shop.taartmonster.nl/
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
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
But thanks!! A lot
Building my second webshop with OC 3.0.2.0
https://shop.taartmonster.nl/
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 3.0.2.0
https://shop.taartmonster.nl/
<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>
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Users browsing this forum: No registered users and 205 guests