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

#   How to access Cart Value and Currency?

##

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

Less More

- Posts: 87
- Thank you received: 10
-
-

16 years 2 weeks ago -  16 years 2 weeks ago [\#822](#822) by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")  *[How to access Cart Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#822 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")* was created by *[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")*

Hi,
how can I access on some active values of the cart module in a different view template?

Thx Gabor
H6

Last edit: 16 years 2 weeks ago by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile").

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

16 years 2 weeks ago [\#823](#823) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#823 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

Hi,

I'm afraid I didn't understand what you want to do. Could you elaborate your question ?

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

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

Less More

- Posts: 87
- Thank you received: 10
-
-

16 years 2 weeks ago -  16 years 2 weeks ago [\#824](#824) by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")  Replied by *[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#824 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

You dont have a bed mh?

Okay - it is easy to explain. In the Display-View-&gt;Frontend Templates we have the cart. Now we need to add a trustedshop form for a costumer assurance. I put this form under the cart as a new template module. We need 4 simple values in that form. The user mail (by joomla $user-&gt;mail) and the final amount of the current order, the currency (Euro), the costumer number and the order number.

Is there a easy way to access to this value even when we change something in the cart?

Thx
Gabor
H6 Berlin

Last edit: 16 years 2 weeks ago by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile").

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

16 years 2 weeks ago [\#825](#825) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#825 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

The biggest problem will be the order number. The order is created on the last time the user click on next. So there is no order number before that. And after that the user is redirected to the payment plateform. So I don't how you could get it. The rest of the data can be easily retrieved.

If you could tell me more in details what kind of form you want to add and why you need the order number, I might be able to find a work around.

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

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

Less More

- Posts: 87
- Thank you received: 10
-
-

16 years 2 weeks ago -  16 years 2 weeks ago [\#826](#826) by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")  Replied by *[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#826 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

okay here we go. Such a form is necessary for a trusted shop proof.
Code:

&lt;table width=400 border="0" cellspacing="0" cellpadding="4"&gt; &lt;tr&gt; &lt;td width="90"&gt; &lt;form name="formSiegel" method="post" action= "https://www.trustedshops.com/shop/certificate.php" target="_blank"&gt; &lt;input type="image" border="0" src="pfad/zum/siegel.gif" title= ""&gt; &lt;input name="shop_id" type="hidden" value="1234567890_trustedshop_id"&gt; &lt;/form&gt; &lt;/td&gt; &lt;td align="justify"&gt; &lt;form id="formTShops" name="formTShops" method="post" action="https://www.trustedshops.com/shop/protection.php" target="_blank"&gt; &lt;input type="hidden" name="_charset_" value=""&gt; &lt;input name="shop_id" type="hidden" value="1234567890_trustedshop_id"&gt; &lt;input name="email" type="hidden" value="[value email]"&gt; &lt;input name="amount" type="hidden" value="[value amount]"&gt; &lt;input name="curr" type="hidden" value="[value curr]"&gt; &lt;input name="payment" type="hidden" value="[value payment typ]"&gt; &lt;input name="KDNR" type="hidden" value="[value User ID]"&gt; &lt;input name="ORDERNR" type="hidden" value="[value Order ID]"&gt; Als zus&amp;auml;tzlichen Service bieten wir Ihnen den Trusted Shops K&amp;auml;uferschutz an. Wir &amp;uuml;bernehmen alle Kosten dieser Garantie, Sie m&amp;uuml;ssen sich lediglich anmelden.&lt;br&gt;&lt;br&gt; &lt;input type="submit" id="btnProtect" name="btnProtect" value="Get the Trusted Shop Assurance"&gt; &lt;/form&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;

When the Order id is accessibly only after the purchase, then we realy have a problem. This Assurance is independed from the success of the purchase.

Cheer
Gabor
h6

Last edit: 16 years 2 weeks ago by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile").

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

16 years 2 weeks ago [\#827](#827) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#827 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

So, I looked at the trustedshops thing on the internet and other shopping carts always add it at the end of the order, on the thank you page.
So, it will depend on the payment method you use.
If you use the "collect on delivery", the "bank transfer" or the "check" payment plugins you will want to edit the file end.php of the view checkout.
If you use the external payment plugins like paypal, you will want to display it when the user returns on your website and so you will want to edit the file after_end.php of the view checkout.

There you will have to load the order information like this: Code:

$app =&amp; JFactory::getApplication(); $order_id = $app-&gt;getUserState( HIKASHOP_COMPONENT.'.order_id'); $orderClass = hikashop::get('class.order'); $order = $orderClass-&gt;loadFullOrder($order_id);

You will have all the information you need about the order in the $order variable.

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

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

Less More

- Posts: 87
- Thank you received: 10
-
-

16 years 2 weeks ago [\#828](#828) by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")  Replied by *[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#828 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

ok....of course, it makes sense, to put this form on the "thankyou"-page. The supporter there told me something different.

Tomorrow I will talk to trusted shop and start the licensing process. With this form and some other easy stuff, Hikashop will get the trusted shop certification ! Chakka.

Thanks a lot Nicolas
Gabor
H6 Berlin

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

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

Less More

- Posts: 87
- Thank you received: 10
-
-

15 years 11 months ago [\#3607](#3607) by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")  Replied by *[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#3607 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

Hi Nicolas,

you still online...!.

For some reason, after the update the $order Array is empty or not accessable, when we are coming back from paypal. Did you have an idea?

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

15 years 11 months ago [\#3608](#3608) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#3608 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

That shouldn't be the case. You mean the order_id ?
Normally, the order_id should also be in the $_REQUEST object when returning from paypal.
You could use that as well instead of the getUserState function call : Code:

$order_id =JRequest::getVar('order_id');

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

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

Less More

- Posts: 87
- Thank you received: 10
-
-

15 years 11 months ago [\#3609](#3609) by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")  Replied by *[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#3609 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

here is an request, thats comes back from paypal:

Array ( [option] =&gt; com_hikashop [ctrl] =&gt; checkout [task] =&gt; after_end [naildesign1_tpl] =&gt; naildesign1 [__utma] =&gt; 1.1268703613.1291335214.1292195363.1292460232.17 [__utmz] =&gt; 1.1291335214.1.1.utmcsr=(direct)&#124;utmccn=(direct)&#124;utmcmd=(none) [1ee73a388da0bb7ec3d7afe3beccac53] =&gt; 1c1e813bb9cc92039bf1110b67272380 [__utmc] =&gt; 1 [d4dad6935f632ac35975e3001dc7bbe8] =&gt; lftiq3gk9ahv3bq89146qtf1h0 [jfcookie] =&gt; Array ( [lang] =&gt; de ) [__utmb] =&gt; 1.5.10.1292460232 [Itemid] =&gt; [hikashop_front_end_main] =&gt; 1 [view] =&gt; checkout [layout] =&gt; after_end )

It is funny, that the order is already set as payed-&gt;cool-&gt;ready for shipping. But only the after_end page can´t access the data (for afilinet stuff and tracking).

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

15 years 11 months ago [\#3613](#3613) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#3613 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

Could you do a dump of the variable $_SESSION ?

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

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

Less More

- Posts: 87
- Thank you received: 10
-
-

15 years 10 months ago -  15 years 10 months ago [\#3695](#3695) by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")  Replied by *[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#3695 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

there is a lot of secret stuff in it....it comes by mail.

Last edit: 15 years 10 months ago by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile").

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

15 years 10 months ago [\#3699](#3699) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#3699 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

The code Code:

$app =&amp; JFactory::getApplication(); $order_id = $app-&gt;getUserState( HIKASHOP_COMPONENT.'.order_id');

should return the order_id based on the dump you sent me. If it doesn't, you should be able to get it directly from the SESSION object: Code:

$order_id = $_SESSION['registry']['_registry']['application']['com_hikashop']['order_id'];

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

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

Less More

- Posts: 87
- Thank you received: 10
-
-

15 years 10 months ago -  15 years 10 months ago [\#3703](#3703) by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")  Replied by *[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#3703 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

so far, so good. I used this one here : Code:

$order = $orderClass-&gt;loadFullOrder($order_id);

But when I put this in....the hole thing crashed...but it works in the last week....

Last edit: 15 years 10 months ago by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile").

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

15 years 10 months ago [\#3705](#3705) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#3705 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

The $order variable returned by the function loadFullOrder will be empty if:
1 the system cannot for the order with the id given in the database.
2 the current user is different from the user in the order

I recall that we added some code to reset the user_id in the session in one of the latest releases so that users could buy again directly on the store when the store didn't require any registration.

you should add the code Code:

$order = $orderClass-&gt;get($order_id); $app-&gt;setUserState( HIKASHOP_COMPONENT.'.user_id',$order-&gt;order_user_id );

just before the code Code:

$order = $orderClass-&gt;loadFullOrder($order_id);

in order to restore the user_id in the session.

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

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

Less More

- Posts: 87
- Thank you received: 10
-
-

15 years 10 months ago -  15 years 10 months ago [\#3707](#3707) by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")  Replied by *[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#3707 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

like this....but this crashed..... Code:

$app =&amp; JFactory::getApplication(); $order_id = $app-&gt;getUserState( HIKASHOP_COMPONENT.'.order_id'); $order = $orderClass-&gt;get($order_id); $app-&gt;setUserState( HIKASHOP_COMPONENT.'.user_id',$order-&gt;order_user_id ); $order = $orderClass-&gt;loadFullOrder($order_id); //echo $order_id;

this is a little bit too high for me. In the last week it was so easy to accsess the values over..
Code:

&lt;input name="KDNR" type="hidden" value=" ....echo $order-&gt;order_user_id;...."&gt; &lt;input name="ORDERNR" type="hidden" value=".... echo $order-&gt;order_id; ...."&gt;

Last edit: 15 years 10 months ago by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile").

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

15 years 10 months ago [\#3708](#3708) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#3708 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

Yes like this. There is no reason for this to crash. What is the error you get ?

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

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

Less More

- Posts: 87
- Thank you received: 10
-
-

15 years 10 months ago [\#3709](#3709) by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")  Replied by *[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#3709 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

just a white screen.....

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

15 years 10 months ago [\#3710](#3710) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#3710 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

A white screen won't help ![:)](/media/kunena/emoticons/3.png ":)")

Could you activate the display of errors in your php.ini ?

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

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

Less More

- Posts: 87
- Thank you received: 10
-
-

15 years 10 months ago [\#3711](#3711) by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")  Replied by *[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")* on topic *[Re: How to access on Value and Currency?](/forum/4-how-to/822-how-to-access-cart-value-and-currency#3711 "Hi, how can I access on some active values of the cart module in a different view template?  Thx Gabor H6")*

Fatal error: Call to a member function get() on a non-object in /html/joomla/templates/naildesign1/html/com_hikashop/checkout/after_end.php on line 16

and this is.........
$order = $orderClass-&gt;get($order_id);

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

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