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

**URL:** <https://forum.shopware.com/t/ticket-system-id-links-auffullen-mit-0-auf-7-stellen/15796>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [26. September 2013 um 11:25 UTC](https://forum.shopware.com/t/ticket-system-id-links-auffullen-mit-0-auf-7-stellen/15796 "2013-09-26T11:25:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Design4stars](https://avatars.discourse-cdn.com/v4/letter/d/b5a626/32.png) [@Design4stars](https://forum.shopware.com/u/Design4stars)\
**Post date:** [26. September 2013 um 11:25 UTC](https://forum.shopware.com/t/ticket-system-id-links-auffullen-mit-0-auf-7-stellen/15796/1 "2013-09-26T11:25:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wolf\_10](https://avatars.discourse-cdn.com/v4/letter/w/f17d59/32.png) [@wolf\_10](https://forum.shopware.com/u/wolf_10)\
**Post date:** [26. September 2013 um 11:43 UTC](https://forum.shopware.com/t/ticket-system-id-links-auffullen-mit-0-auf-7-stellen/15796/2 "2013-09-26T11:43:43Z")

</div>

[http://php.net/manual/de/function.number-format.php](http://php.net/manual/de/function.number-format.php)

---

<div class="post-metadata">

**Author:** ![Design4stars](https://avatars.discourse-cdn.com/v4/letter/d/b5a626/32.png) [@Design4stars](https://forum.shopware.com/u/Design4stars)\
**Post date:** [26. September 2013 um 12:02 UTC](https://forum.shopware.com/t/ticket-system-id-links-auffullen-mit-0-auf-7-stellen/15796/3 "2013-09-26T12:02:00Z")

</div>

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 ☹ `<?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

---

<div class="post-metadata">

**Author:** ![wolf\_10](https://avatars.discourse-cdn.com/v4/letter/w/f17d59/32.png) [@wolf\_10](https://forum.shopware.com/u/wolf_10)\
**Post date:** [26. September 2013 um 12:03 UTC](https://forum.shopware.com/t/ticket-system-id-links-auffullen-mit-0-auf-7-stellen/15796/4 "2013-09-26T12:03:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wolf\_10](https://avatars.discourse-cdn.com/v4/letter/w/f17d59/32.png) [@wolf\_10](https://forum.shopware.com/u/wolf_10)\
**Post date:** [27. September 2013 um 09:56 UTC](https://forum.shopware.com/t/ticket-system-id-links-auffullen-mit-0-auf-7-stellen/15796/5 "2013-09-27T09:56:04Z")

</div>

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](http://wiki.shopware.de/%5C_doc-sw4/namespaces/global.html)
