- Posts: 575
- Thank you received: 11
How to get order variable on after payment "end" view
- ler@singmuiheng.com
-
Topic Author
- Offline
Less
More
6 years 1 month ago #322998
by ler@singmuiheng.com
-- HikaShop version -- : 4.3
-- Joomla version -- : 3.9
-- PHP version -- : 5.6
Dear Team
We try to print $this and can see order_status and order_product_total_price in the variable but $this->order_status can not get the value
how can i get the value?
-- Joomla version -- : 3.9
-- PHP version -- : 5.6
Dear Team
We try to print $this and can see order_status and order_product_total_price in the variable but $this->order_status can not get the value
how can i get the value?
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
6 years 1 month ago #323003
by Mohamed Thelji
Replied by Mohamed Thelji on topic How to get order variable on after payment "end" view
Hello,
If you want the order_status value then using that variable will do the job :
And for the order_product_total_price if you want to display every products price, you'll have to check every product through that array :
For example the first product price will be :
Kind regards,
Mohamed.
If you want the order_status value then using that variable will do the job :
Code:
$this->order->order_status
And for the order_product_total_price if you want to display every products price, you'll have to check every product through that array :
Code:
$this->order->products
For example the first product price will be :
Code:
$this->order->products[0]->order_product_total_price
Kind regards,
Mohamed.
Please Log in or Create an account to join the conversation.
- ler@singmuiheng.com
-
Topic Author
- Offline
Less
More
- Posts: 575
- Thank you received: 11
6 years 1 month ago #323050
by ler@singmuiheng.com
Replied by ler@singmuiheng.com on topic How to get order variable on after payment "end" view
what is the variable for total order full price?
Please Log in or Create an account to join the conversation.
6 years 1 month ago #323051
by lousyfool
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Replied by lousyfool on topic How to get order variable on after payment "end" view
Hi,
Simply do
or
to see everything in the object.
Simply do
Code:
var_dump($this->order);
Code:
print_r($this->order);
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: Mohamed Thelji
Please Log in or Create an account to join the conversation.
Time to create page: 0.194 seconds