Jump to content

ClicShopping

Administrators
  • Posts

    398
  • Joined

  • Last visited

  • Days Won

    107

Posts posted by ClicShopping

  1. Hello,

     

    I am sorry to hear you to not able to install ClicShopping.

    Until now, I install the application lot of time on different server and every time everything works fine on the best hoster known, fast-cgi or FPM.

    To be sure, I retested the master and everything works fine.

    I never had a problem with that and some very big partner (very known) use this application without problem or propose this application to install automatically.

    If you dot change the permission about configuration file in 777, yes you can have this problem, but after you must put these file in 444. That' all.

     

    I can do  a quickly test for you if you give all information, ftp and mysql. That's all I can do for you.

     

    Thank you.

     

    • Like 2
    • Thanks 1
  2. With PHP 7.4, support for preloading was added, a feature that could improve the performance of your code significantly.

    In a nutshell, this is how it works:

     

    - In order to preload files, you need to write a custom PHP script

    - This script is executed once on server startup

    - All preloaded files are available in memory for all requests

    - Changes made to preloaded files won't have any effect, until the server is restarted

     

    If you want more information, some article are available on this new feature.
     

    library used (under MIT licence):
    https://github.com/DarkGhostHunter/Preloader

     

    1 / Mandatory Requirement
    - Php 7.4 minimum version
    - opCache installed
    - An access to your php.ini
    - Work in 777 chmod

     

    2 / How to implement :

     

    Step 1 : Know your path
    You must know  your root on preloader.php inside your application. below an example

    www/var/..../shop/includes/ClicShopping/Work/Log/preloader.php

     

    Step 2 : Php.init implementation
    Edit your php.init and search this line :

    ;opcache.preload=

    replace by your root path : below an example

    opcache.preload=/home/www/..../shop/includes/ClicShopping/Work/Log/preloader.php

     

    Step4 : Restart apache2

    Make this command inside your terminal

    sudo service apache2 restart

    Step5 : Configure ClicShopping

    * Go to ClicShopping Administration
    - Menu Configuration / Session & Cache / Compression & optimization
    - Activate the preload functionnalities

     

    * Go to your catalog and actualise a page
    - The sytem will create a preloader.php file inside your Work/Log directory
    - You can check if everything is correct in editing your preload.php files. You must see some information inside.

    • Like 1
    • Thanks 7
  3. Hello,

    @Drack, thank you for this report, updated.
    The ClicShopping Core seems to work fine with php 7.4, just the external libraries must be updated eventually, for that we must wait the developer to make the work.
    If I see something, I will update the core.

     

    There, the elements can put eventually a problem after a quick search (I do not say, you will have an error, more test must be again done) :
    base on this information : https://www.php.net/manual/fr/migration74.deprecated.php

     

    Using array_key_exists() on objects (some external libraries) ¶

    Magic quotes functions  (ckeditor) ==> no impact

     

     

    • Like 1
    • Thanks 4
  4. Hello,

     

    To react at this topic, I pushed a new minor version with all the composer libraries updated.
    This version has some update like ckeditor, Elfinder and some fix.

     

    If you have not included new composer library, you can easily update your solution else you must make the command composer unpdate inside the Shop directory or where you can find the composer.json in the ClicShopping root directory.

    • Like 2
    • Thanks 2
  5. Hello,

    @Patricks describe well what you must make and also take time to learn and test.

     

    About the demo and master, the demo show you how to use different themes but the default is the same than you have on Github, after you can change some setting inside modules ou default configuration or apps.

     

    For the demo, I just created a specific theme and put just the file need to be change but you also can create your own module and call your own template.

     

    Note, the default template is the "referent" for the files, if you create a new template with new module and change after in other template without this module, errors can appear. You can resolve that if you bring you new module inside the default template.

    The new template override just the files in the default template. Limit all the css must copied in the new template

     

     

    • Thanks 1
  6. The menu can have different function

     

    For example if you want to create a marketplace you have 2 choices

    Create the menu in manual mode

    Create the menu via the apps automatically

     

    Manual is not recommended on this case when you create an apps because the administrator must do a manual action on the menu and after install the apps with the instructions.

     

    Like all menu has a specific code. It s possible to re-organise the menu if you do not appreciate.

     

    Access to this menu allow you to know the good code and id for a programmer when he creates a new apps inside the menu of his choice.

    The best is to look inside the Configure directory the different files (Install and Delete) the approach.

     

    About the modules inside the catalog (template), you have nothing to do.

     

    • Like 2
    • Thanks 2
  7. hello @SuperThin,

     

    Could you test (on several specific world)  this please  and tell me if it work ?

     

    in includes/Shop/RewriteUrl.php - change the function by this.

    In it's work it will be added on next update.

    I take different work on your website, and seems now ok inside the the url

    Thank you for your comment @SuperThin

    /**
         * Remove url accent
         * @param $str
         * @param string $charset
         * @return null|string|string[]
         */
        protected function getSkipAccents(string $str, string $charset = 'utf-8'): string
        {
    
          if (!extension_loaded('intl')) {
            throw new Exception('intl module not loaded');
          } else {
            $transliterator = \Transliterator::create('Any-Latin; Latin-ASCII');
            $str = $transliterator->transliterate(mb_convert_encoding(htmlspecialchars_decode($str),$charset, 'auto'));
          }
    
          $str = htmlentities($str, ENT_NOQUOTES, $charset);
    
          $str = preg_replace('#&([A-za-z])(?:acute|cedil|caron|circ|grave|orn|ring|slash|th|tilde|uml);#', '\1', $str);
          $str = preg_replace('#&([A-za-z]{2})(?:lig);#', '\1', $str);
          $str = preg_replace('#&[^;]+;#', '', $str);
          $str = preg_replace('/[^A-Za-z0-9\-]/', '', $str); // Removes special chars
    
          return $str;
        }

     

    • Like 4
    • Thanks 2
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use