where I need define this and how to
Without any further information about where you see this line, it looks like a missing string in the backend language file:
yoursitename\administrator\language\en-GB\en-GB.com_virtuemart.ini
Approximately around line 791 (In my VM2 version from the SVN trunk) there should be this line:
COM_VIRTUEMART_MEDIA_NO_PATH_TYPE="Media of type %1$s has no relative URL set, Please <span style='text-decoration:underline'><a href='%2$s' title='go to configuration'>configure it first</a></span> and come back here."
The part before the "=" sign is displayed if the text right of the "=" sign is missing.
yes, but this display me as error message - where is defined path for media?
Configuration - Shopfront - Media Files Settings
The paths should be set like this:
components/com_virtuemart/assets/
images/stories/virtuemart/category/
images/stories/virtuemart/product/
images/stories/virtuemart/manufacturer/
jjk true ;) thank you
(missed slash at end)
Sugeesion:
for this files: mediahandler.php
** EDIT: link removed **
Line 41 like that:
if($type == 'product' || $type == 'products'){
$relUrl = VmConfig::get('media_product_path');
$choosed = true;
}
Replace with:
if($type == 'product' || $type == 'products'){
$relUrl = trim(VmConfig::get('media_product_path'));
if($relUrl==""){
$relUrl = "images/stories/virtuemart/product/";
}
$choosed = true;
}
Do the same way for line 59 to 71
sory for my bad english
** EDIT: Please respect the forum and community and do not advertise in posts **
yeah your solution is a nice quick dirty hack, but that should do the VmConfig object. try the version in svn, which works correct.