News:

Looking for documentation? Take a look on our wiki

Main Menu

Image on Category product listings

Started by mkilkie, September 10, 2016, 17:56:23 PM

Previous topic - Next topic

mkilkie

Hi all,

a task i thought would be simple is turning out harder. Apologies if there are simple solutions that I have missed in documention or elsewhere in the forum.

I am on J 3.6.2 and VM3.0.16 the site is www.juicedupeliquid.co.uk, visible online.

I am trying to a) reduce size of the font used for the category title in the product list page b) add a category specific image (preferably a different one to the one I use in the category list).

I thought I remembered there was a config tick box somewhere for images on this page, but I cant find it again. Also assume that it is a simple style issue for title but Im too much noobie to know where.

As an aside I am beginning to "get" the idea of Joomla and VM layouts for overrides and willing to go for changes there but could someone explain the rationale to me. I have read and understood that the advantage of using an override is that when an update happens you dont lose your change, but surely you also miss any bugfixes, general changes in the new version?

thanks for the help

Martin

jenkinhill

Use Firebug to examine page styles. http://forum.virtuemart.net/index.php?topic=116620.0

This will show you that your Gavick template sets this style for h1 in the template.css

h1 {
    font-size: 48px;
}

Override that css with a smaller value to change the size, a simple override would resize h1 wherever it is used so to be specific for the cat page you could specify the selector as  .browse-view h1 

You can only assign one image to a category in default VM. To use a different image would require some programming and modifying the Gavick template overrides.

Normally overrides apply to .css, language strings and to the view templates - not to any core files, so there is no problem when updating. And all your default template files and default VM css are already overriden in your choice of template.

http://docs.virtuemart.net/tutorials/templating-layouts.html
https://docs.joomla.org/Understanding_Output_Overrides

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

mkilkie

thanks I will have a go at this.

What about making the image show on the category product page? Is there an option somewhere I have missed?

regards

martin

jenkinhill

#3
Quote
You can only assign one image to a category
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Milbo

You can assign more than one image, the templates just need to support it.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jenkinhill

Thanks, Max, yes you can now successfully upload more than one image for a category in the latest test VM3.0.18 (did not work in VM3.0.14 when I tried it, the thumbs were never created). The issue now is that the OP wants to use different images with different views and there is no easy way in an override to code to select the alternate image for each category when required.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum