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

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
4 years 3 months ago #322998

-- 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.

  • Posts: 12953
  • Thank you received: 1778
4 years 3 months ago #323003

Hello,

If you want the order_status value then using that variable will do the job :

$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 :
$this->order->products

For example the first product price will be :
$this->order->products[0]->order_product_total_price

Kind regards,
Mohamed.

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

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
4 years 3 months ago #323050

what is the variable for total order full price?

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

  • Posts: 2143
  • Thank you received: 747
4 years 3 months ago #323051

Hi,

Simply do

var_dump($this->order);
or
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.055 seconds
Powered by Kunena Forum