[Skip to main content](#vessel-content)

#   Change images through file manager

##

- **[Lutya](/forum/user/23439-lutya "View Lutya's Profile")**
- [![Lutya's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/23439-lutya "View Lutya's Profile") Topic Author
- [ Offline](/forum/user/23439-lutya)

Less More

- Posts: 56
- Thank you received: 0
-
-

12 years 6 months ago [\#154503](#154503) by [Lutya](/forum/user/23439-lutya "View Lutya's Profile")  *[Change images through file manager](/forum/26-product-category-display/867899-change-images-through-file-manager#154503 "I have numerous variables that need a related pictured swapped out. I figure the easiest way to do this is to just switch out the images in the /media/com&#95;hikashop/upload/ folder. The trouble is, I...")* was created by *[Lutya](/forum/user/23439-lutya "View Lutya's Profile")*

I have numerous variables that need a related pictured swapped out. I figure the easiest way to do this is to just switch out the images in the /media/com_hikashop/upload/ folder. The trouble is, I want to just swap out one image. Not that one image and all its thumbnail sizes. I've figured out I'll need to change the show_block_img view to pull the non-thumbnail version of the photo and set the image height and width in the inline styles. I just can't figure out which piece of code I need to change.

[ bellaraejewelry.com/index.php?option=com...ame=rs-64&amp;Itemid=156](http://bellaraejewelry.com/index.php?option=com_hikashop&ctrl=product&task=show&cid=3904&name=rs-64&Itemid=156)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njc4OTktY2hhbmdlLWltYWdlcy10aHJvdWdoLWZpbGUtbWFuYWdlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 6 months ago [\#154523](#154523) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Change images through file manager](/forum/26-product-category-display/867899-change-images-through-file-manager#154523 "I have numerous variables that need a related pictured swapped out. I figure the easiest way to do this is to just switch out the images in the /media/com&#95;hikashop/upload/ folder. The trouble is, I...")*

Hello,
Firstly can you give me more information about what you exactly want to do through some screenshots for example ?
Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njc4OTktY2hhbmdlLWltYWdlcy10aHJvdWdoLWZpbGUtbWFuYWdlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Lutya](/forum/user/23439-lutya "View Lutya's Profile")**
- [![Lutya's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/23439-lutya "View Lutya's Profile") Topic Author
- [ Offline](/forum/user/23439-lutya)

Less More

- Posts: 56
- Thank you received: 0
-
-

12 years 6 months ago [\#154599](#154599) by [Lutya](/forum/user/23439-lutya "View Lutya's Profile")  Replied by *[Lutya](/forum/user/23439-lutya "View Lutya's Profile")* on topic *[Change images through file manager](/forum/26-product-category-display/867899-change-images-through-file-manager#154599 "I have numerous variables that need a related pictured swapped out. I figure the easiest way to do this is to just switch out the images in the /media/com&#95;hikashop/upload/ folder. The trouble is, I...")*

All these variants have the same image:
image missing http://www.masseffectmedia.com/Images/Variants.png

Instead of going into each one in the system, I'd like to just swap out the image file in the folder. The problem is, the thumbnail is pulled from **/media/com\_hikashop/upload/thumbnail\_200x200/** and the squeeze box image is pulled from **/media/com\_hikashop/upload/**.
image missing http://www.masseffectmedia.com/Images/thumbnail.jpgimage missing http://www.masseffectmedia.com/Images/product.jpg

I don't want to have to change out the image file in two locations. So instead I thought I would code the system to pull both images from **/media/com\_hikashop/upload/** and just style the thumbnail to the correct height and width.

I think I need to change the code in the **show\_block\_img** view to do this but I don't know how. I think it might be something in this line though: Code:

&lt;?php echo $this-&gt;image-&gt;display(@$image-&gt;file_path,true,@$image-&gt;file_name,'id="hikashop_main_image'.$variant_name.'" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_link"', $width, $height); if(!empty($this-&gt;element-&gt;badges)) $this-&gt;classbadge-&gt;placeBadges($this-&gt;image, $this-&gt;element-&gt;badges, '0', '0'); ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njc4OTktY2hhbmdlLWltYWdlcy10aHJvdWdoLWZpbGUtbWFuYWdlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

12 years 6 months ago [\#154619](#154619) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change images through file manager](/forum/26-product-category-display/867899-change-images-through-file-manager#154619 "I have numerous variables that need a related pictured swapped out. I figure the easiest way to do this is to just switch out the images in the /media/com&#95;hikashop/upload/ folder. The trouble is, I...")*

As you're using an old version of HikaShop (or at least of the show_block_img view file), the code of the show_block_img view file just calls the display function of the file administrator/components/com_hikashop/helpers/image.php where the actual generation of the thumbnails and links to the thumbnail/image is done. So that in that image.php file that you would need to change the code in order to not use the thumbnails but directly the main page.

The following user(s) said Thank You: [Lutya](/forum/user/23439-lutya "View Lutya's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njc4OTktY2hhbmdlLWltYWdlcy10aHJvdWdoLWZpbGUtbWFuYWdlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Lutya](/forum/user/23439-lutya "View Lutya's Profile")**
- [![Lutya's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/23439-lutya "View Lutya's Profile") Topic Author
- [ Offline](/forum/user/23439-lutya)

Less More

- Posts: 56
- Thank you received: 0
-
-

12 years 6 months ago -  12 years 6 months ago [\#154737](#154737) by [Lutya](/forum/user/23439-lutya "View Lutya's Profile")  Replied by *[Lutya](/forum/user/23439-lutya "View Lutya's Profile")* on topic *[Change images through file manager](/forum/26-product-category-display/867899-change-images-through-file-manager#154737 "I have numerous variables that need a related pictured swapped out. I figure the easiest way to do this is to just switch out the images in the /media/com&#95;hikashop/upload/ folder. The trouble is, I...")*

There is no helpers folder in administrator/components/com_hikashop/ and image.php isn't in any of the folders that are there.

There is controllers, fields, params, and views and the files are hikashop.php, index.html, router.php, self_ext.php.

**Edit**: Never mind, I don't know where I was looking but I found it. Maybe I needed to refresh my view.

Last edit: 12 years 6 months ago by [Lutya](/forum/user/23439-lutya "View Lutya's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njc4OTktY2hhbmdlLWltYWdlcy10aHJvdWdoLWZpbGUtbWFuYWdlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.944 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
