isdma Posted April 12, 2017 Share Posted April 12, 2017 I'm trying to implement Onesignal push notifications, I'm told to enter the following code on my site:<Head> <Link rel = "manifest" href = "/ manifest.json"> <Script src = "https://cdn.onesignal.com/sdks/OneSignalSDK.js" async> </ script> <Script> Var OneSignal = window.OneSignal || []; OneSignal.push (["init", { AppId: "YOUR_APP_ID", AutoRegister: false, NotifyButton: { Enable: true / * Set to false to hide * / } }]); </ Script></ Head>Where should I put this code?If anyone can help me, thanks a lot. Link to comment Share on other sites More sharing options...
Azelab Posted May 23, 2017 Share Posted May 23, 2017 Hi isdma, we have full integrated module which will be published on the Prestashop market soon. Here is a demo https://presta17.azelab.com/I will post the link to purchase as soon as it is published. Link to comment Share on other sites More sharing options...
Azelab Posted June 6, 2017 Share Posted June 6, 2017 Hi again! As I promissed we've released OneSingal web browser push notification module today, and it is available on the official Prestashop marketplace: https://addons.prestashop.com/en/emails-notifications/27022-onesignal-web-browser-push-notifications.htmlIt is full featured and flexible and easy to configure. Link to comment Share on other sites More sharing options...
viniciuslbb Posted August 24, 2017 Share Posted August 24, 2017 (edited) I'm trying to implement Onesignal push notifications, I'm told to enter the following code on my site: <Head> <Link rel = "manifest" href = "/ manifest.json"> <Script src = "https://cdn.onesignal.com/sdks/OneSignalSDK.js" async> </ script> <Script> Var OneSignal = window.OneSignal || []; OneSignal.push (["init", { AppId: "YOUR_APP_ID", AutoRegister: false, NotifyButton: { Enable: true / * Set to false to hide * / } }]); </ Script> </ Head> Where should I put this code? If anyone can help me, thanks a lot. Does anyone know where to put the code? Edited August 24, 2017 by viniciuslbb (see edit history) Link to comment Share on other sites More sharing options...
Scully Posted August 24, 2017 Share Posted August 24, 2017 The file header.tpl is your choise if you want to have it quick and dirty. Create an own module if you want to have it clean and customizable. Link to comment Share on other sites More sharing options...
isdma Posted August 25, 2017 Author Share Posted August 25, 2017 Hi, Go to header.tpl Put the code even before </Head> like this: {literal} <Link rel = "manifest" href = "/ manifest.json"> <Script src = "https://cdn.onesigna...OneSignalSDK.js" async> </ script> <Script> Var OneSignal = window.OneSignal || []; OneSignal.push (["init", { AppId: "YOUR_APP_ID", AutoRegister: false, NotifyButton: { Enable: true / * Set to false to hide * / } }]); </ Script> {/literal} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now