Book Image

vtiger CRM Beginner's Guide

By : Ian D. Rossi
Book Image

vtiger CRM Beginner's Guide

By: Ian D. Rossi

Overview of this book

<p>vtiger CRM is free, full-featured, 100% Open Source CRM software ideal for small and medium businesses, with low-cost product support available to production users. It is used widely in dozens of countries with localization available in over 15 languages. If you want to manage your customer relationships successfully using one of the most dynamic CRM systems that is truly open source then this is the right book for you.</p> <p>vtiger CRM <em>Beginner's Guide</em> will show you how to unlock the power of the Open Source vtiger CRM system, to reorganize your sales processes and manage customer relationships better. It explains the basics of a CRM, going on to explain how to create a CRM using vtiger, adding extensions, plug-ins, and theming.</p> <p>This book will teach you how to organize and streamline sales processes and customer service processes and to automate routine business processes to save valuable time. With it you can empower your sales force and start increasing sales. You can get more visibility to sales performance through centralized activity management and reporting. You will understand how vtiger receives data from external systems through its API and how you can use that API to get data into vtiger. You will discover how vtiger provides many extensibility and customization features to enable your CRM solution to meet the needs of your business and how use them correctly.</p>
Table of Contents (19 chapters)
vtiger CRM
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 10, From Cub to King — Growing with vtiger


Creating a Custom Module

Question

Answer

1.A

$module = new Vtiger_Module();
$module->name = '[CUSTOM MODULE NAME HERE]';
$module->save();
$module->initWebservice();

1.B

$field1 = new Vtiger_Field();
$field1->name = '[FIELD NAME]';
$field1->label = '[FIELD LABEL]';
$field1->table = $module->basetable;
$field1->column = '[COLUMN NAME]';
$field1->columntype = '[COL TYPE]'; //e.g. 'VARCHAR(255)'
$field1->uitype = [UI TYPE]; //e.g. 1 for text field
$field1->typeofdata = '[DATA TYPE]'; //e.g. E~M for a mandatory email field
$block1->addField($field1);

1.C

$field2 = new Vtiger_Field();
$field2->name = '[FIELD NAME]';
$field2->label = '[FIELD LABEL]';
$field2->table = '[TABLE NAME]';
$field2->column = '[COLUMN NAME]';
$field2->columntype = '[COL TYPE]'; //e.g. 'VARCHAR(255)'
$field2->uitype = 10; //Use 10 for related fields
$field2->typeofdata = '[DATA TYPE]'; //e.g. V~M for a mandatory varchar field
$field2->helpinfo = 'Relate to an existing account';
$block1->addField($field2); //The block where the field will reside
$field2->setRelatedModules(Array('Accounts')); //Indicate the related module

Related fields in existing modules

Question

Answer

1

$locations=Vtiger_Module::getInstance('Location');
$locations->setRelatedList(Vtiger_Module::getInstance('Potentials'), 'Potentials',Array('ADD','SELECT'));