Jump to content

[SOLVED] This module can not be transplanted to this hook.


jhd

Recommended Posts

Hello!,

 

I want to add the Newsletter module in DisplayFooter(Footer) but I get this error:

 

This module can not be transplanted to this hook.

 

 

Module: Newsletter

 

Insert Hook in: DisplayFooter(Footer)

 

 

Do I have to add some code to a module?

 

Best regards

 

 

Link to comment
Share on other sites

prestashop by default has got 2 newsletter modules

- first one is related to stats section (and appears only there)

- second one to display block on front office of your website

 

im affraid that you're trying to transplant first one, which is not compatibile with hook you mentioned - because this module creates only statistics feature in back office

 

which one you're transplanting?

ZuHc2LR.png

  • Like 1
Link to comment
Share on other sites

Cache is clean. Also Cache is disabled.

 

If I change the css code i can see the changes in browser.

 


/* Block newsletter */
#columns #newsletter_block_left .form-group {
  margin-bottom: 0; }
  #columns #newsletter_block_left .form-group .form-control {
    max-width: 222px;
    display: inline-block;
    margin-right: 6px; }
    @media (min-width: 768px) and (max-width: 1199px) {
      #columns #newsletter_block_left .form-group .form-control {
        margin-bottom: 10px;
        margin-right: 0; } }
#columns #newsletter_block_left .success_inline, #columns #newsletter_block_left .warning_inline {
  text-align: left;
  padding: 1px 0 0 0;
  margin-bottom: -19px; }
#columns #newsletter_block_left .success_inline {
  color: #418B19; }
#columns #newsletter_block_left .warning_inline {
  color: #f13340; }


/* Block newsletter footer */
#footer #newsletter_block_left {
  overflow: hidden;
  width: 50%;
  float: left;
  padding: 13px 15px 7px 15px;
  margin-bottom: 0; }
  @media (max-width: 767px) {
    #footer #newsletter_block_left {
      width: 100%; } }
  #footer #newsletter_block_left h4 {
    background: none;
    float: left;
    padding: 7px 16px 5px 0;
    text-transform: none;
    font-size: 21px;
    line-height: 25px;
    border: none; }
    #footer #newsletter_block_left h4:after {
      display: none; }
  #footer #newsletter_block_left .block_content {
    overflow: hidden; }
  #footer #newsletter_block_left .form-group {
    margin-bottom: 0; }
    #footer #newsletter_block_left .form-group .form-control {
      height: 45px;
      line-height: 30px;
      max-width: 267px;
      background: #3c3c3c;
      border-color: #515151;
      color: white;
      padding: 5px 43px 5px 12px;
      display: inline-block;
      float: left; }
  #footer #newsletter_block_left .form-group .form-control:focus {
        -webkit-box-shadow: black 0px 0px 0px;
        -moz-box-shadow: black 0px 0px 0px;
        box-shadow: black 0px 0px 0px; }
    #footer #newsletter_block_left .form-group .button-small {
      ;
      border: none;
      background: none;
      text-align: center;
      color: #908f8f;
      padding: 8px; }
      #footer #newsletter_block_left .form-group .button-small:before {
        content: "\f138";
        font-family: "FontAwesome";
        font-size: 28px;
        line-height: 28px; }
      #footer #newsletter_block_left .form-group .button-small:hover {
        color: white !important; }
      #footer #newsletter_block_left .form-group .button-small span {
        display: none; }
 #footer #newsletter_block_left .warning_inline {
    display: block;
    color: #f13340;
    font-size: 13px;
    line-height: 26px;
    clear: both; }
    @media (min-width: 1200px) {
      #footer #newsletter_block_left .warning_inline {
        display: inline-block;
        position: relative;
        top: -35px;
        margin-bottom: -35px;
        left: 15px;
        clear: none; } }
  #footer #newsletter_block_left .newsletter-input {
    max-width: 300px !important; }
Edited by jhd (see edit history)
Link to comment
Share on other sites

If I do this:

root@server:/var/www/domain.com/themes/default-bootstrap/css/modules/homeslider# mv homeslider.css homeslider.css2

Then Home Slider not work. Ok, Well.

 

 

But If I do this:

 

root@server:/var/www/domain.com/themes/default-bootstrap/css/modules/blocknewsletter# mv blocknewsletter.css blocknewsletter.css2
 
Nothing happens.
 
The style for the blockNewsletter, not being applied.
Edited by jhd (see edit history)
Link to comment
Share on other sites

Thanks fot the reply.

 

Yes, is default theme, but blocknewsletter not show well.

 

PD:  SFTP is FTP, Secure FTP, is possible to use with Filezilla or other FTP client that support SFTP. But I do not think that will solve the problem. If I knew why blocknewsletter style is not applied, could solve the problem with any protocol (ssh, sftp, ftp).

Edited by jhd (see edit history)
Link to comment
Share on other sites

Hello!

 

Solved!

 

Preferences --> Themes --> Add Theme --> Create a new template --> Fill the fields -- Select 'Use this theme as model' (default-bootstrap) --> Save.

 

 

Thanks very much for the helps!

 

Best regards

Link to comment
Share on other sites

×
×
  • Create New...