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

Don't work Category Edit Link

Started by tom_ozi, June 17, 2013, 06:22:46 AM

Previous topic - Next topic

tom_ozi

Hi!
I have found in the components\com_virtuemart\views\category\tmpl\default.php very interesting code.
Turned it on.
$edit_link = '';
if(!class_exists('Permissions')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'permissions.php');
if (Permissions::getInstance()->check("admin,storeadmin")) {
$edit_link = '<a href="'.JURI::root().'index.php?option=com_virtuemart&tmpl=component&view=category&task=edit&virtuemart_category_id='.$this->category->virtuemart_category_id.'">
'.JHTML::_('image', 'images/M_images/edit.png', JText::_('COM_VIRTUEMART_PRODUCT_FORM_EDIT_PRODUCT'), array('width' => 16, 'height' => 16, 'border' => 0)).'</a>';
}
echo $edit_link;


But the link that appears in the category does not work.



I see a blank sheet.
What should I do to link work?
Thank you for your help.

jenkinhill

FE editing is not yet fully implemented. Throughout VM there are code snippets added for future developments.

http://forum.virtuemart.net/index.php?topic=79799.0
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

tom_ozi

I have

Joomla! 2.5.8
Virtuemart 2.0.20b
PHP    5.3.23

tom_ozi

Maybe you're talking about. In order not to create a new theme.
How to assign a picture for a category of product image automatically?
Is that possible?

jenkinhill

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