Jump to content

Foster

Members
  • Posts

    86
  • Joined

  • Last visited

    Never
  • Days Won

    19

Posts posted by Foster

  1. I am looked more information about that and find a technical information

    It can help you why you have a problem :

     

    Quote

    When you use PHP's mail() function (what PHPMailer uses by default), it opens a shell and calls a sendmail binary (a client program for submitting email messages from a command line) belonging to your local mail server. If you don't have a local mail server, it can't work, and you get the error you're seeing. You could get the same error if there is a mail server, but you don't have permission to run sendmail.  You need to do one of:  Install a mail server (such as postfix) Talk to a local server via SMTP (which will not be subject to permissions issues in the same way that mail() is) Use SMTP to send through a remote mail server, either your ISP's or some other server such as gmail (if your ISP allows outbound SMTP).

     

  2. @JKaz

    No, it simple if you follow the instruction above.

    I recommend you to have a tool like beyond compare or similar. In this case, you can compare the files and update what you want.
    if you have all the files inside a new directory, just copy the file, that's all else you must compare.

    Thank you for your work :) @ClicShopping

     

  3. Yes you can do that,

    Look this line

    $product_tab_description .= '<div class="tab-pane" id="tab' . $n . '">' . $r . '</div>';

    you have just add the same after the loop and update. After you can make a new one with all that you want inside.

     

    • Like 1
  4. Yes, it's possible to let the administrator choose But in other parts it's maybe better for him to have no choice. Some government looks the website to identify if it respects the law or not.

    There is another option, make a rule to let the customer contact the shop owner for that. But it's must be clear inside the website rules.

     

     

  5. There an example :

    You can see a status there :

    http://localhost/shop/ClicShoppingAdmin/index.php?A&Configuration\Modules&Configure

     

    look the Module directory :Apps/Configuration/Modules/Module/ClicShoppingAdmin/Config/MO/Params

     

    2/ Inside you can see a status files, copy and paste inside the same directory.

    Change the filename status_stats_products.php for example

    You can have something like this :

    <?php
      /**
     *
     *  @copyright 2008 - https://www.clicshopping.org
     *  @Brand : ClicShopping(Tm) at Inpi all right Reserved
     *  @Licence GPL 2 & MIT
     *  @licence MIT - Portion of osCommerce 2.4
     *  @Info : https://www.clicshopping.org/forum/trademark/
     *
     */
    
    
      namespace ClicShopping\Apps\Configuration\Modules\Module\ClicShoppingAdmin\Config\MO\Params;
    
      use ClicShopping\OM\HTML;
    
      class status_stats_products extends \ClicShopping\Apps\Configuration\Modules\Module\ClicShoppingAdmin\Config\ConfigParamAbstract {
        public $default = 'True';
        public $sort_order = 10;
    
        protected function init() {
            $this->title = $this->app->getDef('cfg_products_modules_status_stats_products_title');
            $this->description = $this->app->getDef('cfg_products_modules_status_stats_products_description');
        }
    
        public function getInputField()  {
          $value = $this->getInputValue();
    
          $input =  HTML::radioField($this->key, 'True', $value, 'id="' . $this->key . '1" autocomplete="off"') . $this->app->getDef('cfg_products_modules_status_true') . ' ';
          $input .=  HTML::radioField($this->key, 'False', $value, 'id="' . $this->key . '2" autocomplete="off"') . $this->app->getDef('cfg_products_modules_status_false');
    
          return $input;
        }
      }

     

    2/ Now don't forget to reate the files inside  your language  directory

     

    3/ Now actualize your page, a new configuration is added inside the configuration database : CLICSHOPPING_APP_MODULES_MO_STATUS_STATS_PRODUCTS

     

    4/ now go in this directory :  Includes/Module/Hooks/ClicShoppingAdmin/Dashboard

    Edit your hooks stats_products .php for example and add after :  function  execute()

    this :

     

    if (!defined('CLICSHOPPING_APP_MODULES_MO_STATUS_STATS_PRODUCTS') || CLICSHOPPING_APP_MODULES_MO_STATUS_STATS_PRODUCTS == 'False') { 
      return false; 
    }

     

    Now you can control your hook and display the information or not.

     

     

     

     

    • Like 2
    • Thanks 2
  6. No, you can not.

     

    But there are other possibilities. Inside the apps, you can create an option to activate a hook or not or to include inside the hooks a status in relation with the app.

     

    If (defined('MY_APPS_CATALOG_TEST_STATUS) && MY_APPS_CATALOG_TEST_STATUS == 'True') {
      return false;
    }
    
    Or
    
    If (defined('MY_APPS_CATALOG_TEST_HOOK_STATUS) && MY_APPS_CATALOG_TEST_HOOK_STATUS == 'True') {
      return false;
    }

    I have not tested, but I think it's a way to manage a hook or not.

     the core has not a status function to manage the hook.

     

    • Like 1
  7. Hello,

    Also, I used Osc, this application is good, but when you want to make something more, you must include some code in the core. At the end, I decided to test other things, there are some good e-commerce application.ClicShopping is one I look because it's close to Osc on the bd.

×
×
  • Create New...

Important Information

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