Ticket System, ID links auffüllen mit 0 auf 7 Stellen?

Hallo, ich würde gerne die Ticketsystem ID 7 stellig haben und links aufgefüllt mit 0 sprich das er statt #13 dann eben #0000013 machen würde…damit man im Frontend das dann halt schöner darstellen kann und nicht irgendwann da was unschön angezeigt wird, weil es keine 3 stelligen IDs mehr sind sondern 5 oder 6 stellige. Weiß jemand wie ich das bewerkstelligen kann? Gruß Michael

http://php.net/manual/de/function.number-format.php

Ahh super, danke dir. Wo genau müsste ich das dann hier einbauen? Denkemal in der /www/engine/Shopware/Plugins/Community/Core/SwagTicketSystem/Components/TicketSystem.php richtig? Aber wo da genau? Bin in PHP nicht wirklich fit :frowning: <?php //0046a if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');if(function_exists('dl')){@dl($__ln);}if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$ __ln;$__ oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname( __FILE__ );if(strlen($__id)>1&&$\_\_id[1]==':'){$\_\_id=str\_replace('\\','/',substr($\_\_id,2));$\_\_here=str\_replace('\\','/',substr($\_\_here,2));}$\_\_rd=str\_repeat('/..',substr\_count($\_\_id,'/')).$\_\_here.'/';$\_\_i=strlen($\_\_rd);while($\_\_i--){if($\_\_rd[$\_\_i]=='/'){$\_\_lp=substr($\_\_rd,0,$\_\_i).$\_\_ln;if(file\_exists($\_\_oid.$\_\_lp)){$\_\_ln=$\_\_lp;break;}}}if(function\_exists('dl')){@dl($\_\_ln);}}else{die('The file '.\_\_FILE\_\_." is corrupted.\n");}if(function\_exists('\_il\_exec')){return \_il\_exec();}echo('Site error: the file **'.\_\_FILE\_\_.'** requires the ionCube PHP Loader '.basename($\_\_ln).' to be installed by the website operator. If you are the website operator please use the [ionCube Loader Wizard](http://www.ioncube.com/lw/) to assist with installation.');exit(199); ?\> Gruß Michael

Also im Core von SW auf keinen Fall sonst ist das beim nächsten Update wieder weg.

Ich glaub das ist genau was du suchst: smarty_modifier_padding(string $str, int $width, string $break, string $fill) : string http://wiki.shopware.de/_doc-sw4/namespaces/global.html