- Posts: 966
- Thank you received: 11
Product Thumb in Wishlist and Product Orders in Backend
-- Joomla version -- : 3.8.0
1) I made the product thumb in the wish list of the customer account bigger using CSS but the image is blurry. I cannot find how to make those larger without them being blurry. It's showing the size as 50x50 via firebug, but in the backend the thumnails are 200x200. I removed the entire folder here: /images/com_hikashop/upload/thumbnails/ hoping it would recreate the thumnails at the correct size but no luck. What am I missing please? Please see attached images showing the backend set-up and the folders via FTP.
2) In the backend, where the orders are listed, I tried to add a thumb of the product image but it's not showing so I'm not sure what I'm doing wrong. I reversed the changes but I used the instructions below. Is that instruction for an older version of Hikashop or should it work with my version? If it should work I will try it again but I just wanted to confirm before.
www.hikashop.com/forum/reports-statistic...my-orders-image.html
Thanks!
Please Log in or Create an account to join the conversation.
The image size is directly in the view and not based on settings ; you need to perform an override to change the dimension for the call of the function getThumbnail.
www.hikashop.com/support/documentation/1...-display.html#layout
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
The orders section that would need editing for the image to show is view: order > show_products.php but I don't see that in displays > views. And will that code, via the link that I provided, work with the version of Hikashop that I have?
Sorry but I thought the product image would automatically be a default in the shop.
Thanks!
Please Log in or Create an account to join the conversation.
I first thought that the Nicolas' code was right but I realized a little typo.
It's not :
But if it's not the case, it will be require to load the images for the product (using a SQL query).
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
www.hikashop.com/forum/reports-statistic...o-order-history.html
www.hikashop.com/forum/reports-statistic...my-orders-image.html
It would have been really really nice if product thumbs were a default in the product orders both the backend and customer account.
Thanks!
Please Log in or Create an account to join the conversation.
Without more details about what is not working (error, warning, message, etc) I'm afraid it will be difficult to give you any hint.
About your feature request ; please read the Nicolas message in the other thread you have mentioned.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
1) What file should I edit
2) What code should I add
3) Where should I add the code
I would really like to get this working. A picture is worth a thousand words and it helps to eliminates mistakes. Please see example attached.
Thanks!
Please Log in or Create an account to join the conversation.
I will anwser you step by step :
" 1) What file should I edit "
In Main HikaShop Configuration, in Advanced tab and in Advanced settings, you will find the "Display view files option", switch it to All
Result :
With this it's easy to get which view you have to edit.
" 2) What code should I add "
The last code sent by Jerome will be fine,
" 3) Where should I add the code "
The point is to replace, the code that process and display after the :
<div id="hikashop_small_image_div<?php echo $variant_name;?>" class="hikashop_small_image_div"> around line 13
Hope this will help you
Regards
Please Log in or Create an account to join the conversation.
It's showing that the file to edit is Order > Show_Products. I don't seem to have that view in Display > Views. Please see attached.
Thanks!
Please Log in or Create an account to join the conversation.
That's normal, you have restricted the search with your front end template, here for your need you have restrict your search with your back end template (by default Isis), note that you can restrict your search for the back end only as well.
hope this will help you.
Regards
Please Log in or Create an account to join the conversation.
Thanks!
Please Log in or Create an account to join the conversation.
You'right, my bad... You haven't to replace but to add your code in order to manage thumb image.
Because in the backend order view their isn't image managing, so you have to add the code to manage it, but you can take inspiration from what you see on the product page (product/show_block_img.php).
Regards
Please Log in or Create an account to join the conversation.
I tried doing it and blew up the page
I really wish this was a default of the shop as it is an ecommerce component. Images should be included in every part of it whenever possible - it would be better to want to remove them rather than struggling to add them.
Thanks!
Please Log in or Create an account to join the conversation.
First, you have to know that an e-commerce component have to manage lots of different parameters and data, and we have to keep in mind to have a solution that must be suitable for most peoples needs.
we are close to have almost as many different needs as e-commerce.
That's why in this kind of specific demands, as you're the first, you can ask for a custom from our partner
Regards
Please Log in or Create an account to join the conversation.
So in other words you are saying... I can't help you find someone else - LooolThat's why in this kind of specific demands, as you're the first, you can ask for a custom from our partner
Thanks anyways.
Please Log in or Create an account to join the conversation.
Your questions were about adding these to the current HikaShop you already have on your website. That's only possible with complex development. That's why we recommended to have someone work on that for you.
Now if you actually wanted to request that addition to HikaShop in a future version, note that we have a feature request section on our forum for that:
www.hikashop.com/forum/2-general-talk-about-hikashop.html
I agree that it's could be a good improvement to add that. It's added to the todo list on our end. Thanks for your feedback.
Please Log in or Create an account to join the conversation.
@MyWorld
For the back-end product images modify order / show_products.php and after line 103:
add this:
and after line 117, after:
add this:
Now to show thumbs in front-end user order modify order / show.php and after line 165:
add again:
and after line 173:
add this second part of the code:
If you did it right, you should have new column in your table with image thumbs.
If you want to modify thumbs hight or width, just change this numbers bellow:
I hope you success.
Thank you
Please Log in or Create an account to join the conversation.
in order / show_products.php you need to change this line (around 60):
with this:
and in order / show.php do same thing on around line 99.
This will make table columns look corectly.
Thanks
Please Log in or Create an account to join the conversation.
Thank you. Really appreciate it kyratn. Will try it out and see how it goes.
Please Log in or Create an account to join the conversation.
This has been added with new Hikashop 4.2.0 version. So you just need to update and nothing more
Thanks
Please Log in or Create an account to join the conversation.