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

#   Loading Order ID, Price after checkout

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 1 month ago [\#251166](#251166) by [Strmy](/forum/user/43987-strmy "View Strmy's Profile")  *[Loading Order ID, Price after checkout](/forum/27-checkout/886676-loading-order-id-price-after-checkout#251166 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2  Hello, Iam trying to just sumarize after checkout some information about the order.  Order ID, Price, name of the user etc.  So I have edited: wiew checkout / end ( because iam using HikaShop collect on delivery payment plugin) and added : ...$this-&gt;nextButton = false;  $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id'); $orderClass = hikashop&#95;get('class.order'); $this-&gt;order = $orderClass-&gt;loadFullOrder($order&#95;id);  and i get Call to a member function getUserState() on null error.  any help? Thank you")* was created by *[Strmy](/forum/user/43987-strmy "View Strmy's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.2

Hello,
Iam trying to just sumarize after checkout some information about the order.

Order ID, Price, name of the user etc.

So I have edited: wiew checkout / end ( because iam using HikaShop collect on delivery payment plugin)
and added :
...$this-&gt;nextButton = false;

$order_id = $app-&gt;getUserState('com_hikashop.order_id');
$orderClass = hikashop_get('class.order');
$this-&gt;order = $orderClass-&gt;loadFullOrder($order_id);

and i get Call to a member function getUserState() on null error.

any help? Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NjY3Ni1sb2FkaW5nLW9yZGVyLWlkLXByaWNlLWFmdGVyLWNoZWNrb3V0P3RtcGw9bWFya2Rvd24=) 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: 86584
- Thank you received: 14325
-
-

10 years 1 month ago [\#251168](#251168) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Loading Order ID, Price after checkout](/forum/27-checkout/886676-loading-order-id-price-after-checkout#251168 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2  Hello, Iam trying to just sumarize after checkout some information about the order.  Order ID, Price, name of the user etc.  So I have edited: wiew checkout / end ( because iam using HikaShop collect on delivery payment plugin) and added : ...$this-&gt;nextButton = false;  $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id'); $orderClass = hikashop&#95;get('class.order'); $this-&gt;order = $orderClass-&gt;loadFullOrder($order&#95;id);  and i get Call to a member function getUserState() on null error.  any help? Thank you")*

Hi,

You need first the line:
$app = JFactory::getApplication();
so that you can then use $app-&gt;getUserState.

The following user(s) said Thank You: [Strmy](/forum/user/43987-strmy "View Strmy's Profile")

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 1 month ago [\#251234](#251234) by [Strmy](/forum/user/43987-strmy "View Strmy's Profile")  Replied by *[Strmy](/forum/user/43987-strmy "View Strmy's Profile")* on topic *[Loading Order ID, Price after checkout](/forum/27-checkout/886676-loading-order-id-price-after-checkout#251234 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.2  Hello, Iam trying to just sumarize after checkout some information about the order.  Order ID, Price, name of the user etc.  So I have edited: wiew checkout / end ( because iam using HikaShop collect on delivery payment plugin) and added : ...$this-&gt;nextButton = false;  $order&#95;id = $app-&gt;getUserState('com&#95;hikashop.order&#95;id'); $orderClass = hikashop&#95;get('class.order'); $this-&gt;order = $orderClass-&gt;loadFullOrder($order&#95;id);  and i get Call to a member function getUserState() on null error.  any help? Thank you")*

Thank you that was it.

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

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