- Posts: 87
- Thank you received: 10
How to access Cart Value and Currency?
- gaborgaborgabor
-
Topic Author
- Offline
how can I access on some active values of the cart module in a different view template?
Thx Gabor
H6
Please Log in or Create an account to join the conversation.
I'm afraid I didn't understand what you want to do. Could you elaborate your question ?
Please Log in or Create an account to join the conversation.
- gaborgaborgabor
-
Topic Author
- Offline
- Posts: 87
- Thank you received: 10
Okay - it is easy to explain. In the Display-View->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->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
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
- gaborgaborgabor
-
Topic Author
- Offline
- Posts: 87
- Thank you received: 10
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
Please Log in or Create an account to join the conversation.
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:
Please Log in or Create an account to join the conversation.
- gaborgaborgabor
-
Topic Author
- Offline
- Posts: 87
- Thank you received: 10
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 or Create an account to join the conversation.
- gaborgaborgabor
-
Topic Author
- Offline
- Posts: 87
- Thank you received: 10
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 or Create an account to join the conversation.
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 :
Please Log in or Create an account to join the conversation.
- gaborgaborgabor
-
Topic Author
- Offline
- Posts: 87
- Thank you received: 10
Array ( [option] => com_hikashop [ctrl] => checkout [task] => after_end [naildesign1_tpl] => naildesign1 [__utma] => 1.1268703613.1291335214.1292195363.1292460232.17 [__utmz] => 1.1291335214.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none) [1ee73a388da0bb7ec3d7afe3beccac53] => 1c1e813bb9cc92039bf1110b67272380 [__utmc] => 1 [d4dad6935f632ac35975e3001dc7bbe8] => lftiq3gk9ahv3bq89146qtf1h0 [jfcookie] => Array ( [lang] => de ) [__utmb] => 1.5.10.1292460232 [Itemid] => [hikashop_front_end_main] => 1 [view] => checkout [layout] => after_end )
It is funny, that the order is already set as payed->cool->ready for shipping. But only the after_end page can´t access the data (for afilinet stuff and tracking).
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- gaborgaborgabor
-
Topic Author
- Offline
- Posts: 87
- Thank you received: 10
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- gaborgaborgabor
-
Topic Author
- Offline
- Posts: 87
- Thank you received: 10
But when I put this in....the hole thing crashed...but it works in the last week....
Please Log in or Create an account to join the conversation.
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
Please Log in or Create an account to join the conversation.
- gaborgaborgabor
-
Topic Author
- Offline
- Posts: 87
- Thank you received: 10
this is a little bit too high for me. In the last week it was so easy to accsess the values over..
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- gaborgaborgabor
-
Topic Author
- Offline
- Posts: 87
- Thank you received: 10
Please Log in or Create an account to join the conversation.
Could you activate the display of errors in your php.ini ?
Please Log in or Create an account to join the conversation.
- gaborgaborgabor
-
Topic Author
- Offline
- Posts: 87
- Thank you received: 10
and this is.........
$order = $orderClass->get($order_id);
Please Log in or Create an account to join the conversation.