Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Sébastien Monterisi
    @SebSept
    form is displayed, ok.
    how do I handle the form saving ? Any hook for that ?
    Sébastien Monterisi
    @SebSept
    or should I add a save button pointing to a custom controller ?
    Cupsa Darius
    @cupsadarius
    Hello, I was wondering if there is a way to register a hook from a module that would get triggered when a new message is sent on a customer service thread. I didn't see anything in the documentation that would easily let me hook into that flow. Or if there is a better way of doing that ? I would be very grateful if you guys can point me into the right direction.
    nj
    @nicoja
    image.png
    Hello How can I solve this :
    cannot use base64 encode and decode ??? no method in Tools, so how ?
    image.png
    nj
    @nicoja
    And it used in Tools
    GoT
    @PierreRambaud
    Hi @nicoja , it was originaly used for retrieving personnal data from merchants, which is forbidden. Today there are other uses such API calls which needs data to be encoded, and we accept the use of these methods
    nj
    @nicoja
    Ok, thanks for your answer
    Krystian Podemski
    @kpodemski
    @PierreRambaud are you sure it is allowed on addons.marketplace? :)
    GoT
    @PierreRambaud
    @Quetzacoalt91 Said me yes :)
    Krystian Podemski
    @kpodemski
    i remember fighting with addons team years ago about base64 :D
    i had theme with serialized array treated with base64 just to not use json, because 5.2 was a thing back in the days and sometimes json was faulty
    theme was removed from the market because of that, #1 in category :D
    MarineCARTSGURU
    @MarineCARTSGURU
    Hello everyone :) I am having an issue with my Module in Prestashop Addons. The users cannot put reviews on it... Can someone please help me with this issue? Thanks a lot
    Rémy Lefebvre
    @Thorfy
    Hi guys, I tried to upload file with hookDisplayAdminProductsExtra and hookActionProductUpdate, it doesn't work. I tried to search information about that but i just found 1 github thread that said it was not possible anymore due to new symfony legacy controller. But I did not find anything more,
    Do you have a hint to suggest me?
    hi @SebSept you can check your date with the hook hookActionProductUpdate or hookActionProductSave (but file uploading bug)
    your data*
    Rémy Lefebvre
    @Thorfy
    @cupsadarius Hi, I do not know a hook to do that, but I think you should easily be able to add one custom in the class or the customerThread controlle
    Sébastien Monterisi
    @SebSept
    Hello @Thorfy , sorry I missed your answer. I finaly choose to implement hookActionAdminProductsControllerSaveBefore() .
    I think it's better than hookActionProductUpdate because, the form is displayed in the admin, but not present every time a product is saved (api, module, etc).
    Thanks for the effort to provide an answer ;)
    Another question : is it possible for a module to override files in /pdf folder ? (not asking to override in the theme but with a module).
    Sébastien Monterisi
    @SebSept
    (answer is No).
    Sébastien Monterisi
    @SebSept
    Is there a cleaner way to write this (in hookDisplayHeader()) :
    $this->context->controller->registerStylesheet($this->name, "modules/{$this->name}/views/css/vueseclatees.css", ['media' =>'all']);
    (the hardcoded "modules" could lead to problem)
    Matt75
    @Matt75
    If you look in native module, you can see
    $this->context->controller->registerStylesheet('modules-homeslider', 'modules/'.$this->name.'/css/homeslider.css', ['media' => 'all', 'priority' => 150]);
    The first argument is important because it's an id so it must be unique.
    So I suggest to you to use $this->context->controller->registerStylesheet("modules-{$this->name}-vueseclatees", "modules/{$this->name}/views/css/vueseclatees.css", ['media' =>'all']); if you want to include more than one css file
    No problem with use of the hardcoded modulesI think due to StylesheetManager classe
    Sébastien Monterisi
    @SebSept
    ok, thanks for advice on id param.
    selvakumardevvelan
    @selvakumardevvelan

    Hi ,

    How to create the admin custom grid in prestashop 1.6?

    Kevin Padilla
    @kpadilla17

    HI @All,

    Is there a way I could override the template for Category Page in Front Office?

    KrzysztofChbt
    @KrzysztofChbt

    Hi!

    I need to make PS module which call its functions after getting POST call from other aplication
    What is the easiest approach for that case?

    I've read https://devdocs.prestashop.com/1.7/development/webservice/tutorials/prestashop-webservice-lib/ but it didnt cover my case

    selvakumardevvelan
    @selvakumardevvelan

    Hi All,

    I need migrate the blog form wordpress to Prestashop.

    Could you please tell, how it do?

    romanseki
    @romanseki
    hello, what the pdf='true' tag does in smarty template mean?
    Aloui Mohamed Habib
    @alouimohamedhabib
    Hello
    For anybody new to Prestashop 1.7 here is a full video courses about the subject:
    Prestashop 1.7 module :
    https://www.udemy.com/create-module-prestashop-1-7/?couponCode=MEDSAM
    Prestashop 1.7 theme:
    https://www.udemy.com/create-prestashop-1-7-theme/?couponCode=MEDSAM
    Pablo Borowicz
    @eternoendless
    @romanseki that parameter makes the translation system use Translate::getPdfTranslation instead of Translate::getModuleTranslation
    romanseki
    @romanseki
    @eternoendless Thank you ;)
    romanseki
    @romanseki
    hello, any link to good tutorial how to preperly call ajax front controller in custom module?
    Andrea Maran
    @coachdesign
    Hi all, i have a problem with Prestahsop 1.6.1.24, after upgrade the modules page in admin is wrong
    installed and disabled modules is empty, and if i click refresh icon display counters
    if i search module on search i have no results
    and if i try to filter as "installed modules" result is empty
    if i try to install a new module, after installation the module appear as "installable" and if a try to reinstall i receive error "the modules is already installed"
    any idea?
    Robertino Vasilescu
    @Rho-bur
    Maybe if you enable debug true in config/defines.inc.php you would hopefully see some error messages to give you a debugging starting point.
    Andrea Maran
    @coachdesign
    @Rho-bur debug was true but i dont see any errors :|
    Robertino Vasilescu
    @Rho-bur
    try recursively reset the ownership and permissions for the entire PS root directory; I assume that in Advanced Preferences->Information all shows OK...
    Matt75
    @Matt75
    Try to delete xml files in config/xml/ and clear all cache
    FOCQUEU Thomas
    @MDW-Thomas
    Hello,
    I'm creating a module wich change the group of the customer when he buy a specific product.
    If he is premium, I apply a discount on all of the products of the shop.
    The things is that I don't want to apply discount on my specific product.
    For now, I override the function priceCalculation of the Product class.
    How can I do that without using override ?
    Is there a hook that I can use ?
    romanseki
    @romanseki
    Hello, I make module where will be csv import, is there any way to use similar import table like in producs import ? Thanks
    Fabrizio Spanu
    @freeman78ita
    Hi Guys, don' t mean to bother, anyone know how to troubleshoot a 404 error on all site pages?