• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

How to correctly format a variable.

Knowledge Base
2
2
98
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    miguel.barbosa last edited by 13 Jan 2025, 17:04

    Is there any Helper or method I can use in a view to format my prices to the current channel currency?

    1 Reply Last reply Reply Quote 0
    • ghermans
      ghermans last edited by 14 Jan 2025, 16:14

      You can use the following method

      core()->formatPrice($item->price_incl_tax, $shipment->order->order_currency_code)
      

      Kind regards,
      Glenn Hermans

      Manager Bagisto Europe
      info@bagisto.eu

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post