[Vtigercrm-developers] Show Service instead Product as default in Inventory Entry in VT7

Ruben Estrada rulotec1 at gmail.com
Tue May 24 01:58:42 GMT 2022


I know it's a bit late since the question was asked, but here's an answer.

There are basically 2 options:

1) If you don't use the Products module at all, just disable it and 
Services will be the default.

2) If you do use Products, then go to 
layouts/v7/modules/Inventory/partials/LineItemsContent.tpl and around 
line 88, you'll find something like:


{elseif $entityType eq '' and $PRODUCT_ACTIVE eq 'true'}
									<span class="lineItemPopup cursorPointer" 
data-popup="ProductsPopup" title="{vtranslate('Products',$MODULE)}" 
data-module-name="Products" 
data-field-name="productid">{Vtiger_Module_Model::getModuleIconPath('Products')}</span>
								{elseif $entityType eq '' and $SERVICE_ACTIVE eq 'true'}
									<span class="lineItemPopup cursorPointer" 
data-popup="ServicesPopup" title="{vtranslate('Services',$MODULE)}" 
data-module-name="Services" 
data-field-name="serviceid">{Vtiger_Module_Model::getModuleIconPath('Services')}</span>
								{else}

just switch the elseif statements, so that services is the default.



More information about the vtigercrm-developers mailing list