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

      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

        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
        • First post
          Last post