We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    This is an auto-generated topic for <a href="http://modxcms.com/extras/package/527">Shopkeeper 0.9.5-release</a> by andchir.

    Brief Description:
    What&apos;s new in Shopkeeper 0.9.5:



    1. Fixed bug in SKwidget (extender Ditto and a snippet) with faulty parameter &first_selected. Error introduced in 0.9.4.



    2. The module is made export orders in CSV-file.



    3. Now the values of the TV-parameters falling in the basket, working @-bindings (@EVAL, @INHERIT, etc.).



    4. Fixed bug with &orderDataTpl (http://modxcms.com/forums/index.php/topic,31961.msg284609.html # msg284609).



    5. Fixed a bug with the statistics purchases (introduced in 0.9.4). Now it is recognized only for registered users.



    6. Fixed. Now the JavaScript-function work if the site is located in the folder of domain (not the root).





    To upgrade from 0.9.4 boring just replace the files.

      • 31381
      • 31 Posts
      Thanks andchir for that release.
      Now I can work with @INHERIT - that’s a very powerfull feature.

      In 0.9.4 I fixed a bug vor me, that in 0.9.5 is still there, so I want to tell you.

      Cause I deal with stuff that’s really cheap I have to cope with prices of 0.anything Euro.
      Buy using the additional price Function there will be strange prices created.
      For example add 0.10 Euro to 0.35 Euro it returns 0.49999998 Euro. I thinks it’s because of the float numbers.

      My fix:
      Add for exampel
      newPrice = Math.round(newPrice * 100) / 100 ;

      after
      var newPrice = parseFloat(curPrice)+additPriceSum;

      in Line 376 of
      shopkeeper.js

        • 31381
        • 31 Posts
        oh no.

        Just noticed, that @INHERIT doesn’t work in "price" on my installation.

        That error is reported:
        Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/vhosts/domain.tld/httpdocs/assets/snippets/shopkeeper/class.shopkeeper.php on line 313

        Warning: Invalid argument supplied for foreach() in /var/www/vhosts/domain.tld/httpdocs/assets/snippets/shopkeeper/class.shopkeeper.php on line 313

        What’s wrong with that - I’ve just copied the files as told - do I have to change something else?!

        ibes
          • 10076
          • 1,024 Posts
          Hi,

          I uninstalled (old 100% working version) and reinstalled latest. Updated chunks, created lang files dutch (attached). Language is not showing, keep getting russian.

          Here s the call to the shopping basket (chunk)

          [!Shopkeeper?&lang=`dutch`&cartType=`full`&orderFormPage=`38`&gotoid=`39`&flyToCart=`helper`&noJQuery=`1`!]


          Get an error in the Module:
          Parse error: syntax error, unexpected '<' in /home/p11663/domains/eengoedkoopmatras.nl/public_html/manager/processors/execute_module.processor.php(114) : eval()'d code on line 1


          What could that be?


          This is in the snippet code
          * http://modx-shopkeeper.ru/
          * Shopkeeper 0.9.4
          * Shopping cart for MODx


          Is that the correct script version in the packet download?


            • 31381
            • 31 Posts
            first:

            My post about "@INHERIT" was my fault. Had forgotten to update the Ditto extender - now its work fine

            @Frank:

            1) Is there a Dutch language file for shopkeeper - it’s no part of the standard download. Shopkeeper needs an one language file!
            2) The code you have to put into the snippet does certainly include an "include" statement - the tree lines you quoted won’t bring any functionality
            3) Module and Snippet don’t depend on each other - the snippet only make the shop cart and writes things into the database. The module reads the database and shows you what people wanna buy.
            4) Can you post the code you put into the module? Seems like there is an ’<’ at the beginning where no ’<’ should be.

            May that helps a little - will help if you post more information.
              • 10076
              • 1,024 Posts
              Quote from: vegano at Jun 09, 2010, 03:50 AM

              first:

              My post about "@INHERIT" was my fault. Had forgotten to update the Ditto extender - now its work fine

              @Frank:

              1) Is there a Dutch language file for shopkeeper - it’s no part of the standard download. Shopkeeper needs an one language file!
              2) The code you have to put into the snippet does certainly include an "include" statement - the tree lines you quoted won’t bring any functionality
              3) Module and Snippet don’t depend on each other - the snippet only make the shop cart and writes things into the database. The module reads the database and shows you what people wanna buy.
              4) Can you post the code you put into the module? Seems like there is an ’<’ at the beginning where no ’<’ should be.

              May that helps a little - will help if you post more information.

              1. The dutch file is attached under my previous post. The call I use brings up the basket, however in russian. And also if I use &lang=`english`. My bad, needed to translate the shopcart chunk, rest is in dutch.
              2. That piece of code is there becasue I installed the 0.9.5 version, but in the top three lines of the snippet code it reads version 0.9.4. So I was wondering if that was wrong.
              3. Know that, had everything running 2 hours ago, but in version 0.9.4
              4. The install doc actually says: "Open the file Shopkeeper_module.php in the "install" folder, copy the contents and paste into the Module Code field. Click on "Save". This however is the content of that file:
              /***********************************
              Shopkeeper - Óïðàâëåíèå çàêàçàìè
              ***********************************/
              
              require "../assets/snippets/shopkeeper/module/shopkeeper_mod.inc.php";





              I Mistakenly copie pasted the content of the shopkeeper_mod.inc.php and that gives the "<" error. The file from the install folder gives an error too. The older version from the module has a much larger file and upon reinstall is works. Remains the module problem, rest if fine.
                • 31381
                • 31 Posts
                So, what errors are left?

                - language file?
                - module "<"?

                I’m not sure what was fixed so far and my English is not the best smiley




                  • 4424
                  • 42 Posts
                  Hey all,

                  I’m trying to install this snippet but facing some problems and getting a lot of errors.
                  I’ve installed the Module and the snippet as told by the install documents.
                  Also got the chunks right I believe. Made the chunks from the examples folder.

                  Still get this error:
                  http://pizzeria-romy-nl.venus.onesmarthost.co.uk/index.php?id=2

                  Regards,
                  Brandon
                    • 31381
                    • 31 Posts
                    Hi,

                    seems like you have installed one of the chunks which take use of the plugin "PHx" and you don’t have PHx installed - might that be?

                    You don’t have to use all the chunks that are given - one of it is a summery of about 6 options how you can use shopkeeper - so that chunks will make you 6 shops on one page (I missunderstood that file the first time I installed shopkeeper - so may you too).

                    get PHx: http://modxcms.com/extras/package/?package=342

                    Would like to hear, if it works.

                    After three month of shopkeeper configuration and modification I would call me a shopkeeper expert grin

                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      If you’re working with the Shopkeeper code, you might want to look into how Ditto and Jot (and EvoGallery as well, I believe) make use of their own copy of the phx.parser.class.inc class file, so that you don’t have to have the PHx 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