VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: ren3784 on May 28, 2012, 01:05:07 AM

Title: [SOLVED] Category Images Do Not Show Since Virtuemart Update
Post by: ren3784 on May 28, 2012, 01:05:07 AM
I had my categories in a nice row with the category images with Virtuemart 2.0. But when I updated to 2.0.6 so that I could use the USPS plugin, I had to put all of my changes back. The only thing that doesn't show are the category images. What could have changed in the code? How can I display these images?

They show in the admin section, 3 times on the images tab. So that proves that they are still there but what code can I write to make them display on the front end?

Thanx
Title: Re: Category Images Do Not Show Since Virtuemart Update
Post by: jenkinhill on May 28, 2012, 10:11:20 AM
Check to see if the images are published (checkbox on image tab for each category).
Title: Re: Category Images Do Not Show Since Virtuemart Update
Post by: ren3784 on May 28, 2012, 19:56:53 PM
Yes they are all checked.
Title: Re: Category Images Do Not Show Since Virtuemart Update
Post by: ren3784 on May 29, 2012, 22:55:33 PM
When I refresh the page, the images show for 1 second and they disappear. I looked into the source code and I see this, there are empty spans that are not in the PHP page, and the image code is supposed to be below the title anyway:

<div class="category floatleft width33 vertical-separator">
<div class="spacer">
<h2>
<a title="Bracelets" href="/index.php/shop-now/bracelets" style="visibility: visible;">
<span> </span>
Bracelets
</a>
</h2>
</div>
</div>


I tried to add a div around the category image code and that did not add anything to the stuff above. Something is hiding the images, because they are there for that 1 second before the page changes.

http://miagemma.com/index.php/shop-now
Title: Re: Category Images Do Not Show Since Virtuemart Update
Post by: jenkinhill on May 30, 2012, 10:54:32 AM
Looks like it could be a problem with your RT template/gantry - they sure are loading but then the code changes so they vanish - try a different template to see if the images appear.

If using template overrides then disable those to see if that makes a difference.
Title: Re: Category Images Do Not Show Since Virtuemart Update
Post by: ren3784 on May 30, 2012, 20:28:06 PM
The template overrides do nothing and these were the same settings I had before the upgrade.

The craziest thing is when I choose a manufacturer, then choose to view that manufacturer's products, it takes me to their product page, but the categories with their images are above them! Why do they show up here and not on the Virtuemart homepage I wonder...

But you're right, the template change made them show up on the VirtueMart homepage. What could they have added to the upgrade that made things stop working?  :'(  :'(

It is frustrating that they have you upgrade, and then you have to re-input all of your settings and changes again. I only upgraded to 2.06 so that the USPS plugin would work.
Title: Re: Category Images Do Not Show Since Virtuemart Update
Post by: jenkinhill on May 31, 2012, 00:06:38 AM
IMHO that tends to nail it down to a JavaScript conflict - the VM JS has been steadily being improved, but obviously cannot be tested in all situations.
Title: Re: Category Images Do Not Show Since Virtuemart Update
Post by: ren3784 on May 31, 2012, 18:43:47 PM
I found a solution that worked...

It was of course about my theme as we had discussed, and I use a Camber Rocket Theme. Here's the link to the solution:

http://forum.virtuemart.net/index.php?topic=98951.0

By Krisse
QuoteSolved the problem at least for my part =) (I'm using rockettheme zephyr) found out that gantry doesn't understand that there's an image after the "first" word of the title and thus builds an empty span tag on it's place thus making the images disappear. Solved it by simple turning off "Build Titles Spans" option from the Templates manager -> edit style -> advanced tab, and voĆ­la category thumbnails are showing yay!! So here's atleast one solution to this problem, don't know about if you really want to enable Titles Spans to make your titles words different color though..

Instead of getting rid of my Title spans because I like them, I just switched the title and the image tags around so that the image tag was above the h2.

Thank goodness someone figured it out. But thank you for all of your help and suggestions, jenkinhill!  ;D