Jump to content


  • Posts

  • Joined

  • Last visited

Posts posted by sfweb

  1. On 8/9/2016 at 5:29 PM, fabian.leisibach said:

    Dear all, 


    I'm new to prestashop and I'm currently trying to develop a module that is supposed to print a QR code on every delivery slip. In my module I generate the QR codes. To get them on the delivery slip I modified prestashop in /pdf (added a new .tpl file) and changed HTMLTemplateDeliverySlip.php in /classes/pdf. I know this is not the correct way to do it, but like this it worked.


    Now I want to do it rather the correct way. I read about this great override feature, but I can't get it to work. I created a module named bonsaidelverymodule with presta's module builder. In the module folder i created subfolders (bonsaimoduledelivery/override/classes/pdf). In there I extended the HTMLTemplateDeliverySlip as described in the documentation with HTMLTemplateDeliverySlipCore and saved it as HTMLTemplateDeliverySlip.php. Now when I try to install my module i get following Error:


    Unable to install override: Class HTMLTemplateDeliverySlipOverride57a834252d48c does not exist


    What i tried until now:

    - I deleted to HTMLTemplateDeliverySlip.php, and without there is no error

    - deleted class_index.php file in /cache


    Does anyone have a hint for me, what I might do wrong? And what would be the correct way to add the .tpl file to /pdf within my module?


    I'm running on prestashop


    HTMLTemplateDeliverySlip.php 3.39 kB · 5 downloads

    Hi, I'm having the same problem, did you find a solution?


  2. On 6/15/2014 at 9:15 PM, serralta said:

    Hi everybody.


    I am trying to develop an easy module. It is my first one, so it may be some stupid problem but the fact is I'm stuck with it from some days ago.


    I have a simple module that has a override/classes/Product.php class. It adds a simple single method. When I install it, all is fine. The overriden Product class is generated.


    The problem is when I do some changes and I try to reinstall it (reseting it or uninstalling and installing, again, the result is the same). The method I added to the overriden class is not deleted completly when I uninstall the module. Only the name is removed but not the function body.


    This causes a Fatal error: Uncaught exception 'ReflectionException' with message 'Class ProductOverrideOriginal_remove539defbda2a6c does not exist'


    I paste the generated code.


    When I install the module for first time I got:

    class Product extends ProductCore {
    	public function getLocalizationImage(Context $context = null)
    		return true;

    When I reinstall it, or uninstall it the classe is left as follows:

    class Product extends ProductCore {
    		return true;

    Is it normal? What am I missing? The same problem if I do a second module that adds a DIFFERENT function to the Produt class. The second module I install has no name in its function declarations.


    Any help would be appreciate.


    Hi, I'm having the same problem, did you find a solution?

    Let me know. 


  3. After I wrote the post I've just found a solution, here is my code:

    This the renderForm inside my controller:

    public function renderForm() {

            $fields_list     = array(
                'id_test'     => array(
                    'title'         => $this->l('Col1'),
                    'width'         => 25
                'field1'     => array(
                    'title'         => $this->l('Col2'),
                    'width'         => 25
                'field2'             => array(
                    'title'         => $this->l('Col3'),
                    'width'         => 25


            $helper = new HelperList();

            $helper->shopLinkType = '';
            $helper->simple_header = true;
            $helper->identifier = 'id_test';
            $helper->show_toolbar = true;
            $helper->title = 'Boomprice Used';
            $helper->table = 'boomprice_used_cod';


            $sql = 'SELECT * FROM '._DB_PREFIX_.'table_name';
            $results = Db::getInstance()->ExecuteS($sql);
            if (empty($results)) {
                $database_data= 'Nothing';
            } else {
                $database_data = $results;

            return $helper->generateList($database_data, $fields_list);

    I hope this code will help someone.

    • Like 1
  4. Hi,

    we used leo_xalem theme for our ecommerce, but we have a problem.

    When the prestashop cache is enabled we noticed that every 60 seconds the cached files are created again (in the path /cache/smarty/).
    The same does not happen with the default prestashop template.

    For instance: the file in the path


    With leo_xalem the file is recreated every 60 seconds, with default prestashop theme does not happen.

    To say this we see the "last modification time" of the file.

    The same happens for the other modules and files in the cache directory (/cache/smarty/).

    Where is the problem? It seems that the cache time in only 60 seconds when a leotheme is used.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More