Skip to content

Instantly share code, notes, and snippets.

@Luke1982
Luke1982 / finetuning-product-service-autocomplete-corebos.md
Last active July 28, 2021 09:57
Fine-tuning the Products/Services autocomplete

Fine-tuning the Products/Services autocomplete

There has been an update that will allow you to fine-tune the autocomplete for products and services. Let's dive in and explain how you can set the options:

First off: selecting the fields the autocomplete searches in

By default, typing something in the product lines will fire a search in the following fields by default:

Products

  • productname
  • manufacturer part no
  • vendor part no
@Luke1982
Luke1982 / create-ui10-vtlib.md
Last active April 23, 2019 14:54
create-ui10-vtlib
require_once 'vtlib/Vtiger/Module.php';

$module 		= Vtiger_Module::getInstance('MODULENAME');
$block 			= Vtiger_Block::getInstance('BLOCKLABEL', $module);

$field 			= new Vtiger_Field();
$field->name 		= 'FIELDNAME';
$field->table 		= 'TABLENAME';
$field->column = 'COLUMNNAME';
@Luke1982
Luke1982 / gist:54d08807ace2bd1931a2f537ff03109f
Created July 31, 2019 10:36
Regex to convert include style from function call to statement
### Search for
include_once\(([\'a-z/\.]*)\)
### Replace with
include_once $1
@Luke1982
Luke1982 / Tar corebos
Last active September 17, 2019 09:41
tar --exclude="./backup" --exclude="./config.inc.php" --exclude="./.git" --exclude="./.gitignore" --exclude="./install" --exclude="./install.php" -cvzf corebos.tar.gz . > /dev/null &
@Luke1982
Luke1982 / create_theme_block.sh
Created July 27, 2023 06:53
Create Gutenberg theme-block
#!/bin/bash
# Setting up the arguments variables, so we can error on empty ones later
AUTHOR=
TITLE=
NAMESPACE=
GREEN="\033[0;32m"
NOCOLOR="\033[0m"
# Getting the passed arguments