Instructions - How to have category and thumbnail size different (Solved)

14.07.2012 22:40
#1
jinsoku
Joomshopping forum user no avatar
Name: zia
26.03.2012
Posts: 4
Quote
Instructions - How to have category and thumbnail size different (Solved)

Hey everyone, i was trying to figure out how i could have my thumbnail sizes on my products page different to the thumbnails on my category page.

So this is how you do it.

You go your image settings on the control panel of joomshopping in the backend and you set the thumbnail size to the size you want your category image to be.

Then you navigate to the file
com_jshopping/templates/default/product/product_default.php

and on this part of the code

<img class = "jshop_img_thumb src = "<?php print $this->image_product_path?>/<?php print $image->image_thumb?>" alt = "<?php print htmlspecialchars($this->product->name)?>"

you add style="width:80px; height:100px (of course you set your own sizes)

so you end up with something like this

<img class = "jshop_img_thumb" style="width:80px; height:100px "src = "<?php print $this->image_product_path?>/<?php print $image->image_thumb?>" alt = "<?php print htmlspecialchars($this->product->name)?>"

This will make sure your thumbnail sizes on the products page will always remain this size allowing you to have your category and product thumbnail sizes to be different sizes.

Good luck and i hope this helped. I wrote this very quickly as i need to get back to work


Joomla: 1.5
 
13.06.2014 13:41
#2
sazler
Joomshopping forum user no avatar
Name: Sarah
24.06.2013
Posts: 7
Quote
Aw: Instructions - How to have category and thumbnail size different (Solved)

Brilliant, this has rescued my website. Thanks for sharing.

 


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.