Jump to content

ClicShopping

Administrators
  • Posts

    404
  • Joined

  • Last visited

  • Days Won

    109

Posts posted by ClicShopping

  1. Like you can see, the 3.12 is out.
    Some files have been updated or improved. the 3.12 has been out because they have a security fix on jquery. We have updated also some script.

     

    To update ClicShopping :

    If you have modified the template default directory, it's better to use a beyond compare

    If you use another template directory, you nothing to do except to compare you have modified files to see if there is an update or not.

     

    Have a good day :)

    • Thanks 12
  2. An example :

    $CLICSHOPPING_ProductsLength->convert($products_dimension_depth, $products_length_class_id, 2)

    In this case, all the products_dimension_depth will be converted in cm. You can also use the default unit (can be defined in configuration store)

    • Like 1
    • Thanks 5
  3. Hello @Patrick,

    The product length has been introduced because some shipping module takes the length (ups, postcanada, boxtal, fedex ..)
    You can define different length in function your need.

    When you create  a new shipping app, you can convert the length in function of  characteristics of the service. For example, in France, we use the cm but in USA, this is the inch. If you have your length in cm, you can convert automatically in inch .

    Some others updates resolve bug fix.

    • Like 1
    • Thanks 5
  4. @Laela

    Welcome, ClicShopping is not made to be used under Windows,  I have not the time to make all verification inside the environment.

    I think your computer is too slow to execute the process. You can update the execution time and increase the number.

    Go to php.ini, edit and search this line :

     

    ;;;;;;;;;;;;;;;;;;;
    ; Resource Limits ;
    ;;;;;;;;;;;;;;;;;;;
    
    ; Maximum execution time of each script, in seconds
    ; http://php.net/max-execution-time
    ; Note: This directive is hardcoded to 0 for the CLI SAPI
    max_execution_time = 30

    for example, change by this

    max_execution_time = 3000
    • Thanks 1
  5. I looked more deeply on this problem: escapeshellcmd(). If your hoster lock the default Sendmail function, you must use the SMTP inside configuration / Mail

    I will make other test and make an update about as soon as possible. But you can use the application without problem. Just in case in your hoster block this function, use the other.

     

    That's why you hoster create protection on that. https://exploitbox.io/paper/Pwning-PHP-Mail-Function-For-Fun-And-RCE.html

     

    Quote

    The attacker can however inject additional command parameters to the sendmail command itself as the escapeshellcmd() function called by mail() does not quote the $additional_parameters parameter by default. It gives a programmer freedom to pass multiple arguments to sendmail, but may introduce a vulnerability to unaware programmers. A successful injection of additional parameters to sendmail, might trigger additional functionality of the sendmail program itself. For example, if the attacker managed to set $return variable to: attackere@remote -LogFile /tmp/output_file The sendmail program would be called as a shell command: /usr/sbin/sendmail -t -i -f attackere@remote -LogFile /tmp/output_file If the -LogFile was a valid argument for the sendmail interface installed on the target machine, this could cause the program to write out a log file into /tmp/output_file. As it turns out Sendmail MTA has such a logging function in its implementation of /usr/sbin/sendmail interface, which can be enabled by -X parameter and could be used to save malicious code provided by the attacker.

     

  6. @Patrick,

    Thank you for your deep test. You have right, but if a category is on Off, it's supposedly all his other must be on OFF. In this case, there is no problem.

    But you have reason if inside an Off category there is a category on On, in this case, the product is displayed.

     

    About the products attributes, the system must be rewritten in the future, no delay on that. it could be an on next release, now, like always, the focus is to discover the  bugs.

     

    • Like 1
  7.  Hi everybody

     

    You will find inside the zip a folder called update in the root. Open it and include the DB modification. Before to make that, look inside your DB if you have not these fields.

    Else, if you have installed modules use the products table, you must make an update .
    The most impact is inside ClicShopping, I recommend you to make before your update, a copy of your version and make the upgrade. If you have o problem, it's cool, else you can make a comment here.


    About the modules (free and paid)

     

    header_menu :slimmenu, upcomming products
    header_tag : grdp, analytics, facebook pixel, twitter_card,
    apps : antispam, frontpage_specials, favorites, featured, image, manufacturer
    modules_products_info : also_purchased,  products_related,  reviews, download

     

    This is the most of apps and modules impacted by the update.
    Note : the paid modules will be updated today

     

     

    • Like 1
    • Thanks 10
  8. @David

     
    The bug has been identified and updated on the latest version.
    Just download the latest version and update your files. If you have not changed some element inside the template, just push else use a compare files tools like beyond compare.
    (I recommend you to create another template and put inside all the files if you want to modify and all the CSS).  All the files can be overridden .
    Don't forget to update the design configuration.
    In your case, just go in design / header / activate the menu.
    look :https://www.clicshopping.org/forum/topic/62-find-the-good-css-file/

    https://www.clicshopping.org/forum/topic/7-how-to-change-theme/

  9. @FrediKa,

    There an example.

     

    the process:

    edit

    fp_new_products.php

    rename in

    fp_my_file.php

     

    Inside
    replace

     fp_new_product

    by

    fp_my_file

    replace :

    front_page_new_products 

    by

    front_page_my_file

    replace :

    FRONT_PAGE_NEW_PRODUCTS

    by

    FRONT_PAGE_MY_FILE

     

    eventually you can change the template directory :

    '/template_html/' . MODULE_FRONT_PAGE_NEW_PRODUCTS_TEMPLATE 

    by

     '/template_html/' . MODULE_FRONT_PAGE_MY_TEMPLATE_DIRECTORY

     

    Do not forget to change the language
    Do not forget to change the css


    Now you are ready to implement your code.

     

    This is a short cut to help you how to make a new template_html with a template directory but you can use also the default template_html

     

    Now do not forget to include your new contribution inside the Default template and also in your new template directory. Like that you can change everything without to change anything inside the default template directory.

    Why you must include your new contribution in the Default directory and not only the new template directory ?
    It's the DB initialization is made by default inside the  Default directory.
    Like all the module are overridden in function the Default Directory, you have no choice to include the new element inside the Default directory.

    It's the limitation.
    I hope it's not little too complex, but after one or to test, you will understand the process.

     

     

     

     

    • Thanks 3
  10. This tuto allow to make an app quickly without knowledge. Inside you will have important element to use and change to create a new app. you must after updated inside your need.

    - First download a App name New_Template on Github and follow these instructions (https://github.com/ClicShoppingOfficialModulesV3/apps_catalog_new_template)
    - Copy the app New_Template inside your includes/Apps/Catalog directory
    - Rename the directory New_Template by MY_NEWS_APP (name of your new application)
    - Replace all these terms in my MY_NEWS_APP directory :
    Please respect the syntax lower and uppercase. it's very important.

    - NewTemplateAdmin by MyNewAPPAdmin
    - new_template by my_new_app
    - New_Template by My_New_APP
    - NEW_TEMPLATE by MY_NEWS_APP

    - NT BY MA ==> becarefull when you make that.
    - _nt_ by _ma_

    Rename directories and files
    - New_Template.php by My_New_App.php
    - new_template.php by my_new_app.php
    - NT.php by MA.php
    - NT by MA
    - Inside this directory Sites\ClicShoppingAdmin\Pages\Home\Actions\Configure
    - edit Install.php
    - Update in consequence.

    - Update the language files

    Note
    These directories has been inserted to help you. If you don't need, you can remove.
    - Remove Classes directories if you don't have need.
    - Remove Hooks language and Products directory if you don't have need.

    Don"t forget to update your clicshopping.json

    If you need specific classes, create a specific directories ClicShoppingAdmin for the admin and Shop for the catalog.

     

    now you are ready, you can find some apps to help you to continue your development on Github : https://github.com/ClicShoppingOfficialModulesV3

    Now you ready to install you new app.
    https://www.mydomain.net/shop/ClicShoppingAdmin/index.php?A&MY_NEWS_APP

    • Like 1
    • Thanks 2
  11. Hello @Patrick

     

    You have some example inside the administration,

    look this file :

     

    The most important is to use this syntax :

     

    Without nothing

    ClicShopping\Apps\Marketing\SEO\Sites\Shop\Pages\GoogleSitemap\Actions\GoogleSitemapSpecials.php

    protected $use_site_template = false;

     

    For modal

    ClicShopping\Apps\Catalog\Suppliers\Sites\ClicShoppingAdmin\Pages\Home\Action\SuppliersPopUp.php

    $this->page->setUseSiteTemplate(false); //don't display Header / Footer

     

    • Like 1
    • Thanks 3
×
×
  • Create New...

Important Information

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