diff --git a/src/Resources/contao/classes/StoreLocator.php b/src/Resources/contao/classes/StoreLocator.php index 8cb9a5b..7b4cb3a 100644 --- a/src/Resources/contao/classes/StoreLocator.php +++ b/src/Resources/contao/classes/StoreLocator.php @@ -137,7 +137,12 @@ public static function parseStoreData( StoresModel $store, ?Module $module=null // create a clickable link for telephone number if( !empty($store->phone) ) { - $store->phoneLink = 'tel://'.preg_replace("|[^\+0-9]|", "", $store->phone); + $store->phoneLink = 'tel:'.preg_replace("|[^\+0-9]|", "", $store->phone); + } + + // create a clickable link for fax number + if( !empty($store->fax) ) { + $store->faxLink = 'fax:'.preg_replace("|[^\+0-9]|", "", $store->fax); } // create a "pretty" url