Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Robertino Vasilescu
    @Rho-bur
    zakir1929
    @zakir1929
    I know i can unminify them online
    but it is not readable
    it becomes like that
    function b() {
         var t, e, n;
         if ("" === (t = L.val())) return void("" !== T.replacementval && (L.val(T.replacementval), L.trigger("change")));
         T.decimals > 0 && "." === t || (e = parseFloat(t), isNaN(e) && (e = "" !== T.replacementval ? T.replacementval : 0), n = e, e.toString() !== t && (n = e), e < T.min && (n = T.min), e > T.max && (n = T.max), n = y(n), Number(t).toString() !== n.toString() && (L.val(n), L.trigger("change")))
        }
    
        function _() {
         if (T.booster) {
          var t = Math.pow(2, Math.floor(B / T.boostat)) * T.step;
          return T.maxboostedstep && t > T.maxboostedstep && (t = T.maxboostedstep, O = Math.round(O / t) * t), Math.max(T.step, t)
         }
         return T.step
        }
    
        function x() {
         b(), O = parseFloat(I.input.val()), isNaN(O) && (O = 0);
         var t = O,
          e = _();
         O += e, O > T.max && (O = T.max, L.trigger("touchspin.on.max"), C()), I.input.val(Number(O).toFixed(T.decimals)), t !== O && L.trigger("change")
        }
    
        function w() {
         b(), O = parseFloat(I.input.val()), isNaN(O) && (O = 0);
         var t = O,
          e = _();
         O -= e, O < T.min && (O = T.min, L.trigger("touchspin.on.min"), C()), I.input.val(O.toFixed(T.decimals)), t !== O && L.trigger("change")
        }
    
        function S() {
         C(), B = 0, V = "down", L.trigger("touchspin.on.startspin"), L.trigger("touchspin.on.startdownspin"), N = setTimeout(function() {
          k = setInterval(function() {
           B++, w()
          }, T.stepinterval)
         }, T.stepintervaldelay)
        }
    
        function E() {
         C(), B = 0, V = "up", L.trigger("touchspin.on.startspin"), L.trigger("touchspin.on.startupspin"), P = setTimeout(function() {
          D = setInterval(function() {
           B++, x()
          }, T.stepinterval)
         }, T.stepintervaldelay)
        }
    so I need the original version before minification
    Pablo Borowicz
    @eternoendless
    why not read the source code instead of deminifying it?
    zakir1929
    @zakir1929
    @eternoendless sorry I don't understand. i saw source code on github for that two files and it is minified there too.
    can you please explain in more detail ? I really appreciate that. thanks
    Pablo Borowicz
    @eternoendless
    you’re looking at the compiled assets, not the sources
    yuhu0
    @yuhu0
    Hi everyone,
    I'm new to Presta/Symfony and I need to write a module that will allow the admin of Prestashop 1.7 to CRUD record of a custom table.
    Is there documentation that would allow me to start coding the module I need?
    yuhu0
    @yuhu0
    Left column links pointing to central column content that will create/load/update records from database
    using forms, naturally
    Pablo Borowicz
    @eternoendless
    hi @yuhu0, have a look here : https://devdocs.prestashop.com/1.7/modules/
    Sébastien Monterisi
    @SebSept
    Hello
    I'm having trouble with an admin module.
    There just one missing thing for the admin controller to respond : I need to run "composer install" in the module. Then that's fine.
    Is it possible to avoid this manual step (composer install command) ?
    Pablo Borowicz
    @eternoendless
    it depends on whether you use composer or not in your module
    Sébastien Monterisi
    @SebSept
    I can do both. The module is at an early dev stage.
    It's better with composer I guess.
    Pablo Borowicz
    @eternoendless
    normally you only need to run composer install if you need composer :)
    Sébastien Monterisi
    @SebSept
    (Note that the Prestashop was not installed using composer.)
    Pablo Borowicz
    @eternoendless
    no matter what method you used to install PS, you only need to run composer on the module if the module itself needs composer (either it uses it for autoloading or for dependencies)
    assuming PS was installed using the zip release, or if you are using the development sources, that you ran composer install at the root of PS
    Sébastien Monterisi
    @SebSept
    it was installed using a zip release. (it's 1.7.5.0)
    (I'm trying a few things ...)
    Sébastien Monterisi
    @SebSept
    still stuck with that error "Class "VuesEclatee\AdminController\AjaxAdminController" does not exist." when requesting the admin controller :/
    I'll publish a dummy copy version of the module to let you/anyone test if you wish ...
    or maybe someone has an example module using autoload so that I can try on my shop ... (?)
    Pablo Borowicz
    @eternoendless
    if you want to use composer autoloader you have to declare your namespace, see https://github.com/PrestaShop/ps_linklist/blob/master/composer.json#L17-L19
    Sébastien Monterisi
    @SebSept
    that's what I did.
    thx, I'm reading linklist module code ... maybe I'll find the problem...
    Sébastien Monterisi
    @SebSept
    ps_linklist module rely on the fact that vendor directory is present. This will not be the case for a new module.
    Pablo Borowicz
    @eternoendless
    why not?
    it will if you launch composer install
    Sébastien Monterisi
    @SebSept
    for sure
    but the module can't be installed in the admin
    that's my problem in fact.
    (vendor directory should not be in version control (or in module code).)
    Pablo Borowicz
    @eternoendless
    currently the vendor module has to be bundled with the module
    Sébastien Monterisi
    @SebSept
    crap.
    Pablo Borowicz
    @eternoendless
    i know this is bad practice but the old system is not ready to handle composer on its own
    Sébastien Monterisi
    @SebSept
    ok.
    so that's not a problem with my code.
    Pablo Borowicz
    @eternoendless
    we want to improve this in the next version so that modules will be installed/upgraded/uninstalled using composer
    nope