News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Migration from vm1 -> vm2. Problem with category images

Started by mark R, October 27, 2011, 21:54:58 PM

Previous topic - Next topic

mark R

it appears i have the same problem with new categories.

If I create a category with an image it is ok.
If I them delete that image from the new category (click save) I am then unable to add an image to the new categorie?

any help would be much appreciated
Thanks again
Seek and ye shall find.........
4 VM sites and counting

mark R

#16
It appears to be a problem with mootools and jquery...any ideas how to solve?
Seek and ye shall find.........
4 VM sites and counting

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

mark R

Hi Milbo,

I have had a play with the view page template (category/tmpl/default.php)

and if i change the line which calls the category image (taking code from the product line(which works))

echo $category->images[0]->displayMediaThumb("",false);
to
echo $category->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"');

although this breaks the link to the category the image displays ok?

Any help or pointing in the right direction would be much appreciated.

Thanks again
mark
Seek and ye shall find.........
4 VM sites and counting

PRO

<a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
               <?php echo $category->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="none"');?>
               </a>

mark R

Many thanks for your reply BanquetTable .pro but unfortunately the <a href is not working on the category image.
my original problem if that for some reason the category images are not displaying in the frontend?, but if i make the above tweaks the images would appear but the links to the actual category does not work from the picture although it works from the category name.

thanks again
Seek and ye shall find.........
4 VM sites and counting

mark R

Resolved.

Sent from my Transformer TF101 using Tapatalk
Seek and ye shall find.........
4 VM sites and counting