Hi, I have a fix for this.
From your suggestion of checking out the beez template I was able to determine that if the images cannot be found the text alternative will be displayed exactly as it looks in your link.
The images were exactly where they were supposed to be. So I looked at the code that generated the URL for the image and broke it down piece by piece. There was something missing. Quite small, surprised I caught it.
In the file html/com_virtuemart/productdetails/default.php on line 377
After $templateName there was no “. DS .” code to add a forward slash to the URL.
This is what it was:
- Code: Select all
<div class="availability">
<?php echo (file_exists(JPATH_BASE . DS . 'templates' . DS . $templateName . 'images' . DS . 'vm' . DS . 'availability' . DS . VmConfig::get('rised_availability'))) ? JHTML::image(JURI::root() . 'templates/' . $templateName . '/images/vm/availability/' . VmConfig::get('rised_availability', '7d.gif'), VmConfig::get('rised_availability', '7d.gif'), array('class' => 'availability')) : VmConfig::get('rised_availability'); ?>
</div>
This is what It should be:
- Code: Select all
<div class="availability">
<?php echo (file_exists(JPATH_BASE . DS . 'templates' . DS . $templateName . DS . 'images' . DS . 'vm' . DS . 'availability' . DS . VmConfig::get('rised_availability'))) ? JHTML::image(JURI::root() . 'templates/' . $templateName . '/images/vm/availability/' . VmConfig::get('rised_availability', '7d.gif'), VmConfig::get('rised_availability', '7d.gif'), array('class' => 'availability')) : VmConfig::get('rised_availability'); ?>
</div>
That solved the problem.
Red