Announcement

Collapse
No announcement yet.

What variable displays $::FAILURE message?

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

    What variable displays $::FAILURE message?

    Hi all,

    I have implemented the 'minimum order' routine as per the advanced guide, but I have a problem....

    On checkout, any order under the minimum goes into a loop, with the checkout page just reloading. There is no error message of any type.... I expected to see the message I typed in the script, but no!

    So, my questions are:
    What should I be seeing if the value is too low?
    What variable (netquotevar) or other bit of code gives the error message / page?
    Which code fragment / page / template should the var (or whatever) be in?

    Many thanks

    andy
    Andy Warner

    www.legendgames.co.uk - rpgs, boardgames, dice and other geeky stuff
    www.RPGMiniatures.com D&D and Star Wars Miniatures

    Both running the Cart from Search Page hack

    Also www.mainlymurder.co.uk www.thegamesplace.co.uk and www.thediceplace.co.uk

    All running V8.5.2 Multisite on a windows 7 quad PC, augmented by Mole End automation, from a single shared database, using actinic specific hosting from Host-IT.

    #2
    Hi Andy

    What should I be seeing if the value is too low?
    I have just applied the patch and if I try to checkout when my order value is under 10 squid I get:

    Order value is too low - minimum is £10

    at the top of my invoice address page.


    What variable (netquotevar) or other bit of code gives the error message / page?
    The message just comes from the edited OrdeeScript.pl code:

    if ($nTotal < 1000) # Is the total order less than our minimum?
    { # Yes - reject the order
    return ($::FAILURE, "Order value is too low - minimum is £10");
    }


    Copy the original OrderScript.pl from the Original folder (usually located in C:\Program Files\Actinic Ecommerce v6\Original) back into your Site1 folder, overwrite the existing file and have another go at re-applying the patch.

    If your still having problems post a URL so we can take a look.
    Regards,

    Toby Blanchard

    Comment


      #3
      of course! late, very late.....
      will check it out.
      andy
      Andy Warner

      www.legendgames.co.uk - rpgs, boardgames, dice and other geeky stuff
      www.RPGMiniatures.com D&D and Star Wars Miniatures

      Both running the Cart from Search Page hack

      Also www.mainlymurder.co.uk www.thegamesplace.co.uk and www.thediceplace.co.uk

      All running V8.5.2 Multisite on a windows 7 quad PC, augmented by Mole End automation, from a single shared database, using actinic specific hosting from Host-IT.

      Comment


        #4
        well, the question still stands.

        I knew the code in orderscript did the calculations, but which var in your template page is used to DISPLAY the error message?

        NETQUOTEVAR:ERROR ??????

        anyone?
        andy
        Andy Warner

        www.legendgames.co.uk - rpgs, boardgames, dice and other geeky stuff
        www.RPGMiniatures.com D&D and Star Wars Miniatures

        Both running the Cart from Search Page hack

        Also www.mainlymurder.co.uk www.thegamesplace.co.uk and www.thediceplace.co.uk

        All running V8.5.2 Multisite on a windows 7 quad PC, augmented by Mole End automation, from a single shared database, using actinic specific hosting from Host-IT.

        Comment


          #5
          I've answered me own question!

          OK, it seems I had NETQUOTEVAR:ERROR in a location that was being hidden on the generated page.... so, the answer is NETQUOTEVAR:ERROR
          all works great now (ish)
          andy
          Andy Warner

          www.legendgames.co.uk - rpgs, boardgames, dice and other geeky stuff
          www.RPGMiniatures.com D&D and Star Wars Miniatures

          Both running the Cart from Search Page hack

          Also www.mainlymurder.co.uk www.thegamesplace.co.uk and www.thediceplace.co.uk

          All running V8.5.2 Multisite on a windows 7 quad PC, augmented by Mole End automation, from a single shared database, using actinic specific hosting from Host-IT.

          Comment

          Working...
          X