News:

Support the VirtueMart project and become a member

Main Menu

[SOLVED] Category Images Do Not Show Since Virtuemart Update

Started by ren3784, May 28, 2012, 01:05:07 AM

Previous topic - Next topic

ren3784

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
Renee Heyward
Developerz Block
http://developerzblock.com

jenkinhill

Check to see if the images are published (checkbox on image tab for each 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

ren3784

Renee Heyward
Developerz Block
http://developerzblock.com

ren3784

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
Renee Heyward
Developerz Block
http://developerzblock.com

jenkinhill

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.
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

ren3784

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.
Renee Heyward
Developerz Block
http://developerzblock.com

jenkinhill

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.
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

ren3784

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
Renee Heyward
Developerz Block
http://developerzblock.com