[Vtigercrm-developers] Add multiple products to campaign

IT-Solutions4You info at its4you.sk
Thu Jun 2 10:00:49 GMT 2016


I suppose you need create N:N relation. You need somethink like this ?
First backup your vtiger installation. Then create a file at root of 
vtiger installation and run it via browser.

<?php

include_once 'vtlib/Vtiger/Module.php';

$focus=Vtiger_Module::getInstance('Campaigns');
$focus->setRelatedList(Vtiger_Module::getInstance('Products'), 'ADD 
Product',Array('ADD','SELECT'));


You will need deactivate standard 1:N relation cretaed in vtiger because 
Reports, Filters will don't work correctly.


Matus

Dňa 2. 6. 2016 o 10:44 Stuart Maynard-Keene napísal(a):
> Hi list,
>
> Is there a way to add multiple products to a campaign?
>
> Thanks
> Stu
>
> _______________________________________________
> http://www.vtiger.com/
>




More information about the vtigercrm-developers mailing list