24/7 Support - 800.608.6482

Miva Merchant Community Forums

Thread: Variable Values Changing to Decimals on Invoice Page

  1. #1
    Join Date
    Mar 2006
    Posts
    6,892

    Default Variable Values Changing to Decimals on Invoice Page

    Very odd issue just came up. On one of our modules, which normally works on the Invoice Screen, the variables it outputs (from its own database) are coming out as decimal characters. Mostly 0.00 but occasionally 10.00. Move the module item to the OPAY (or any other screen) and the variables are fine. Since this is happening to ALL variables, I do not suspect a simple "overwrite" from some other module. Other details PR8 Release 5, Empressa 5.15. Not too many other modules, but there is Follow on email as an additional fulfillment module.

  2. #2
    Join Date
    Mar 2006
    Posts
    11,186

    Default Re: Variable Values Changing to Decimals on Invoice Page

    What is an example of a variable that is being converted from a whole number to one with decimals?

  3. #3
    Join Date
    Mar 2006
    Posts
    6,892

    Default Re: Variable Values Changing to Decimals on Invoice Page

    Create Account (becomes) 0.00
    #ffffff (becomes) 10.00
    2 (becomes) 10.00

    for example.

  4. #4
    Join Date
    Mar 2006
    Posts
    11,186

    Default Re: Variable Values Changing to Decimals on Invoice Page

    Yep, that is a bit odd.

  5. #5
    Join Date
    Mar 2006
    Posts
    6,892

    Default Re: Variable Values Changing to Decimals on Invoice Page

    Any one else with any ideas of how to even begin to dissect this?

  6. #6
    Join Date
    Mar 2006
    Posts
    11,186

    Default Re: Variable Values Changing to Decimals on Invoice Page

    Create an email in the order template emails module. Test the variables there to see what they are.

  7. #7
    Join Date
    Mar 2006
    Posts
    6,892

    Default Re: Variable Values Changing to Decimals on Invoice Page

    Wouldn't that be BEFORE my module has run if its called by a Template Item and therefore, no variables have been created? Or do the Fulfillment modules run After the invoice page is called (I swear I knew that once...<g>). oh, and can you give me the code for that<gg>
    Last edited by Bruce - PhosphorMedia; 04-10-12 at 04:14 PM.

  8. #8
    Join Date
    Mar 2006
    Posts
    11,186

    Default Re: Variable Values Changing to Decimals on Invoice Page

    It runs before your module. But there may be variables in your module dependent on existing variables. If you put your analyzer module in the email that would tell you every variable before the INVC displays and your module runs.

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •