Jump to content

modules downloaded


Recommended Posts

Hi,

     

 I am trying to install a new theme in my prestashop ,but some modules is  not showing correctly as seen in the demo theme.So i try to Zip the module and upload it but it  shows "module download successfully"  but it is not showing in module list. can anyone help me

 

 

Link to comment
Share on other sites

  • 9 months later...

Hi Vekia,

             I have another issue in my prestashop 1.6 ,I tried to install a "facebook like box " my custom module it show an error as follow         

               

Error:

                        

  1. facebooklikebox (parse error in /modules/facebooklikebox/facebooklikebox.php)
  2. facebooklikebox (class missing in /modules/facebooklikebox/facebooklikebox.php)

Here is  the code for the  facebooklikebox.php:

                     <?php

 
class facebooklikebox extends Module
    {
     public function __construct()
 {
   $this->name='facebooklikebox';
   $this->version='1.1';
$this->tab = 'Front_office_features';
   $this->author='paramaguru';
 
   parent::__construct();
 
   $this->displayName=('FacebookLikeBox');
   $this->description=('This module is useful for facebooklikebox');
  }
     
 public function install()
  {
    return parent::install()
&&Configuratrion::updateValue('facebooklikebox_url','')
&&Configuration::updateValue('facebooklikebox_color','')
&&Configuration::updateValue('facebooklikebox_faces','')
&&Configuration::updateValue('facebooklikebox_header','')
 &&Configuration::updateValue('facebooklikebox_border','')
&& $this->registerHook('displayRightColumn');
  }
  
  public function uninstall()
  {
     return Configuration::deleteByName('facebooklikebox_url') && parent::uninstall()
 return Configuration::deletebyName('facebooklikebox_color','') && parent::uninstall()
 return Configuration::deleteByName('facebooklikebox_faces','') && parent::uninstall()
 return Configuration::deleteByName('facebooklikebox_header','') && parent::uninstall()
 return Configuration::deleteByName('facebooklikebox_border','') && parent::uninstall()   
     && $this->unregisterHook('displayRightColumn');
       }  
  public function getContent()
  {
    $html=''
     if(Tools::isSubmit('submitModule'))
 { 
   Configuration:updateValue('facebooklikebox_url',Tools:getValue('url'));
   Configuration:updateValue('facebooklikebox_header',Tools:getValue('color'));
   Configuration:updateValue('facebooklikebox_faces',Tools:getValue('faces'));
Configuration:updateValue('facebooklikebox_border',Tools:getValue('header'));
   Configuration:updateValue('facebooklikebox_border',Tools:getValue('border'));
 } 
 
    $html='
     <h2>'.$this->displayName.'</h2>
    <form action="'.'" method="post">
      <fieldset>
      <label for="url">'.$this->l('url:').'</label>
  <input type="text" id="url" name="url" value="'.((Configuration::get('facebooklikebox_url') != '') ? Tools::safeOutput(Configuration::get('facebooklikebox_url')) : '').'" />
      <input type="text" id="header" name="header" value="'.((Configuration::get('facebooklikebox_color') != '') ? Tools::safeOutput(Configuration::get('facebooklikebox_color')) : '').'" />
  <input type="text" id="faces" name="faces" value="'.((Configuration::get('facebooklikebox_faces') != '') ? Tools::safeOutput(Configuration::get('facebooklikebox_faces')) : '').'" />
                <input type="text" id="faces" name="faces" value="'.((Configuration::get('facebooklikebox_header') != '') ? Tools::safeOutput(Configuration::get('facebooklikebox_header')) : '').'" />
  <input type="text" id="border" name="border" value="'.((Configuration::get('facebooklikebox_border') != '') ? Tools::safeOutput(Configuration::get('facebooklikebox_border')) : '').'" />
      <div class ="clear"> </div>
  <div class="margin-form">
  <input type="submitModule" value="'.$this->l('update settings').'" class="button" /></center>
  </div>
  </fieldset>
  </form>';
  
  return $html;
}
  
   public function hookDisplayRightColumn()
{
return $this->display(__FILE__,'facebooklikeboxlikebox.tpl');
}
    }  
 
?>
 It don;t know what's is wrong with it.
Link to comment
Share on other sites

×
×
  • Create New...