VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: tom_ozi on June 17, 2013, 06:22:46 AM

Title: Don't work Category Edit Link
Post by: tom_ozi on June 17, 2013, 06:22:46 AM
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.

(http://i48.fastpic.ru/thumb/2013/0617/55/5cc3b39d5ac15c65595b5559435ed655.jpeg) (http://fastpic.ru/view/48/2013/0617/5cc3b39d5ac15c65595b5559435ed655.png.html)

I see a blank sheet.
What should I do to link work?
Thank you for your help.
Title: Re: Don't work Category Edit Link
Post by: jenkinhill on June 17, 2013, 10:00:16 AM
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
Title: Re: Don't work Category Edit Link
Post by: tom_ozi on June 17, 2013, 14:22:00 PM
I have

Joomla! 2.5.8
Virtuemart 2.0.20b
PHP    5.3.23
Title: Re: Don't work Category Edit Link
Post by: tom_ozi on June 17, 2013, 17:46:29 PM
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?
Title: Re: Don't work Category Edit Link
Post by: jenkinhill on June 17, 2013, 19:43:08 PM
That requires a new thread in http://forum.virtuemart.net/index.php?board=117.0 or http://forum.virtuemart.net/index.php?board=130.0  - I can't understand what you are trying to do.
Title: Re: Don't work Category Edit Link
Post by: tom_ozi on June 18, 2013, 16:42:23 PM
OK
I am created new thread.
http://forum.virtuemart.net/index.php?topic=116537.0