Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation since 12/24/19 in all areas

  1. 6 points
    Hello, Just a note , I just published the Release 3.2131 see announcement for more explanations.
  2. 5 points
    Minor version Add hooks for reviews write Add latest modules/apps fix deprecated function pdf fix object page tab customer (group) update Json Ltd language synthax Update composer Preloader Version 3.2134 Fix minor element forgotten v3.2133 remove json product description fix manifest about accent fix header tag products condition
  3. 5 points
    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.
  4. 2 points
    Hi @Catalina, You must decide where you want to implement this module. - Header, footer, boxe ? - You can look after an exististing module and you can include the information that you want inside. - Generally you have this inside the module(structure) - module_header_google_translate (case of header) he_header_google_translate.php content (directory) header_google_translate.php (html content) and the languages synthaxe (do forget to reset your language in admin if you make a mistake because it's included in cache) On this example : For he_header_google_translate.php <?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/ * */ use ClicShopping\OM\Registry; use ClicShopping\OM\CLICSHOPPING; class module_header_google_translate { public $code; public $group; public $title; public $description; public $sort_order; public $enabled = false; public $pages; public function __construct() { $this->code = get_class($this); $this->group = basename(__DIR__); $this->title = CLICSHOPPING::getDef('module_header_google_translate_title'); $this->description = CLICSHOPPING::getDef('module_header_google_translate_description'); if ( defined('MODULE_HEADER_GOOGLE_TRANSLATE_STATUS') ) { $this->sort_order = MODULE_HEADER_GOOGLE_TRANSLATE_SORT_ORDER; $this->enabled = (MODULE_HEADER_GOOGLE_TRANSLATE_STATUS == 'True'); $this->pages = MODULE_BOXES_GOOGLE_TRANSLATE_DISPLAY_PAGES; } } public function execute() { $CLICSHOPPING_Template = Registry::get('Template'); $content_width = (int)MODULE_HEADER_GOOGLE_TRANSLATE_CONTENT_WIDTH; $data = '<!-- header_google_translate start -->' . "\n"; $data .= '<script type="text/javascript">'; $data .= 'function googleTranslateElementInit() {'; $data .= 'new google.translate.TranslateElement({pageLanguage: \'en\'}, \'google_translate_element\');'; $data .= '}'; $data .= '</script>' . "\n"; $data .='<script defer src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>' . "\n"; ob_start(); require_once($CLICSHOPPING_Template->getTemplateModules($this->group . '/content/header_google_translate')); $data .= ob_get_clean(); $data .='<!-- header_google_translate end -->' . "\n"; $CLICSHOPPING_Template->addBlock($data, $this->group); } public function isEnabled() { return $this->enabled; } public function check() { return defined('MODULE_HEADER_GOOGLE_TRANSLATE_STATUS'); } public function install() { $CLICSHOPPING_Db = Registry::get('Db'); $CLICSHOPPING_Db->save('configuration', [ 'configuration_title' => 'Do you want to enable this module ?', 'configuration_key' => 'MODULE_HEADER_GOOGLE_TRANSLATE_STATUS', 'configuration_value' => 'True', 'configuration_description' => 'Do you want to enable this module in your shop ?', 'configuration_group_id' => '6', 'sort_order' => '1', 'set_function' => 'clic_cfg_set_boolean_value(array(\'True\', \'False\'))', 'date_added' => 'now()' ] ); $CLICSHOPPING_Db->save('configuration', [ 'configuration_title' => 'Please indicate the width of the content', 'configuration_key' => 'MODULE_HEADER_GOOGLE_TRANSLATE_CONTENT_WIDTH', 'configuration_value' => '12', 'configuration_description' => 'Please specify a display width', 'configuration_group_id' => '6', 'sort_order' => '2', 'set_function' => 'clic_cfg_set_content_module_width_pull_down', 'date_added' => 'now()' ] ); $CLICSHOPPING_Db->save('configuration', [ 'configuration_title' => 'Sort order', 'configuration_key' => 'MODULE_HEADER_GOOGLE_TRANSLATE_SORT_ORDER', 'configuration_value' => '500', 'configuration_description' => 'Sort order of display. Lowest is displayed first. The sort order must be different on every module', 'configuration_group_id' => '6', 'sort_order' => '3', 'set_function' => '', 'date_added' => 'now()' ] ); $CLICSHOPPING_Db->save('configuration', [ 'configuration_title' => 'Please indicate where boxing should be displayed', 'configuration_key' => 'MODULE_HEADER_GOOGLE_TRANSLATE_DISPLAY_PAGES', 'configuration_value' => 'all', 'configuration_description' => 'Sélectionnez les pages où la boxe doit être présente', 'configuration_group_id' => '6', 'sort_order' => '7', 'set_function' => 'clic_cfg_set_select_pages_list', 'date_added' => 'now()' ] ); } public function remove() { return Registry::get('Db')->exec('delete from :table_configuration where configuration_key in ("' . implode('", "', $this->keys()) . '")'); } public function keys() { return array('MODULE_HEADER_GOOGLE_TRANSLATE_STATUS', 'MODULE_HEADER_GOOGLE_TRANSLATE_CONTENT_WIDTH', 'MODULE_HEADER_GOOGLE_TRANSLATE_SORT_ORDER', 'MODULE_HEADER_GOOGLE_TRANSLATE_DISPLAY_PAGES' ); } } Now the content : header_google_translate.php <div class="col-md-<?php echo $content_width; ?>"> <div class="separator"></div> <div id="google_translate_element"></div> </div> At the end the language : languages/english/modules/modules_header/he_header_google_translate.php module_header_google_translate_title = Do you want to enable google translate language module ? module_header_google_translate_description = Display google translate language Same for the french language. Now it's possible to improve the module and fix the script inside the footer by this code $footer_tag = '<script defer>'; $footer_tag .= 'function googleTranslateElementInit() {'; $footer_tag .= 'new google.translate.TranslateElement({pageLanguage: \'en\'}, \'google_translate_element\');'; $footer_tag .= '}'; $footer_tag .= '</script>' . "\n"; $footer_tag .= '<script defer src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>'; $CLICSHOPPING_Template->addBlock($footer_tag, 'footer_scripts'); 10 mn to do that.
  5. 1 point
    Hello @Catalina, Look this post you will have the answer. https://www.clicshopping.org/forum/topic/22-tuto-how-to-declare-the-xml-sitemap/
  6. 1 point
    Hello @Namiko, For the logo, you can change via the banner, (Marketing menu) Fo theinvoice logo, you can find inside the configuration menu and My store : note for this you must upload a new image inside the logo/invoice directory.
  7. 1 point
    You can try that : Backing up a single database mysqldump -u username -p database_name > data-dump.sql Restoring or loading the database mysql -u username -p new_database < data-dump.sql
  8. 1 point
    I installed this module and it works fine. Look there : https://www.clicshopping.org/forum/files/file/184-module-boxes-google-translate/
  9. 1 point
    Hello @Namiko, Welcome, i look a little the b2B aspect and ClicShopping has different capacities in this field - the catalog without the price ==> Yes you can for all products or just a specific products - with a specific account for this people. => Yes you have 2 forms, one for the customer one, for B2B. You can remove the B2B. Look the B2B configuration, customer group and the option inside the products, you will see the different settings.
  10. 1 point
    @Catalina, You can upload and push the files inside your test website. If all is ok, you can push on your production. If you want to know the change, use a tool like beyond compare, you can compare the files and see the update.
  11. 1 point
    Hi Catalina, I think you find a small bug, but you can change the sql request by this. It must resolve your problem. bm_page_manager $Qpages = $CLICSHOPPING_Db->prepare('select count(*) as count from :table_pages_manager where status = 1 and page_box = 0 and page_type = 4 and (customers_group_id = :customers_group_id or customers_group_id = 99) '); $Qpages->bindInt(':customers_group_id', (int)$CLICSHOPPING_Customer->getCustomersGroupID() ); and bm_page_manager_customize $QpagesSecondary = $CLICSHOPPING_Db->prepare('select count(*) as count from :table_pages_manager where status = 1 and page_box = 1 and page_type = 4 and (customers_group_id = :customers_group_id or customers_group_id = 99) '); $QpagesSecondary->bindInt(':customers_group_id', (int)$CLICSHOPPING_Customer->getCustomersGroupID() );
  12. 1 point
    Look this : hooks_dashboard_top https://www.clicshopping.org/forum/files/file/162-hooks-dashboard-top/ Is it that you look ?
  13. 1 point
    Hello @Josephine, Do you have look on the marketplace, there is an apps allow you to do that ?
  14. 1 point
    You have 2 solutions - One to include in you comment, the tracking with the link. - One to create a system allow you to reduce your process.

Announcements

×
×
  • Create New...

Important Information

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