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

#   Passing a value to the confirmation E-Mail

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 4 months ago [\#161986](#161986) by [deank](/forum/user/11974-deank "View deank's Profile")  *[Passing a value to the confirmation E-Mail](/forum/27-checkout/869302-passing-a-value-to-the-confirmation-e-mail#161986 "-- url of the page with the problem -- :   valleycraft.com/stage/  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.19 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Firefox 30.0  I have the need to include in the administrator email notification of an order the confirmation number received from a shipping plugin. I am able to get the value in the raw XML return I receive but am having a hard time getting it into the email along with the order information. It is critical as this is needed for the shipping company to honor the quoted price the day the order is created.  I am by no means a PHP expert, but know enough that I should be able to do this without asking.  Can you please advise?  Thanks  Isaac Corey")* was created by *[deank](/forum/user/11974-deank "View deank's Profile")*

-- url of the page with the problem -- : [ valleycraft.com/stage/](http://valleycraft.com/stage/)
-- HikaShop version -- : Business 2.3.1
-- Joomla version -- : 2.5.19
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : Firefox 30.0

I have the need to include in the administrator email notification of an order the confirmation number received from a shipping plugin. I am able to get the value in the raw XML return I receive but am having a hard time getting it into the email along with the order information. It is critical as this is needed for the shipping company to honor the quoted price the day the order is created.

I am by no means a PHP expert, but know enough that I should be able to do this without asking.

Can you please advise?

Thanks

Isaac Corey

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2OTMwMi1wYXNzaW5nLWEtdmFsdWUtdG8tdGhlLWNvbmZpcm1hdGlvbi1lLW1haWw/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

12 years 4 months ago [\#162046](#162046) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Passing a value to the confirmation E-Mail](/forum/27-checkout/869302-passing-a-value-to-the-confirmation-e-mail#162046 "-- url of the page with the problem -- :   valleycraft.com/stage/  -- HikaShop version -- : Business 2.3.1 -- Joomla version -- : 2.5.19 -- PHP version -- : 5.3.28 -- Browser(s) name and version -- : Firefox 30.0  I have the need to include in the administrator email notification of an order the confirmation number received from a shipping plugin. I am able to get the value in the raw XML return I receive but am having a hard time getting it into the email along with the order information. It is critical as this is needed for the shipping company to honor the quoted price the day the order is created.  I am by no means a PHP expert, but know enough that I should be able to do this without asking.  Can you please advise?  Thanks  Isaac Corey")*

Hi,

First, create a custom order field via the menu Display&gt;Custom fields and turn off its "frontend" display option.
Then, in your plugin you can use such code:
$class = hikashop_get('class.order');
$order = new stdClass();
$order-&gt;order_id = $order_id;
$order-&gt;column = 'VALUE';
$class-&gt;save($order);

where column is the column name of your custom field and VALUE the value of the custom field.
Then, in the emails, you should be able to use such tag in order to display the value you entered in the custom field for your order:
{VAR:order.column}
where column is the column name of your custom field.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2OTMwMi1wYXNzaW5nLWEtdmFsdWUtdG8tdGhlLWNvbmZpcm1hdGlvbi1lLW1haWw/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.055 seconds

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