Question:

How can we modify the default event badge barcode?

Iris: 2 weeks ago

We have a 3rd party event manager who scans bar codes, so it is great that civiCRM renders barcodes on events.

Our problem is that the 3rd party cannot process a barcode that contains a hyphen. For the event badge, we see that the barcode contains the contactID-registrationID

How can we remove the hyphen from the barcode?

We running version 4.7.16 on Joomla 3.6.5

Answer:
Santiago: 2 weeks ago

A better approach would probably to use the Barcode hook and alter the value in there instead of overriding the core file.

https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterBarcode/