News:

Support the VirtueMart project and become a member

Main Menu

[SOLVED] Extra Tab On Products -- Administrator

Started by tom@rocketcert.com, September 11, 2021, 22:27:15 PM

Previous topic - Next topic

tom@rocketcert.com

How can I add an extra tab on the products page (admin side)?  Ideally this tab will load a specific section of Joomla.   This tab will not have anything to do with front end -- it's just a spot that I need to remember to do something extra with the product for our admin reasons.

AH

You can do this by creating your own override for the:

product_edit.php

look for this area which shows you the tabs the product edit will create


<?php // Loading Templates in Tabs
$tabarray = array();
$tabarray['information'] = 'COM_VIRTUEMART_PRODUCT_FORM_PRODUCT_INFO_LBL';
$tabarray['YOURNEWSTUF'] = 'YOURNEWTABNAMETODISPLAY'//added by ME
$tabarray['description'] = 'COM_VIRTUEMART_PRODUCT_FORM_DESCRIPTION';
$tabarray['status'] = 'COM_VIRTUEMART_PRODUCT_FORM_PRODUCT_STATUS_LBL';
$tabarray['dimensions'] = 'COM_VIRTUEMART_PRODUCT_FORM_PRODUCT_DIM_WEIGHT_LBL';
$tabarray['images'] = 'COM_VIRTUEMART_PRODUCT_FORM_PRODUCT_IMAGES_LBL';



Then create your "YOURNEWSTUFF" with whatever it needs to display

product_edit_yournewstuff.php
Regards
A

Joomla 3.10.11
php 8.0


AH

Regards
A

Joomla 3.10.11
php 8.0

Studio 42

And do not forget to override in your admin template else you loose all changes on virtuemart update