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

#   Display Generated coupon on thank you message

##

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

Less More

- Posts: 10
- Thank you received: 0
-
-

12 years 5 months ago [\#156508](#156508) by [luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")  *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#156508 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")* was created by *[luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")*

Hi All;

I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?

I'm using the latest version with Joomla 2.5

Many thanks

Lucio

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 5 months ago [\#156513](#156513) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#156513 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")*

Hi,

To be able to display the coupon in the "thank you" page, we have to be sure that the order is right confirmed when the "thank you" page is displayed.
If the order is not confirmed, HikaSerial might not have create the serial, or assign it.
We have to be sure that the order is confirmed in this page if we want to add some code to load the serial and display it, otherwise we won't find any data to display.

I hope my explanations are clear enough.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

12 years 5 months ago [\#156580](#156580) by [luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")  Replied by *[luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")* on topic *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#156580 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")*

Hi Jerone

thank you for your quick answer.

I'm planning to display the coupon after the sale has been completed via credit card.

Is it easy to implement , pls?

Thanks

Lucio

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 5 months ago [\#156598](#156598) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#156598 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")*

Hi,

In the "hikashop &#124; front-end &#124; your_frontend_template &#124; checkout &#124; after_end" view.
You can use the code below to retrieve the serials for the order: Code:

if(!empty($this-&gt;order)) { $filename = rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikaserial'.DS.'helpers'.DS.'helper.php'; if(file_exists($filename) &amp;&amp; include_once($filename)) { $db = JFactory::getDBO(); $serialConfig = hikaserial::config(); $display_serial_statuses = $serialConfig-&gt;get('display_serial_statuses',''); if(empty($display_serial_statuses)) $display_serial_statuses = array($serialConfig-&gt;get('used_serial_status','used')); else $display_serial_statuses = explode(',', $display_serial_statuses); foreach($display_serial_statuses as &amp;$s) { $s = $db-&gt;Quote($s); } unset($s); $query = 'SELECT serial.*, pack.*, order_product.*, u.user_cms_id FROM '. hikaserial::table('serial') . ' as serial '. 'INNER JOIN '. hikaserial::table('pack') . ' as pack ON serial.serial_pack_id = pack.pack_id '. 'LEFT JOIN ' . hikaserial::table('shop.order_product') . ' as order_product ON serial.serial_order_product_id = order_product.order_product_id '. 'LEFT JOIN ' . hikaserial::table('shop.user') . ' AS u ON serial.serial_user_id = u.user_id '. 'WHERE serial.serial_status IN ('.implode(',',$display_serial_statuses).') AND serial.serial_order_id = ' . $this-&gt;order-&gt;order_id; $db-&gt;setQuery($query); $serials = $db-&gt;loadObjectList(); // // Display the serials with the variable $serials // } }

Kind regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

12 years 5 months ago [\#156622](#156622) by [luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")  Replied by *[luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")* on topic *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#156622 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")*

Hi Jerome

i'm assuming when you say:

"In the "hikashop &#124; front-end &#124; your_frontend_template &#124; checkout &#124; after_end" view"

For me to go to:

Login as admin to Joomla
Go to the HikaShop Component
Displays
Views
Filter by my template "rt_lumiere'
Find the CheckOut then edit the after_end file.

If thats correct, i do not have the Checkout to after_end file.

How can i get that pls?

Thanks

Lucio

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 5 months ago [\#156623](#156623) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#156623 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")*

Hi,

I means that :
[ ![hd3bf0df.jpg](/forum/attachment/17362) ](/forum/attachment/17362 "hd3bf0df.jpg")

Or in the demo website: [ click here](http://demo.hikashop.com/administrator/index.php?option=com_hikashop&ctrl=view&task=edit&id=0|hagane|component|com_hikashop|checkout|after_end.php)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

- [ ![hd3bf0df.jpg](/forum/attachment/17362) ](/forum/attachment/17362 "hd3bf0df.jpg") [ ](/forum/attachment/17362?download=1 "hd3bf0df.jpg")

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

12 years 5 months ago [\#156626](#156626) by [luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")  Replied by *[luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")* on topic *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#156626 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")*

Got it Thanks!

i'm pasting the code before the line:

$app = JFactory::getApplication();
$app-&gt;enqueueMessage( JText::_('THANK_YOU_FOR_PURCHASE') );

And will use the $serials

Hope thats ok

Thanks

Lucio

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

12 years 5 months ago -  12 years 5 months ago [\#156785](#156785) by [luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")  Replied by *[luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")* on topic *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#156785 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")*

Hi Jerone

I have added the following code to the after_end.php Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.3.0 * @author hikashop.com * @copyright (C) 2010-2014 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;?php if(!empty($this-&gt;order)) { $filename = rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikaserial'.DS.'helpers'.DS.'helper.php'; if(file_exists($filename) &amp;&amp; include_once($filename)) { $db = JFactory::getDBO(); $serialConfig = hikaserial::config(); $display_serial_statuses = $serialConfig-&gt;get('display_serial_statuses',''); if(empty($display_serial_statuses)) $display_serial_statuses = array($serialConfig-&gt;get('used_serial_status','used')); else $display_serial_statuses = explode(',', $display_serial_statuses); foreach($display_serial_statuses as &amp;$s) { $s = $db-&gt;Quote($s); } unset($s); $query = 'SELECT serial.*, pack.*, order_product.*, u.user_cms_id FROM '. hikaserial::table('serial') . ' as serial '. 'INNER JOIN '. hikaserial::table('pack') . ' as pack ON serial.serial_pack_id = pack.pack_id '. 'LEFT JOIN ' . hikaserial::table('shop.order_product') . ' as order_product ON serial.serial_order_product_id = order_product.order_product_id '. 'LEFT JOIN ' . hikaserial::table('shop.user') . ' AS u ON serial.serial_user_id = u.user_id '. 'WHERE serial.serial_status IN ('.implode(',',$display_serial_statuses).') AND serial.serial_order_id = ' . $this-&gt;order-&gt;order_id; $db-&gt;setQuery($query); $serials = $db-&gt;loadObjectList(); // // Display the serials with the variable $serials // echo "Please make a note of your voucher code: " . $serials; } } $app = JFactory::getApplication(); $app-&gt;enqueueMessage( JText::_('THANK_YOU_FOR_PURCHASE') );

And unfortunately it does not echo anything, if feels that the IF statement isn't working

Thanks

Lucio

Last edit: 12 years 5 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] is nice !!

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 5 months ago [\#156793](#156793) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#156793 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")*

Hi,

You can use a Code:

var_dump($this-&gt;order);

To see the content of the variable.
If the is nothing in the order, HikaSerial won't be able to display anything because there is no validated order when the page "after_end" is displayed.
Without order, it is not possible to display the serials.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

12 years 5 months ago [\#156840](#156840) by [luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")  Replied by *[luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")* on topic *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#156840 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")*

Hi

I've pasted the code var_dump($this-&gt;order);

And it didn't print anything!

Why is that pls? Is it possible to fix pls?

Thanks

Lucio

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 5 months ago [\#156848](#156848) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#156848 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")*

Hi,

Anything or "null" ?

If you had anything, are you sure you edited the view for the right template ?

If you had "null", it means that the order is not confirmed or accessible while displaying the page.
At this moment I don't have specific idea for a patch and I guess that I will ask to the rest of the HikaShop team.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

12 years 5 months ago [\#156993](#156993) by [luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")  Replied by *[luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")* on topic *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#156993 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")*

Hi Jerone

I'm sure i'm editing the right file, pls see picture below:

[ ![hfb15e4b.png](/forum/attachment/17419) ](/forum/attachment/17419 "hfb15e4b.png")

And didn't get any thing printed from the var_dump, it feels that the after_end file is not executed.

Thanks

- [ ![hfb15e4b.png](/forum/attachment/17419) ](/forum/attachment/17419 "hfb15e4b.png") [ ](/forum/attachment/17419?download=1 "hfb15e4b.png")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 5 months ago [\#157002](#157002) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#157002 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")*

Hi,

The "after_end" is called when the customer have completed his order and return to the website.
It is the page where you see the "thank you for your order".

The other solution will be to redirect the user to another page, like the order page (in his user control panel).
And in this page, the serial will be displayed. You can edit the way that the serials are display using the HikaSerial views.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

12 years 5 months ago [\#157104](#157104) by [luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")  Replied by *[luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")* on topic *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#157104 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")*

Hi J

I'm using the HkaShop Credit card payment option, could that be the problem?

The order is marked as shipped when the transaction is done.
thanks

Lucio

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

12 years 5 months ago [\#157131](#157131) by [luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")  Replied by *[luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")* on topic *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#157131 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")*

I've setup a PayPal payment option and i got the following from the dump, but no serial!

var dump Start: object(stdClass)#954 (40) { ["order_id"]=&gt; string(2) "17" ["order_billing_address_id"]=&gt; string(1) "1" ["order_shipping_address_id"]=&gt; string(1) "1" ["order_user_id"]=&gt; string(1) "6" ["order_status"]=&gt; string(9) "confirmed" ["order_type"]=&gt; string(4) "sale" ["order_number"]=&gt; string(3) "T17" ["order_created"]=&gt; string(10) "1400862269" ["order_modified"]=&gt; string(10) "1400862319" ["order_invoice_id"]=&gt; string(2) "16" ["order_invoice_number"]=&gt; string(3) "S16" ["order_invoice_created"]=&gt; string(10) "1400862319" ["order_currency_id"]=&gt; string(1) "4" ["order_full_price"]=&gt; string(7) "0.01000" ["order_tax_info"]=&gt; array(1) { ["VAT"]=&gt; object(stdClass)#951 (3) { ["tax_namekey"]=&gt; string(3) "VAT" ["tax_rate"]=&gt; string(7) "0.20000" ["tax_amount"]=&gt; float(0) } } ["order_discount_code"]=&gt; string(0) "" ["order_discount_price"]=&gt; string(7) "0.00000" ["order_discount_tax"]=&gt; string(7) "0.00000" ["order_payment_id"]=&gt; string(1) "2" ["order_payment_method"]=&gt; string(6) "paypal" ["order_payment_price"]=&gt; string(7) "0.00000" ["order_payment_params"]=&gt; string(0) "" ["order_shipping_id"]=&gt; string(0) "" ["order_shipping_method"]=&gt; string(0) "" ["order_shipping_price"]=&gt; string(7) "0.00000" ["order_shipping_tax"]=&gt; string(7) "0.00000" ["order_shipping_params"]=&gt; string(0) "" ["order_partner_id"]=&gt; string(1) "0" ["order_partner_price"]=&gt; string(7) "0.00000" ["order_partner_paid"]=&gt; string(1) "0" ["order_partner_currency_id"]=&gt; string(1) "0" ["order_ip"]=&gt; string(12) "10.70.25.101" ["customer"]=&gt; object(stdClass)#950 (29) { ["user_id"]=&gt; string(1) "6" ["user_cms_id"]=&gt; string(3) "586" ["user_email"]=&gt; string(24) "xxxx@hotmail.com" ["user_partner_email"]=&gt; string(0) "" ["user_params"]=&gt; object(stdClass)#949 (0) { } ["user_partner_id"]=&gt; string(1) "0" ["user_partner_price"]=&gt; string(7) "0.00000" ["user_partner_paid"]=&gt; string(1) "0" ["user_created_ip"]=&gt; string(12) "10.70.34.185" ["user_unpaid_amount"]=&gt; string(7) "0.00000" ["user_partner_currency_id"]=&gt; string(1) "0" ["user_created"]=&gt; string(10) "1399911993" ["user_currency_id"]=&gt; string(1) "0" ["user_partner_activated"]=&gt; string(1) "0" ["id"]=&gt; string(3) "586" ["name"]=&gt; string(14) "xxxxxxx" ["username"]=&gt; string(5) "xxxxx" ["email"]=&gt; string(24) "xxxxx@hotmail.com" ["password"]=&gt; string(34) "xxxxx" ["user type"]=&gt; string(0) "" ["block"]=&gt; string(1) "0" ["sendEmail"]=&gt; string(1) "0" ["registerDate"]=&gt; string(19) "2014-05-12 16:26:32" ["lastvisitDate"]=&gt; string(19) "2014-05-23 16:22:53" ["activation"]=&gt; string(0) "" ["params"]=&gt; string(44) "{"site_language":"en-GB","language":"en-GB"}" ["lastResetTime"]=&gt; string(19) "0000-00-00 00:00:00" ["resetCount"]=&gt; string(1) "0" ["user agent"]=&gt; string(0) "" } ["order_subtotal"]=&gt; float(0.01) ["shipping_address"]=&gt; object(stdClass)#947 (19) { ["address_id"]=&gt; string(1) "1" ["address_user_id"]=&gt; string(1) "6" ["address_title"]=&gt; string(2) "Mr" ["address_firstname"]=&gt; string(5) "xxxx" ["address_middle_name"]=&gt; NULL ["address_lastname"]=&gt; string(![8)](/media/kunena/emoticons/9.png "8)") "xxxxx" ["address_company"]=&gt; NULL ["address_street"]=&gt; string(6) "xxxxx" ["address_street2"]=&gt; string(0) "" ["address_post_code"]=&gt; string(0) "" ["address_city"]=&gt; string(6) "qweqwe" ["address_telephone"]=&gt; string(9) "312313123" ["address_telephone2"]=&gt; NULL ["address_fax"]=&gt; NULL ["address_state"]=&gt; string(13) "Aberdeenshire" ["address_country"]=&gt; string(14) "United Kingdom" ["address_published"]=&gt; string(1) "1" ["address_vat"]=&gt; NULL ["address_default"]=&gt; string(1) "1" } ["fields"]=&gt; array(9) { ["address_title"]=&gt; object(stdClass)#945 (19) { ["field_id"]=&gt; string(1) "1" ["field_table"]=&gt; string(7) "address" ["field_realname"]=&gt; string(5) "Title" ["field_namekey"]=&gt; string(13) "address_title" ["field_type"]=&gt; string(14) "singledropdown" ["field_value"]=&gt; string(95) "Mr::HIKA_TITLE_MR Mrs::HIKA_TITLE_MRS Miss::HIKA_TITLE_MISS Ms::HIKA_TITLE_MS Dr::HIKA_TITLE_DR" ["field_published"]=&gt; string(1) "1" ["field_ordering"]=&gt; string(1) "1" ["field_options"]=&gt; string(107) "a:5:{s:12:"error message";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";}" ["field_core"]=&gt; string(1) "1" ["field_required"]=&gt; string(1) "1" ["field_default"]=&gt; string(0) "" ["field_access"]=&gt; string(3) "all" ["field_categories"]=&gt; string(3) "all" ["field_with_sub_categories"]=&gt; string(1) "0" ["field_frontcomp"]=&gt; string(1) "1" ["field_backend"]=&gt; string(1) "1" ["field_backend_listing"]=&gt; string(1) "0" ["field_display"]=&gt; string(0) "" } ["address_firstname"]=&gt; object(stdClass)#944 (19) { ["field_id"]=&gt; string(1) "2" ["field_table"]=&gt; string(7) "address" ["field_realname"]=&gt; string(9) "Firstname" ["field_namekey"]=&gt; string(17) "address_firstname" ["field_type"]=&gt; string(4) "text" ["field_value"]=&gt; string(0) "" ["field_published"]=&gt; string(1) "1" ["field_ordering"]=&gt; string(1) "2" ["field_options"]=&gt; string(107) "a:5:{s:12:"error message";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";}" ["field_core"]=&gt; string(1) "1" ["field_required"]=&gt; string(1) "1" ["field_default"]=&gt; string(0) "" ["field_access"]=&gt; string(3) "all" ["field_categories"]=&gt; string(3) "all" ["field_with_sub_categories"]=&gt; string(1) "0" ["field_frontcomp"]=&gt; string(1) "1" ["field_backend"]=&gt; string(1) "1" ["field_backend_listing"]=&gt; string(1) "0" ["field_display"]=&gt; string(0) "" } ["address_lastname"]=&gt; object(stdClass)#943 (19) { ["field_id"]=&gt; string(1) "4" ["field_table"]=&gt; string(7) "address" ["field_realname"]=&gt; string(![8)](/media/kunena/emoticons/9.png "8)") "Lastname" ["field_namekey"]=&gt; string(16) "address_lastname" ["field_type"]=&gt; string(4) "text" ["field_value"]=&gt; string(0) "" ["field_published"]=&gt; string(1) "1" ["field_ordering"]=&gt; string(1) "4" ["field_options"]=&gt; string(107) "a:5:{s:12:"error message";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";}" ["field_core"]=&gt; string(1) "1" ["field_required"]=&gt; string(1) "1" ["field_default"]=&gt; string(0) "" ["field_access"]=&gt; string(3) "all" ["field_categories"]=&gt; string(3) "all" ["field_with_sub_categories"]=&gt; string(1) "0" ["field_frontcomp"]=&gt; string(1) "1" ["field_backend"]=&gt; string(1) "1" ["field_backend_listing"]=&gt; string(1) "0" ["field_display"]=&gt; string(0) "" } ["address_street"]=&gt; object(stdClass)#942 (19) { ["field_id"]=&gt; string(1) "6" ["field_table"]=&gt; string(7) "address" ["field_realname"]=&gt; string(6) "Street" ["field_namekey"]=&gt; string(14) "address_street" ["field_type"]=&gt; string(4) "text" ["field_value"]=&gt; string(0) "" ["field_published"]=&gt; string(1) "1" ["field_ordering"]=&gt; string(1) "6" ["field_options"]=&gt; string(107) "a:5:{s:12:"error message";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";}" ["field_core"]=&gt; string(1) "1" ["field_required"]=&gt; string(1) "1" ["field_default"]=&gt; string(0) "" ["field_access"]=&gt; string(3) "all" ["field_categories"]=&gt; string(3) "all" ["field_with_sub_categories"]=&gt; string(1) "0" ["field_frontcomp"]=&gt; string(1) "1" ["field_backend"]=&gt; string(1) "1" ["field_backend_listing"]=&gt; string(1) "0" ["field_display"]=&gt; string(0) "" } ["address_post_code"]=&gt; object(stdClass)#941 (19) { ["field_id"]=&gt; string(1) "8" ["field_table"]=&gt; string(7) "address" ["field_realname"]=&gt; string(9) "Post code" ["field_namekey"]=&gt; string(17) "address_post_code" ["field_type"]=&gt; string(4) "text" ["field_value"]=&gt; string(0) "" ["field_published"]=&gt; string(1) "1" ["field_ordering"]=&gt; string(1) "8" ["field_options"]=&gt; string(107) "a:5:{s:12:"error message";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";}" ["field_core"]=&gt; string(1) "1" ["field_required"]=&gt; string(1) "0" ["field_default"]=&gt; string(0) "" ["field_access"]=&gt; string(3) "all" ["field_categories"]=&gt; string(3) "all" ["field_with_sub_categories"]=&gt; string(1) "0" ["field_frontcomp"]=&gt; string(1) "1" ["field_backend"]=&gt; string(1) "1" ["field_backend_listing"]=&gt; string(1) "0" ["field_display"]=&gt; string(0) "" } ["address_city"]=&gt; object(stdClass)#940 (19) { ["field_id"]=&gt; string(1) "9" ["field_table"]=&gt; string(7) "address" ["field_realname"]=&gt; string(4) "City" ["field_namekey"]=&gt; string(12) "address_city" ["field_type"]=&gt; string(4) "text" ["field_value"]=&gt; string(0) "" ["field_published"]=&gt; string(1) "1" ["field_ordering"]=&gt; string(1) "9" ["field_options"]=&gt; string(107) "a:5:{s:12:"error message";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";}" ["field_core"]=&gt; string(1) "1" ["field_required"]=&gt; string(1) "1" ["field_default"]=&gt; string(0) "" ["field_access"]=&gt; string(3) "all" ["field_categories"]=&gt; string(3) "all" ["field_with_sub_categories"]=&gt; string(1) "0" ["field_frontcomp"]=&gt; string(1) "1" ["field_backend"]=&gt; string(1) "1" ["field_backend_listing"]=&gt; string(1) "0" ["field_display"]=&gt; string(0) "" } ["address_telephone"]=&gt; object(stdClass)#939 (19) { ["field_id"]=&gt; string(2) "10" ["field_table"]=&gt; string(7) "address" ["field_realname"]=&gt; string(9) "Telephone" ["field_namekey"]=&gt; string(17) "address_telephone" ["field_type"]=&gt; string(4) "text" ["field_value"]=&gt; string(0) "" ["field_published"]=&gt; string(1) "1" ["field_ordering"]=&gt; string(2) "10" ["field_options"]=&gt; string(107) "a:5:{s:12:"error message";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:4:"size";s:0:"";s:6:"format";s:0:"";}" ["field_core"]=&gt; string(1) "1" ["field_required"]=&gt; string(1) "1" ["field_default"]=&gt; string(0) "" ["field_access"]=&gt; string(3) "all" ["field_categories"]=&gt; string(3) "all" ["field_with_sub_categories"]=&gt; string(1) "0" ["field_frontcomp"]=&gt; string(1) "1" ["field_backend"]=&gt; string(1) "1" ["field_backend_listing"]=&gt; string(1) "0" ["field_display"]=&gt; string(0) "" } ["address_state"]=&gt; object(stdClass)#938 (19) { ["field_id"]=&gt; string(2) "13" ["field_table"]=&gt; string(7) "address" ["field_realname"]=&gt; string(5) "State" ["field_namekey"]=&gt; string(13) "address_state" ["field_type"]=&gt; string(4) "zone" ["field_value"]=&gt; string(0) "" ["field_published"]=&gt; string(1) "1" ["field_ordering"]=&gt; string(2) "13" ["field_options"]=&gt; string(135) "a:6:{s:12:"error message";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:9:"zone_type";s:5:"state";s:4:"size";s:0:"";s:6:"format";s:0:"";}" ["field_core"]=&gt; string(1) "1" ["field_required"]=&gt; string(1) "1" ["field_default"]=&gt; string(0) "" ["field_access"]=&gt; string(3) "all" ["field_categories"]=&gt; string(3) "all" ["field_with_sub_categories"]=&gt; string(1) "0" ["field_frontcomp"]=&gt; string(1) "1" ["field_backend"]=&gt; string(1) "1" ["field_backend_listing"]=&gt; string(1) "0" ["field_display"]=&gt; string(0) "" } ["address_country"]=&gt; object(stdClass)#937 (19) { ["field_id"]=&gt; string(2) "14" ["field_table"]=&gt; string(7) "address" ["field_realname"]=&gt; string(7) "Country" ["field_namekey"]=&gt; string(15) "address_country" ["field_type"]=&gt; string(4) "zone" ["field_value"]=&gt; string(0) "" ["field_published"]=&gt; string(1) "1" ["field_ordering"]=&gt; string(2) "14" ["field_options"]=&gt; string(137) "a:6:{s:12:"errormessage";s:0:"";s:4:"cols";s:0:"";s:4:"rows";s:0:"";s:9:"zone_type";s:7:"country";s:4:"size";s:0:"";s:6:"format";s:0:"";}" ["field_core"]=&gt; string(1) "1" ["field_required"]=&gt; string(1) "1" ["field_default"]=&gt; string(26) "country_United_Kingdom_222" ["field_access"]=&gt; string(3) "all" ["field_categories"]=&gt; string(3) "all" ["field_with_sub_categories"]=&gt; string(1) "0" ["field_frontcomp"]=&gt; string(1) "1" ["field_backend"]=&gt; string(1) "1" ["field_backend_listing"]=&gt; string(1) "0" ["field_display"]=&gt; string(0) "" } } ["billing_address"]=&gt; object(stdClass)#935 (19) { ["address_id"]=&gt; string(1) "1" ["address_user_id"]=&gt; string(1) "6" ["address_title"]=&gt; string(2) "Mr" ["address_firstname"]=&gt; string(5) "xxxx" ["address_middle_name"]=&gt; NULL ["address_lastname"]=&gt; string(![8)](/media/kunena/emoticons/9.png "8)") "xxxxx" ["address_company"]=&gt; NULL ["address_street"]=&gt; string(6) "wqeqwe" ["address_street2"]=&gt; string(0) "" ["address_post_code"]=&gt; string(0) "" ["address_city"]=&gt; string(6) "qweqwe" ["address_telephone"]=&gt; string(9) "312313123" ["address_telephone2"]=&gt; NULL ["address_fax"]=&gt; NULL ["address_state"]=&gt; string(13) "Aberdeenshire" ["address_country"]=&gt; string(14) "United Kingdom" ["address_published"]=&gt; string(1) "1" ["address_vat"]=&gt; NULL ["address_default"]=&gt; string(1) "1" } ["products"]=&gt; array(1) { [0]=&gt; object(stdClass)#948 (19) { ["order_product_id"]=&gt; string(2) "17" ["order_id"]=&gt; string(2) "17" ["product_id"]=&gt; string(1) "2" ["order_product_quantity"]=&gt; string(1) "1" ["order_product_name"]=&gt; string(16) "Platinum Voucher" ["order_product_code"]=&gt; string(5) "10001" ["order_product_price"]=&gt; string(7) "0.01000" ["order_product_tax"]=&gt; string(7) "0.00000" ["order_product_tax_info"]=&gt; array(1) { [0]=&gt; object(stdClass)#934 (14) { ["taxation_id"]=&gt; string(1) "1" ["zone_namekey"]=&gt; string(26) "country_United_Kingdom_222" ["category_namekey"]=&gt; string(11) "default_tax" ["tax_namekey"]=&gt; string(3) "VAT" ["taxation_published"]=&gt; string(1) "1" ["taxation_type"]=&gt; string(0) "" ["taxation_access"]=&gt; string(3) "all" ["taxation_cumulative"]=&gt; string(1) "0" ["taxation_post_code"]=&gt; string(0) "" ["taxation_date_start"]=&gt; string(1) "0" ["taxation_date_end"]=&gt; string(1) "0" ["tax_rate"]=&gt; string(7) "0.20000" ["zone_type"]=&gt; string(7) "country" ["tax_amount"]=&gt; float(0) } } ["order_product_options"]=&gt; string(0) "" ["order_product_option_parent_id"]=&gt; string(1) "0" ["order_product_wishlist_id"]=&gt; string(1) "0" ["order_product_shipping_id"]=&gt; string(0) "" ["order_product_shipping_method"]=&gt; string(0) "" ["order_product_shipping_price"]=&gt; string(7) "0.00000" ["order_product_shipping_tax"]=&gt; string(7) "0.00000" ["order_product_shipping_params"]=&gt; string(0) "" ["order_product_total_price_no_vat"]=&gt; float(0.01) ["order_product_total_price"]=&gt; float(0.01) } } ["additional"]=&gt; array(0) { } ["order_subtotal_no_vat"]=&gt; float(0.01) } var dump End:

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

12 years 5 months ago [\#157162](#157162) by [luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")  Replied by *[luciogodoy](/forum/user/31723-luciogodoy "View luciogodoy's Profile")* on topic *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#157162 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")*

Nailed!

i've created the following code:

$voucher_number = $serials-&gt;serial_data;

Perhaps it would be nice (for people like me) to supply this code with the code you have supplied me perviously

Many thanks

Lucio

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 5 months ago [\#157163](#157163) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Display Generated coupon on thank you message](/forum/14-hikaserial/868328-display-generated-coupon-on-thank-you-message#157163 "Hi All;  I've a website that creates a coupon with a unique serial number, and sends it to the user, however i would like to have the coupon printed as part of the thank you message, is it possible to do so pls?  I'm using the latest version with Joomla 2.5  Many thanks  Lucio")*

Hi Lucio,

I have to admit that I can't understand your request.
Can you re-explain it ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODY4MzI4LWRpc3BsYXktZ2VuZXJhdGVkLWNvdXBvbi1vbi10aGFuay15b3UtbWVzc2FnZT90bXBsPW1hcmtkb3du) 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?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.116 seconds

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