Announcement

Collapse
No announcement yet.

What's the currency?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    What's the currency?

    I need to push order data to a 3rd party site. The site is international. Mainly USD and CAD. Those are the data values I need to push, but there may be others. I need to know the value on the invoice page and maybe Order Workflows in the future. How or where is this data available per session?

    Scott

    Need to offer Shipping Insurance?
    Interactive Design Solutions https://www.myids.net
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    Competitive Rates, Custom Modules and Integrations, Store Integration
    AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
    My T-shirt Collection is mostly MivaCon T-shirts!!

    #2
    Sorry, I don't quite understand your question. If you just need to push out the 3-letter code indicating the currency, you may be able to find it in the OrderPayment record for the order. It depends on whether the payment module stored it there.

    If you need to do some math, my Currency Magic module can help. It downloads exchange-rate data from a public server, and it can provide the numbers as mvt: variables on page templates. It also saves each order's currency in a custom order field. You can drop me a line if this seems useful.
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    Comment


      #3
      Appears the store is already handling any of the math for exchange rate, etc. My module needs a reliable place to pull the currency version, like USD, or CAD, etc.

      Turns out there is a variable l.settings:currency that is populated with this info. I don't know where it's coming from. That means I can't rely on this.
      Any API function I've found having to with currency is concerned with formatting.

      The possibility of the Payment records is definitely something I can look into.

      Thanks,

      Scott
      Need to offer Shipping Insurance?
      Interactive Design Solutions https://www.myids.net
      MivaMerchant Business Partner | Certified MivaMerchant Web Developer
      Competitive Rates, Custom Modules and Integrations, Store Integration
      AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
      My T-shirt Collection is mostly MivaCon T-shirts!!

      Comment


        #4
        There is a 'currency' field in Order Payments...perhaps its stored there. then if so (as you know) you can scan the LSK and see if there a function that reports it. but in the store i looked, not being used so who knows. have you tried the ugly method of scanning the LSK for 'currency'
        Bruce Golub
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment


          #5
          I haven't done that yet except for the "currency" formatting module. I didn't consider the payment field possibility until Kent mentioned it.
          Fortunately, I looked at the docs again and the 3rd party doesn't appear to require the currency field. It's already default in the module as USD so It doesn't appear to be a critical path item for now.

          Scott
          Need to offer Shipping Insurance?
          Interactive Design Solutions https://www.myids.net
          MivaMerchant Business Partner | Certified MivaMerchant Web Developer
          Competitive Rates, Custom Modules and Integrations, Store Integration
          AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
          My T-shirt Collection is mostly MivaCon T-shirts!!

          Comment

          Working...
          X