Category Images

08.02.2011 18:45
#1
Captivating Marine
Joomshopping forum user no avatar
Name: Matt Shackelford
08.02.2011
Сообщения: 2
Quote
Category Images

How do I remove the category images so I can just have a category list. Also can the category list be on the left side, instead of at the top?


Joomla: 1.6
JoomShopping: 3.0
Website Url: http://thesaltwaterstore.com
 
08.02.2011 20:38
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25854
Quote
Aw: Category Images

change template
components\com_jshopping\templates\default\category\category_default.php

 
08.02.2011 21:11
#3
Captivating Marine
Joomshopping forum user no avatar
Name: Matt Shackelford
08.02.2011
Сообщения: 2
Quote
Aw: Category Images

Thank you for the quick reply. I do not know anything about php, however I was able to figure that out and removed the photos.

Now the category spacing is too wide. The categories need to be closer together. I looked through the php and couldn't find anything to adjust this.

I thought this would be a simple menu option to display category images or not.

 
01.09.2011 18:35
#4
Chabo Design
Joomshopping forum user no avatar
Name: Mathieu Gagnon
16.02.2011
Сообщения: 6
Quote
Aw: Category Images

You need to change the file: mainpage.php to remove the the images of the categories
Line: 16

<!--<a href = "<?php print $category->category_link;?>"><img class = "jshop_img" src = "<?php print $this->image_category_path;?>/<?php if ($category->category_image) print $category->category_image; else print $this->noimage;?>" alt="<?php print htmlspecialchars($category->name);?>" title="<?php print htmlspecialchars($category->name);?>" /></a>-->

That's it


Joomla: 1.6+
JoomShopping: Version 3.2.5
 
10.10.2011 04:13
#5
mattyau75
Joomshopping forum user no avatar
Name: Matthew
02.08.2011
Сообщения: 13
Quote
Aw: Category Images

The above certainly works if you want to completely remove the category image from BOTH category_default.php AND mainpage.php

However if you want a conditional removal of images based on if you have a Category image or not then I found the below code to work. I have left the original code in between <!--- ---> as it is always good to leave it for reference.

<!---<a href = "<?php print $category->category_link;?>"><img class = "jshop_img" src = "<?php print $this->image_category_path;?>/<?php if ($category->category_image) print $category->category_image; else print $this->noimage;?>" alt="<?php print htmlspecialchars($category->name)?>" title="<?php print htmlspecialchars($category->name)?>" /></a>--->

<a href = "<?php print $category->category_link;?>"><img class = "jshop_img" src = "<?php print $this->image_category_path;?>/<?php if ($category->category_image) print $category->category_image; else print '';?>" alt="<?php if ($category->category_image) print htmlspecialchars($category->name); else print ''?>" title="<?php print htmlspecialchars($category->name)?>" /></a>

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.