Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Foster last won the day on April 8

Foster had the most liked content!

Community Reputation

8 Neutral
  1. 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.
  2. 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.
  3. 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.
  4. No you can't but if you customize a little you can add an element inside your DB and insert the hooks a condition with a return on false.
  5. 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.
  6. Ok, thank you @drack. Indeed, just to look tools/extension and I found all that I want.
  7. Hello, I will have know how to display the meta tag description, title ... I found how to write by default on by product description, but I don't see the elements ?
  8. Hello Mc, I have been a similar problem, I just change the sort order. If you have the same sort order, you can have a problem to display the module where you want. I hope this experience can help you.
  9. 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.
  10. Thank you for this example.
  11. Hello, I am testing the B2B, and I would know if it's possible : To Remove the price To remove the taxes To display the product only in B2B Tk.
  12. Foster

    Hooks GRPD

    @Grimoire, @Julie, Thank you, a newbie like me it's interesting to understand how works ClicShopping. It's simple when we tried to use a new tool.
  • Create New...

Important Information

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