- Posts: 118
- Thank you received: 3
Reduce Cart Image Size
Hello, is there a way to change the image size in the cart? All other image sizes are good so I don't want to alter those, just in the cart we don't need them that large. Possible? if so, how please
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
You'll probably be able to do it with some CSS code customization like :
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.
You should use that CSS instead:
.hikashop_cart_product_image_value img{
width: 42px !important;
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Configuration/Main/Images - I changed the thumbnail size to 80 wide, this is perfect for what I want in the checkout. Although, this changed the size of the images in the product pages which should be 200 wide. How can I specify just the cart images to be one size, and the product images to be another size?
Please Log in or Create an account to join the conversation.
Well.. There is another kind of solution if the CSS does not work : the view override.
So in the view "checkout | cart" (because I suppose that you want to change the image size in the checkout cart) there is this code:
So
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Am I missing something here?
Please Log in or Create an account to join the conversation.
Are you sure to have edited the view "checkout / cart" in the correct template ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
For example, the checkout/cart.php view file is for the cart display on the checkout while the product/cart.php file is for the cart module display. So maybe you wanted to edit the cart module display and you should have edited the product/cart.php view file, or you actually wanted to edit the checkout cart display but you actually edited the other view.
Or maybe you have some caching on your website which prevented you from seeing the change ?
Please Log in or Create an account to join the conversation.
I actually have 2 different installations of hikashop. "Hikashop Starter" and "Hikashop Business".
When I do this edit in starter edition, everything works fine.
But when I do this in business edition, noting happens. And by the way, when I upgraded my starter to business, all my css got resetted. Could this be related?
Best Regards
Please Log in or Create an account to join the conversation.
So the problem is either a simple thing you overlooked when doing the change or some cache preventing you from seeing the change.
It has nothing to do with the upgrade or the CSS.
HikaShop indeed update its core CSS files on each update. That's actually Joomla doing that.
That's why, when you edit the CSS of HikaShop via the Display tab of the HikaShop configuration an override file is created so that you don't loose your changes when you update. So if you lose them, it means that you must have edited the CSS file directly instead of via the interface, which we don't recommend:
www.hikashop.com/support/support/documen...ize-the-display.html
Please Log in or Create an account to join the conversation.
On the starter, voila this works like magic... however on the business (2.4.0) nada.
Can you please do this change in any business 2.4.0 edition that you have and confirm that it actually works?? Or else I can upload my entire site and please have a look at it.
And no. I have checked cache, and even tried on different computers... nothing changes, still same thumbnail size.
Please Log in or Create an account to join the conversation.
I can do a echo "hello world" and it shows up jsut under the cart no problem under checkout. Really, its just the image size i cant change... And I don't have a clue about php...
Please Log in or Create an account to join the conversation.
I can do the change and confirm that it works.
I suppose that your issue doesn't come from the Business edition but the fact that you're using the 2.4 on that website and not on the others and that you have that bug:
www.hikashop.com/forum/install-update/87...images-shrunken.html
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.