Jump to content

Dublowanie homefeatured

Recommended Posts

1) kopiujesz moduł do innego folderu

2) zmieniasz nazwę głównego pliku php z homefeatured.php np. na doubledfeatured.php

3) w kodzie pliku zmieniasz również: homefeatured na doubledfeatured (lub HOME_FEATURED) w miejscach:

  • class HomeFeatured extends Module
  • $this->name = 'homefeatured';
  • return parent::install() && Configuration::updateValue('HOME_FEATURED_NBR', 8) && $this->registerHook('home');
  • return Configuration::deleteByName('HOME_FEATURED_NBR') && parent::uninstall();
  • Configuration::updateValue('HOME_FEATURED_NBR', (int)$nbr)
  • <input type="text" size="5" name="nbr" value="'.Tools::safeOutput(Tools::getValue('nbr', (int)Configuration::get('HOME_FEATURED_NBR'))).'" />
  • $nb = (int)Configuration::get('HOME_FEATURED_NBR');


i to w zasadzie wszystko

  • Like 1

Share this post

Link to post
Share on other sites


  • Create New...

Important Information

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