- Posts: 108
- Thank you received: 1
return url / thank you page order number & amount
10 years 7 months ago #229272
by shoppist
return url / thank you page order number & amount was created by shoppist
-- url of the page with the problem -- :
www.birki.com.ph/
-- HikaShop version -- : Business
-- Joomla version -- : 3.4.5
Hi,
I would like to display the order number and amount paid on my custom return url
birki.com.ph/index.php/thank-you
This return URL is supposed to be used from various payment methods.
Thank you.
-- HikaShop version -- : Business
-- Joomla version -- : 3.4.5
Hi,
I would like to display the order number and amount paid on my custom return url
birki.com.ph/index.php/thank-you
This return URL is supposed to be used from various payment methods.
Thank you.
Please Log in or Create an account to join the conversation.
10 years 7 months ago - 10 years 7 months ago #229306
by kyratn
Replied by kyratn on topic return url / thank you page order number & amount
Hi,
If your custom return url is article you can install sourcerer and do like this.
To display order amount:
To display order number:
Hope that helps.
Regards
If your custom return url is article you can install sourcerer and do like this.
To display order amount:
Code:
{source}
<?php
if(!defined('DS'))
define('DS', DIRECTORY_SEPARATOR); if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true;
$app =JFactory::getApplication();
$order_id = $app->getUserState('com_hikashop.order_id');
$orderClass = hikashop_get('class.order');
$currencyClass = hikashop_get('class.currency');
$fullOrder = $orderClass->get($order_id);
echo $currencyClass->format(round($fullOrder->order_full_price,2));
?>
{/source}
To display order number:
Code:
{source}
<?php
if(!defined('DS'))
define('DS', DIRECTORY_SEPARATOR); if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true;
$app =JFactory::getApplication();
$order_id = $app->getUserState('com_hikashop.order_id');
$orderClass = hikashop_get('class.order');
$currencyClass = hikashop_get('class.currency');
$fullOrder = $orderClass->get($order_id);
echo $fullOrder->order_number;
?>
{/source}
Hope that helps.
Regards
Last edit: 10 years 7 months ago by kyratn.
The following user(s) said Thank You: nicolas
Please Log in or Create an account to join the conversation.
Time to create page: 0.189 seconds