- Posts: 14
- Thank you received: 0
Larger image on the product page?
Please Log in or Create an account to join the conversation.
- Posts: 152
- Thank you received: 0
$image = reset($variant->images);
if(!$this->config->get('thumbnail')){
to:
$image = reset($variant->images);
if(!$this->config->get('image')){
Create your own style of luxury bespoke furniture online
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 152
- Thank you received: 0
If anyone wants to do the same thing, you need to edit both instances int he PHP (as described above) and put the following line in your CSS (If you want all the images to be affected by the CSS, rather than just the initial product image):
#hikashop_product_image_main img{ XXX-STUFF-XXX; }
Create your own style of luxury bespoke furniture online
Please Log in or Create an account to join the conversation.
- Posts: 152
- Thank you received: 0
Just realised that the above styling expands the size of all the images :dry: ...Which is a problem if you have more than one image to select from for a product or a variant.
Nicolas, do you know any solutions to this? An example is at deadlink. If you select the characteristic Textile = "Black Vintage" you'll see the secondary images come up at the bottom.
I've tried adding the following to the CSS, with no success:
#hikashop_small_image_div img{height: 50px !important; width: 50px !important; border: 1px solid white;}
Any suggestions?
Create your own style of luxury bespoke furniture online
Please Log in or Create an account to join the conversation.
you should try like this:
#hikashop_product_image_main .hikashop_image_small_link img{height: 50px !important; width: 50px !important; border: 1px solid white;}
Please Log in or Create an account to join the conversation.
- Posts: 152
- Thank you received: 0
The images are now the right size but they still draw on the thumb image, meaning it's poorly rendered at a larger size.
I assume I'll need to edit: product > show.php. Do you know which lines? The only mention of Thumbnail I can find is "$height = $this->config->get('thumbnail_y');" and I assume this is just to set the height rather than source the image?
Create your own style of luxury bespoke furniture online
Please Log in or Create an account to join the conversation.
- Posts: 152
- Thank you received: 0
Sorry for pestering you Nicolas!
Create your own style of luxury bespoke furniture online
Please Log in or Create an account to join the conversation.
So i've followed this thread, been able to get my images to appear larger, as well as larger thumbnails.
However, I seem to keep coming across the same problem - I can't get the images to not be blurry after having fixed the sizing issue.
I've gone into my files - media/com_hikashop/upload and cleared out all thumbnails. But the problem still persists!
Help!
Please Log in or Create an account to join the conversation.
- Posts: 152
- Thank you received: 0
Create your own style of luxury bespoke furniture online
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Since 1.5.3, you have the possibility to set thumbnails width and height for each products listing module and menu in its hikashop options.
The thumbnails height and width on the product pages can be configured with the corresponding option in the Files tab of the config.
You don't need to use any CSS or code modification.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I am able to increase size of main picture of product in product page, however am still unable to solve the picture quality issue despite deleting all previous thumbnail files via FTP and clearing my browser cache.
Also, I realise that after adding ".hikashop_product_main_image_thumb img{width: 250px!important; height: 250px!important;}" to the frontend file, those products which have a few thumbnail pictures are having its main product image overlapped by the smaller thumbnail pictures. Meaning all the content (words and thumbnail pictures) below the main product picture did not move downwards despite the change in main product picture size.
Please help above two problems, thanks!
Please Log in or Create an account to join the conversation.
You don't need any CSS to modify the size of thumbnails. Just use the thumbnails width/height options in the Display tab of the configuration.
The image quality might come from the original image quality.
For example, if you set the options images width/height in the configuration, when you upload an image, it will be resized automatically with that size, and then a thumbnail will be generated for it with the thumbnails width/height options. So if the options images width/height have been set with a small value before uploading the image, no matter what thumbnail size you choose, the original image will have that small size.
The solution is you remove the values you have for the options images width/height and upload again your image.
Please Log in or Create an account to join the conversation.
Thanks, I am able to solve the product image problem.
However, after trying to make a smaller thumbnail picture for the product div page with ".hikashop_product_image img {width: 100px !important; height: 100px !important; }", they are able to be reduced to my desired size of 100x100px, but now there is a huge gap between picture and title, please see the following screenshot.
2nd problem, I don't know how to manually edit the size of the thumbnails in categories listing page, please see the following screenshot, the categories pictures follows my product page pictures size.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
For your products and categories listings, you should edit their options via the menu Display->Content menus/modules and set the "images width/height" options so that they take the correct size. You should not use CSS for that. Otherwise, the div around the image won't have the proper height and you will get that big blank space (which can however be corrected with a bit more CSS).
Hi Nicolas,
I am able to go to Display->Content menus/modules, but I am unable to find the settings for the "images width/height". Please guide me. Thanks!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.