Hidden configurations

Posted in Concepts

Why hidden configuration settings ?

Some configurations are barely used, or are only for experts, or must be set while updating the tables.

The VirtueMart configuration has its defaults delivered in the virtuemart.cfg-dist. The configuration loader tries first to load the configuration from the virtuemart_configs table. If not accessible it tries to load the virtuemart.cfg file, which is not in the installation package and therefore not overwritten. If there is no virtuemart.cfg available, the virtuemart.cfg-dist is copied as virtuemart.cfg and loaded.

So if you want to use an option for the installation like dblayoutstrict, dbpsdescsize, dbnamesize. Or an rarely used pro option which has no GUI, then you just need to get this into your configuration.

How to use a hidden configuration parameter?

  1. open the virtuemart.cfg (at /administrator/components/com_virtuemart/virtuemart.cfg)
  2. Preset any value used in VmConfig::get('myvalue','default').
    In the example, change the line myvalue=default to myvalue=mydefaultvalue
  3. Save the file 
  4. Enter the virtuemart backend:
    • For VirtueMart 3: store the configuration file once. The configuration file is load first and overwritten by the form and you should keep all settings.
    • For VirtueMart 2: you must use the button in tools "udpate config by file". Be aware that you loose your settings then.

Of course, you could theoretically set all config defaults into the virtuemart.cfg (interesting for retailers actually).

List of the hidden settings

  • dblayoutstrict
  • dbpsdescsize
  • dbnamesize
  • updelcols
  • updEngine
  • prodOnlyWLang
  • roundindig
  • vm_lfbs
  • seo_full
  • keysize
  • maskIP
  • reuseorders
  • randOrderNr
  • randOrderPw
  • full_catname_tree
  • pricesbyCurrency
  • vm_num_ratings_show

full_catname_tree

It is an option only used in the administration. It allows you to display the full path of the categories in the product. It is a usefull option when there are several categories with the same name.

List of the categories when full_catname_tree=0

category name

List of the categories when full_catname_tree=1

full category name