[Skip to main content](#vessel-content)

#   Tracking-URL wenn versendet

##

- **[Webmediacontent](/forum/user/29080-webmediacontent "View Webmediacontent's Profile")**
- [![Webmediacontent's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29080-webmediacontent "View Webmediacontent's Profile") Topic Author
- [ Offline](/forum/user/29080-webmediacontent)

Less More

- Posts: 66
- Thank you received: 1
-
-

5 years 3 days ago -  5 years 3 days ago [\#337373](#337373) by [Webmediacontent](/forum/user/29080-webmediacontent "View Webmediacontent's Profile")  *[Tracking-URL wenn versendet](/forum/25-install-update/903543-tracking-url-wenn-versendet#337373 "-- HikaShop version -- : HikaShop Business 4.4.4  Hallo  Ich habe im englischen Forum bereits einige Posts gefunden zum Thema Trackingcode per Mail aber so richtig hat das bei mir noch nicht funktioniert und hoffe dass ich hier auf Deutsch besser folgen kann.  Ich möchte, dass wenn ich den Bestellstatus auf &quot;Versendet&quot; stelle eine Mail raus geht mit einem Trackingcode-LINK  Der Link muss so aussehen   www.post.ch/swisspost-tracking?formattedParcelCodes=xxxxx  xxxxx= ist der Code den ich vorher bei der Bestellung eingetragen habe.  im PDF ist schon mal was ich gemacht habe. Soweit funktioniert es ja auch und der Code wird angezeigt, aber selbst wenn ich den Name beim Benutzerdefinierten Feld leer lasse hat es dann vor dem Code noch ein Doppelpunkt und einen Lehrschlag davor.  Die Frage ist eigentlich nur wie ich es schaffe den Link mit dem eingetragenen Code zu verbinden?")* was created by *[Webmediacontent](/forum/user/29080-webmediacontent "View Webmediacontent's Profile")*

-- HikaShop version -- : HikaShop Business 4.4.4

Hallo

Ich habe im englischen Forum bereits einige Posts gefunden zum Thema Trackingcode per Mail aber so richtig hat das bei mir noch nicht funktioniert und hoffe dass ich hier auf Deutsch besser folgen kann.

Ich möchte, dass wenn ich den Bestellstatus auf "Versendet" stelle eine Mail raus geht mit einem Trackingcode-LINK

Der Link muss so aussehen [ www.post.ch/swisspost-tracking?formattedParcelCodes=xxxxx](https://www.post.ch/swisspost-tracking?formattedParcelCodes=xxxxx)

xxxxx= ist der Code den ich vorher bei der Bestellung eingetragen habe.

im PDF ist schon mal was ich gemacht habe. Soweit funktioniert es ja auch und der Code wird angezeigt, aber selbst wenn ich den Name beim Benutzerdefinierten Feld leer lasse hat es dann vor dem Code noch ein Doppelpunkt und einen Lehrschlag davor.

Die Frage ist eigentlich nur wie ich es schaffe den Link mit dem eingetragenen Code zu verbinden?

Last edit: 5 years 3 days ago by [Webmediacontent](/forum/user/29080-webmediacontent "View Webmediacontent's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwMzU0My10cmFja2luZy11cmwtd2Vubi12ZXJzZW5kZXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

5 years 3 days ago -  5 years 3 days ago [\#337375](#337375) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Tracking-URL wenn versendet](/forum/25-install-update/903543-tracking-url-wenn-versendet#337375 "-- HikaShop version -- : HikaShop Business 4.4.4  Hallo  Ich habe im englischen Forum bereits einige Posts gefunden zum Thema Trackingcode per Mail aber so richtig hat das bei mir noch nicht funktioniert und hoffe dass ich hier auf Deutsch besser folgen kann.  Ich möchte, dass wenn ich den Bestellstatus auf &quot;Versendet&quot; stelle eine Mail raus geht mit einem Trackingcode-LINK  Der Link muss so aussehen   www.post.ch/swisspost-tracking?formattedParcelCodes=xxxxx  xxxxx= ist der Code den ich vorher bei der Bestellung eingetragen habe.  im PDF ist schon mal was ich gemacht habe. Soweit funktioniert es ja auch und der Code wird angezeigt, aber selbst wenn ich den Name beim Benutzerdefinierten Feld leer lasse hat es dann vor dem Code noch ein Doppelpunkt und einen Lehrschlag davor.  Die Frage ist eigentlich nur wie ich es schaffe den Link mit dem eingetragenen Code zu verbinden?")*

Hi,

You should turn off the display setting of the custom field for the email.
Instead, edit the "order status notification" via the menu System&gt;Emails.
There, in the "HTML" section, you can add this: Code:

Tracking code: &lt;a href="https://www.post.ch/swisspost-tracking?formattedParcelCodes={VAR:order.trackingcode}"&gt;{VAR:order.trackingcode}&lt;/a&gt;

The "list of available tags" button there is a great help to understand which tags you can add to the emails to customize them with extra data coming from the order.

Note however, that this will display regardless of whether you have something in the custom field or not. A simple solution to this, if that's a problem, based on how your shop is setup, would be to use the "per status override" in order to only add that text in the HTML for the order statuses where you know that the tracking code has already been filled, for all the orders.
A cleaner but more complex solution would be to add PHP code in the HTML, like this: Code:

&lt;?php if(!empty($data-&gt;trackingcode)) { echo 'Tracking code: &lt;a href="https://www.post.ch/swisspost-tracking?formattedParcelCodes='.$data-&gt;trackingcode.'"&gt;'.$data-&gt;trackingcode.'&lt;/a&gt;'; }?&gt;

Last edit: 5 years 3 days ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwMzU0My10cmFja2luZy11cmwtd2Vubi12ZXJzZW5kZXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.053 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
