News:

Looking for documentation? Take a look on our wiki

Main Menu

the order of buttons on edit page

Started by Emma Iana, October 11, 2023, 10:27:05 AM

Previous topic - Next topic

Emma Iana

Hi,
can you advise me where I need to make changes to change the order of the buttons?

I want the first button to be "save" on product edit page.

Screen: https://app.screencast.com/6nj3ohc4UlTK3


Emma Iana

#1
I found it in \administrator\components\com_virtuemart\helpers\vmviewadmin.php


if ($view == 'product' and vmAccess::manager('product.create')) {
if (vmAccess::manager('product.create')) {
JToolbarHelper::custom( 'createchild', 'new', 'new', vmText::_( 'COM_VIRTUEMART_PRODUCT_CHILD' ), false );
JToolbarHelper::custom( 'cloneproduct', 'copy', 'copy', vmText::_( 'COM_VIRTUEMART_PRODUCT_CLONE' ), false );
}
if (vmAccess::manager('ratings.edit')) {
JToolbarHelper::custom('addrating', 'default', '', vmText::_('COM_VIRTUEMART_ADD_RATING'), false);
}
}

JToolbarHelper::divider();
if (vmAccess::manager($view.'.edit')) {
JToolbarHelper::save();
JToolbarHelper::apply();
}
JToolbarHelper::cancel();
self::showHelp();
self::showACLPref($view);


is there a way to safely overwrite it?