Skip to Content
Menu
This question has been flagged

Hi,

Need some opinions/suggestions on below mentioned issue.

Oddo Version - 8.0 Community

Module : Mass mailing

Issue faced on : Website

When logged in as website editor:

Subscribe to newsletter field appears and clicking on Subscribe button triggers JS which in turn adds user's email address to mass mailing list.


Without signing in:

Subscribe to newsletter field appears however clicking on Subscribe button doesn't triggers any JS. When checked in debug mode, realised that website_mass_mailing.js is not getting loaded in the browser.


Avatar
Discard
Author Best Answer

Hi, website_mass_mailing.js is already part of front end assets. Below is the code referring to the same.


       <template id="assets_frontend" inherit_id="website.assets_frontend" name="wesbite_mass_mailing assets">

            <xpath expr="." position="inside">

                <script type="text/javascript" src="/mass_mailing/static/src/js/website_mass_mailing.js"></script>

            </xpath>

        </template>

Avatar
Discard
Best Answer

Hi,

      Make sure that website_mass_mailing.js is loaded into web.assets_frontend

Avatar
Discard
Related Posts Replies Views Activity
1
Mar 17
5087
0
Jun 16
1935
4
Sep 15
3650
5
Oct 23
5604
3
Apr 23
8686