Post by kate_brightman » Fri Aug 12, 2016 2:02 pm

Hi,
I found an issue about the newsletter for oc2.2,by default,newsletter will be working under https because it is categorized in Account.So,when i use ssl for website,system will automatically call https for newsletter.Now here are my issue if some guys can help,IM novice,that is
If one subscriber input their email address in a subscribe box,when press the OK button,then the button will call the subscribe module to handle this request,if successfully,then will popup a message alert to let subscriber know the status.
But chrome analysis popup a message saying that the subscribe module can not be access for https.

here below is the OK button code
<form id="formNewLestter" method="post" action="https://www.abc.com/index.php?route=mod ... /subscribe">
<input type="text" class="inputNew" onblur="javascript:if(this.value=='')this.value='Your email address';" onfocus="javascript:if(this.value=='Your email address')this.value='';" value="Your email address" size="18" name="email">
<input type="submit" name="submitNewsletter" class="button_mini btn btn-theme-primary" value="Ok">
<input type="hidden" value="1" name="action">
<div class="valid"></div>
So,the ok button looks malfunction and looks dead,however,the email address has been registered into newsletter backend,the issue that the subscriber not knowing if he has successfully registered or if the email adress has been reigstered already.

Chrome analysis says that
xml HttpRequest can not load https://www.abc.com/index.php?route=mod ... bscribe.No 'Access-Control-Allow-Origin' header is (index):1 present on the requested resource.Origin 'http://www.abc.com' is therefore not access.

So,i think the subscribe ok button not response and looks dead is because it can not call out and load the subscribe module,because the subscribe module is shielded by https,we tested,if replace the https with http in the action="https://www.abc.com/index.php?route=mod ... ibe",there will be a message alert popout to let subscriber know succussfully registered.

Someone can help me,PLEASE!

Attachments

nesletter-issue-button.png

we want message alert after subscribe succesfully - nesletter-issue-button.png (6.2 KiB) Viewed 1354 times


New member

Posts

Joined
Mon Jul 25, 2016 5:52 pm

Post by kate_brightman » Fri Aug 12, 2016 10:09 pm

when i registered into an account,and input a new email address,then the message alert pops out,that's what i wanted,but it make no sense not showing the alert to a new comer,that's why i said the newsletter works only under https which shield the subscribe module work,how can i replace the https with http in the code? The subscribe module accept call out by http,but not by https,but in the code,i can see it was called by https,why?

New member

Posts

Joined
Mon Jul 25, 2016 5:52 pm

Post by kate_brightman » Sat Aug 13, 2016 1:36 pm

Actually,subscribe button call the action file path is preset https,so the newsletter works well if visitor in a https page like account or checkout,but homepage is http by default,so it conflicts each other by http and https,so thats why its not working to popup the message alert.
Last edited by kate_brightman on Sat Aug 13, 2016 1:40 pm, edited 1 time in total.

New member

Posts

Joined
Mon Jul 25, 2016 5:52 pm

Post by kate_brightman » Sat Aug 13, 2016 1:39 pm

Be more clear,to replace below form the https in the action file with http

<form id="formNewLestter" method="post" action="https://www.abc.com/index.php?route=mod ... /subscribe">

How?

New member

Posts

Joined
Mon Jul 25, 2016 5:52 pm

Post by chrisnasah » Wed Feb 15, 2017 10:55 pm

hi

how did you solve this, I got the same issue.

main page is http but newsletter goes to https and no post alerts coming up unless main page is on https too.

any ideas?

Newbie

Posts

Joined
Sat Feb 11, 2017 11:32 pm

Post by chrisnasah » Fri Feb 17, 2017 4:12 pm

anyone any ideas?

Newbie

Posts

Joined
Sat Feb 11, 2017 11:32 pm
Who is online

Users browsing this forum: No registered users and 192 guests