Announcement

Collapse
No announcement yet.

Need help. Getting miva runtime error with toolkit's currencyformat function

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

    Need help. Getting miva runtime error with toolkit's currencyformat function

    When I execute the following:
    <mvt:assign name="g.balance" value="l.settings:order:total - l.settings:order:net_capt " />
    <mvt:item name="toolkit" param="currencyformat|formatted_balance|balance" />

    I get this runtime error:
    Runtime error in mm5/5.00/modules/util/toolkit.mvc @ [00000016:0000054c]: toolkit.mv: Line 2474: MvDO: The specified path references a directory that does not exist

    The value in g.balance is a 0 if that helps any.
    This code is being executed in the shipping template based email template.

    Have opened a ticket but am looking for a solution on the forum too.

    Thanks Larry
    Last edited by wajake41; 09-03-15, 04:29 PM.
    Larry
    Luce Kanun Web Design
    www.facebook.com/wajake41
    www.plus.google.com/116415026668025242914/posts?hl=en



    #2
    Re: Need help. Getting miva runtime error with toolkit's currencyformat function

    If you are running this from admin.mvc, it may have an issue with the path. The tool kit functions were written for merchant.mvc and as new admin features came along I added code when requested by users. That specific usage may not have been asked about way back when. That said, make sure you are using the current version of the tool kit just in case that capability was added after your version was released.
    Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
    Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
    Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
    Facebook http://www.facebook.com/EmporiumPlus
    Twitter http://twitter.com/emporiumplus

    Comment


      #3
      Re: Need help. Getting miva runtime error with toolkit's currencyformat function

      Hi Bill:
      This same exact code executes OK in our MMUI store in the shipping email template. Our version of toolkit in the CSSUI store (the store where the code breaks) has the currencyformat example in the toolkit version we have installed so I think we have the necessary version of toolkit installed.
      I looked at Miva's currencyformat function example, it appears to have 2 typos (currency spelled currncy) and after attempting to correct that and get the example to work, gave up on that approach.
      Generally I prefer to use the tookit functions because the examples are correct and easily found in the module itself.
      Hope Miva support can build that missing library!
      Last edited by wajake41; 09-03-15, 05:57 PM.
      Larry
      Luce Kanun Web Design
      www.facebook.com/wajake41
      www.plus.google.com/116415026668025242914/posts?hl=en


      Comment


        #4
        Re: Need help. Getting miva runtime error with toolkit's currencyformat function

        Found a working example of the Miva currency formatting module in a post response by Brennan. Here it is:

        <mvt:do name="l.formatted_output" file="g.module_store_module_currency" value="CurrencyModule_AddFormatting( g.module_store_module_currency, l.order:total )" />
        < mvt:eval expr="l.formatted_output" />

        Using this example with my own variables, I was able to solve my issue.

        Thanks again Brennan!
        Larry
        Luce Kanun Web Design
        www.facebook.com/wajake41
        www.plus.google.com/116415026668025242914/posts?hl=en


        Comment


          #5
          Re: Need help. Getting miva runtime error with toolkit's currencyformat function

          Originally posted by wcw View Post
          If you are running this from admin.mvc, it may have an issue with the path. The tool kit functions were written for merchant.mvc and as new admin features came along I added code when requested by users. That specific usage may not have been asked about way back when. That said, make sure you are using the current version of the tool kit just in case that capability was added after your version was released.
          You're right on target Bill. Both of the sites where currencyformat wouldn't work have older versions of toolkit. The newer one on our third site works great.
          BTW Our stores couldn't operate without toolkit. It's amazing and the best Miva add-on out there!!
          Larry
          Larry
          Luce Kanun Web Design
          www.facebook.com/wajake41
          www.plus.google.com/116415026668025242914/posts?hl=en


          Comment

          Working...
          X