Skip to main content

How to get order variable on after payment "end" view

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?

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #323003 by Mohamed Thelji
Hello,

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.

More
6 years 1 month ago #323050 by ler@singmuiheng.com
what is the variable for total order full price?

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #323051 by lousyfool
Hi,

Simply do
Code:
var_dump($this->order);
or
Code:
print_r($this->order);
to see everything in the object.

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
Powered by Kunena Forum