How to keep using my newsletter block module?

The module gives you the ability to use the PrestaShop native form for your newsletter subcriptions, or to use a third module of block newsletter type.

To do that, first check you already have selected or created a users list in the "General settings -> Users list choice" tab and that you have synchronized it through the "Users list sync & newsletter forms -> Users list synching" tab of the module.

Technical configuration of html elements of newsletter block module :

Then go to the "Users list sync & newsletter forms -> Newsletter sign-up forms" tab. In the "Newsletter module" sub-tab select YES for the option "Do you use a newsletter block module?":

 

 

Then indicate in the following option, if it is the PrestaShop native newsletter block module, or another module :

 

 

You then have a list of options that will allow you to configure this signup form, if necessary. Indeed, it is possible that your technical contact has made changes in your theme and that some elements must be indicated so that the module makes the connection between your newsletter block module and MailChimp correctly. The fields are filled by default with the elements corresponding to the PrestaShop native newsletter module.

 

 

Newsletter form submit

 

 

This is the "name" attribute value of the HTML tag of "submit" type. This value will be used by the module to detect any new form submit.

 

Let's take the example of PrestaShop native newsletter block module.

If you open the ps_emailsubscription.tpl template, that is in the folder:

modules->ps_emailsubscription->views->templates->hook

of your shop installation folder, you will find this piece of code:

 

 

You can see that for the input of type "submit", the value of the "name" attribute is "submitNewsletter". For a third module, you just have to adapt by copying the corresponding value.

 

 

Newsletter form e-mail field

 

 

This is the "name" attribute value of the HTML tag of "text" type. This value will be used by the module to save the e-mail address filled in the form. 

 

Let's take the example of PrestaShop native newsletter block module.

If you open the ps_emailsubscription.tpl template, that is in the folder:

modules->ps_emailsubscription->views->templates->hook

of your shop installation folder, you will find this piece of code:

 

 

You can see that for the input of type "text", the value of the "name" attribute is "email". For a third module, you just have to adapt by copying the corresponding value.

 

 

Submit via Ajax request

 

 

Some newsletter block modules use an AJAX request to send the form information, which means that the current page is not reloaded after sending the form. It is therefore necessary to specify it here so that our module can adapt and detect this new sending and record the information.

Select "YES" if your newsletter module uses an AJAX request.

 

 

Identification of newsletter block

 

 

This is the HTML element that is used to identify the newsletter block in your site's code. Be careful, this time you have to look in the code of your theme. Moreover, here you must respect the JavaScript Jquery syntax: for a class name you must prefix the html element by a point ".", and for an id you must prefix it by a hash "#".

 

Let's take the example of PrestaShop native newsletter block module.

If you open the ps_emailsubscription.tpl template, that is in the folder:

themes->classic->modules->ps_emailsubscription->views->templates->hook

of your shop installation folder, you will find this piece of code:

 

 

You can see that the newsletter block is identified by the class "blocknewsletter". This is a class, therefore the block_newsletter element is to be written with a point as prefix: .block_newsletter

Other FAQs in this category