Jump to content

Foster

Members
  • Posts

    86
  • Joined

  • Last visited

    Never
  • Days Won

    19

Posts posted by Foster

  1. It's weird,

    Do you tried on your local computer, because I tested the lastest release and I have no problem.

    Do you use Cpanel ? If yes you can install via Cpanel ClicShopping, it's automatic.

     

    Note . All the script is called on CDN, If you have no connection with internet, you wil have a problem. I suppose it's to reduce the code by the developers,

    Also, you can try something,

    Find this function and put in comment these elements, One time I used another software with a lot code line on the same domain and I have been a problem

     

        /**
         * Calculate the size of a directory by iterating its contents
         * @Access public
         * @Return size if the directory
         */
        Public Static function getDirSize(): string
        {
    /*
          $path = CLICSHOPPING::getConfig('dir_root', 'Shop');
          $path = rtrim(str_replace('\\', '/', $path), '/');
          $bytestotal = 0;
          $path = realpath($path);
    
          if ($path !== false && $path != '' && file_exists($path)) {
            foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path, \FilesystemIterator::SKIP_DOTS)) as $object) {
              $bytestotal += $object->getSize();
            }
          }
    */
          $bytestotal = '';
    
          return $bytestotal;
        }

     

     

     

  2. Hello,

    Yes congratulation to the team for this new release.

    The dashboard has a new script, very light and not use jQuery, It's better like that in my sense. Now all the browser can manage some function. The importance of Jquery start to decrease.

    FontAwesome has been removed also.

    Now just to have a bootstrap beta 2, I ask me question. It will no better to have the official release ?

     

  3. Hello,

     

    I am looking something allowing to check the number of character inside a textarea without jquery. There are some solution, but I like the code below because he is very short.

    It's for some people want to do create a form as contact, feedback, reviews, comment ... It can be useful

    If the number of character is not reach, a pop up appear on the screen.

     

      <form action="mango.php" method="post" id="form12" onsubmit="var text = document.getElementById('checkField').value; if(text.length < 80) { alert('put more info!'); return false; } return true;">
    <textarea rows="10" cols="80" maxlength="200" required id="checkField" > </textarea>
    </form>

     

    • Like 2
    • Thanks 2
  4. The file config do not stay in 777, but 444. After every hoster has a specific configuration and for moment a software can be simple to use, another with some difficulties.

    For me, I tested ClicShopping under Ispconfig and Cpanel, ubuntu debian and there is no problem.

    As mentionned, there, https://www.clicshopping.org/forum/technical-information/ - ClicShopping  - ClicShopping has been tested on these environment.

     

     

  5. Hello,

     

    Yes, you can. You must create a hook in ibnside the reviews apps.

     

    Lootk this code : SItes/ClicShoppingAdmin ... Dashboard .... main.php

    <?php echo $CLICSHOPPING_Hooks->output('DashboardShortCut', 'DashboardShortCut', null, 'display'); ?>

    Now look inside product you will see in Hooks directory a files called DashboardShortCut


    Reply the process inside Module/ClicShoppingAdmin/DashboardShortCut or inside the aps reviews.

     

    I do not explain all because I think you must look to understand the application but you have all the process.

     

    good code :)


    Regards
    Forster

     

     

  6. Hello,

    It's not so difficult to make an upgrade. I look the update, there 2 sql update.
    in first, go to your phpmyadmin and update the Db.
    in second, just send the files in your server.

    Do not forget it's a pre release, some modification can be made the last minute

    For you it's good to make a test.


    That's all.

     

    My recommendation before that, do the update in your local server, If your have no problem, go in production.

    About the module, it will have no problem.

     

     

    • Like 3
    • Thanks 2
  7. For moment, some badbots can  very aggressive.

    There a solution to block this elements via your htaccess

     

    ##################################
    # Bot
    ##################################
    #Rules to block bad bods from accessing web pages on your site.
    #Remove or add more rules as per your needs.
    BrowserMatchNoCase "Baiduspider" bots
    BrowserMatchNoCase "SemrushBot" bots
    BrowserMatchNoCase "Yandex" bots
    BrowserMatchNoCase "BLEXBot" bots
    BrowserMatchNoCase "AhrefsBot" bots
    BrowserMatchNoCase "DotBot" bots
    BrowserMatchNoCase "Exabot" bots
    BrowserMatchNoCase "SeznamBot" bots
    BrowserMatchNoCase "aiHitBot" bots
    BrowserMatchNoCase "spbot" bots
    BrowserMatchNoCase "MJ12bot" bots
    BrowserMatchNoCase "oBot" bots
    BrowserMatchNoCase "DeuSu" bots
    BrowserMatchNoCase "ia_archiver" bots
    BrowserMatchNoCase "MetaURI" bots
    BrowserMatchNoCase "FlipboardProxy" bots
    
    Order Allow,Deny
    Allow from ALL
    Deny from env=bots

     

     

    • Thanks 4
  8. Hi @Julie,

     

    I don't know, for me I try to download an image by a size in 640px. I think it's enough for the product image description.

    After, maybe the script allowing to resize the image has a maximum.

    - Test some image with this resolution 1024, 2048 ... You will see where is the limit.

    - The second point it also could be the weight of the image.

  9. Hello @CoucheTard

     

    Your logo scare me :)

    Yes, you can develop your own modules, Look the code inside the module, you will have some other function than you can use.

    For example you can integrate the reviews evaluation or you can create something else.

    For the reviews, you can create another template and put inside.
    Create another module, or template allow you to maintain more easily your application without to tell you what files I need to change or to look.

    Of course, if there is an update, you must look inside your own module if you must adapt something.

     

    But the best, it to create a new template and inside include the files than you must want to change.

    Look the template on the marketplace, it will help you.

     

    • Haha 1
  10. No you do not have to. It's not mandatory

    You can install composer inside your dev and after if you install a library and develop something (or update the libraries),

    you can export your dev in  production.

    It's better to check in dev before because when you are in production, and you have an error it's not very nice !!

    Composer help lot of when you try to develop something with a library like phpmailer (it's including inside ClicShopping).

    But it's an example.

     

    Composer change these files when you make an action with composer.

    /shop/composer.json

    /shop/composer.lock

    /includes/ClicShoping/External/vendor

     

    Let me know if you want more information.

     

    • Thanks 1
  11. @Julie,

    In your case, you can not install the apps but the library will not installed. You must make another action via your terminal to finish to install the library.

    After you can activate the apps.

     

    The terminal command is :

     

    composer require mylibrary
    composer update mylibrary
    composer update (for all library)
    composer remove mylibrary

    If you have this message you can not make an update via the administration, you will see just the version installed.

     

    @SuperThin, As i Said ClicShopping, it's better for you to make a manual update.
    You can look the apps accross the admin, but it's better to download and install after

    Also you can look via Github or via the marketplace.

    Some hoster make restriction and its not possible to know before to make a test.

     

    • Thanks 1
    • Haha 1
  12. Hello,

    if you want to know the library version and look if there is an update, yes it can be.

    I have not installed this app but it just display the information for moment.
    It will be cool if it's possible to make an action like update around that.

    A library can have bugs, secutiy problem ....

×
×
  • Create New...

Important Information

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