We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31381
    • 31 Posts
    shopkeeper it self don’t need PHx at all - but the developer of shopkeeper has one or two examples where he use it for anything.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The other snippets don’t actually need it either; it’s just very convenient to use in their tpl chunks with their placeholders without having to have the overhead (and a few unpleasant side effects) of having the plugin installed.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 9995
        • 1,613 Posts
        Have it installed succesfully, 2 questions:

        1) is it possible to show 21.60 instead of 21.6 by my totals (mail and orderlist)
        I wrote somewhere u can do it by :
         sprintf ('%01.2f', $amount);
        but where?

        2) the captha validation code, where can i change the code?
        Now it shows Query334, I like to remove the 3 numbers!

        Greetz
          Evolution user, I like the back-end speed and simplicity smiley
          • 31381
          • 31 Posts
          1) class.shopkeeper.php -> function getTotal (about lines 380-410, changed some lines, so better do a search in your editor)

          put this or some other transformation code:
          $totalPrice=number_format($totalPrice, 2, ',', ' ');


          before this
          $output = array($totalItems,$totalPrice);
          return $output;


          2) the captcha does belong to the modx core, it’s no part of shopkeeper.
          Try to change
          return (string) $arr_words[array_rand($arr_words)].rand(10,999);

          to
          return (string) $arr_words[array_rand($arr_words)];


          in file: manager/includes/veriword.php (Line 94 in MODx 1.0.4)
            • 9995
            • 1,613 Posts
            That does the job!

            The veriword file I had found but didn’t see what to change, thanks for pointing it out!
              Evolution user, I like the back-end speed and simplicity smiley
              • 27421
              • 67 Posts
              How difficult is it to connect Shopkeeper to a payment gateway? My client is using Global Gateway which used to be called LinkPoint. It as a php wrapper in it’s api.
                • 31381
                • 31 Posts
                Hi,

                should be not that much trouble.

                See the documentation delivered with the snippet or:
                http://translate.google.com/translate?js=y&prev=_t&hl=de&ie=UTF-8&layout=1&eotf=1&u=http%3A%2F%2Fmodx-shopkeeper.ru%2Fdocumentation%2Fshopkeeper.html&sl=ru&tl=en
                in the section:
                "Connecting the system of payment" (googles Translation of the Russian original title...)

                Shopkeeper has some SESSION variables to be used by Payment Gates.

                for further questions: http://modx-shopkeeper.ru/forum/ (most parts in Russian)