News:

Support the VirtueMart project and become a member

Main Menu

JSCook bug and partial fix

Started by DDPaul, July 12, 2008, 02:26:29 AM

Previous topic - Next topic

ruben-sp

Quote from: ruben-sp on April 12, 2010, 01:22:24 AM
Quote from: herbcap on January 28, 2009, 10:40:44 AM
I found a simple solution:

hack modules/mod_virtuemart/vm_JSCook.php

replace
80: '<img src=\"' + ctThemeXPBase + 'darrow.png\" alt=\"arr\" />'

with
80: '<img src=\"modules/mod_virtuemart/ThemeXP/darrow.png\" alt=\"arr\" />'

does the job for me.

This one works great for me!!

THANKS!!!

checking my site with page speed i just realized that image size is not set, so to improve SEO i just make this small modification in line 80

         $mymenu_content.= "\n[ '<img src=\"modules/mod_virtuemart/ThemeXP/darrow.png\" width=14px height=14px alt=\"arr\" />','".$db->f("category_name",false)."','".sefRelToAbs('index.php?option=com_virtuemart&page=shop.browse&category_id='.$db->f("category_id").$itemid)."',null,'".$db->f("category_name",false)."'\n ";