cancel
Showing results for 
Search instead for 
Did you mean: 

add cart problem while changing http into https

add cart problem while changing http into https

Dear,

 

I find new issues.When changing http into https, unable to click on "add cart" button.

 

When click on "add cart"  button it shows "please wait"  dialog box. i think https block the ajax script

 

What am do next.Please kindly help me..

5 REPLIES 5

Re: add cart problem while changing http into https

Are you using an old template on a newly upgraded Magento site?

Magento Moderator since 2009
Keep Calm and Clear Cache!

Re: add cart problem while changing http into https

no..i'm using sm_papa theme and my magento version is 1.8.1

 

Problem is ajax script. when click on button it get http request instead of https request

Re: add cart problem while changing http into https

Dear frds,

 

I found the solution.We follow the below steps

Im installed sm papa theme,

step 1 : Go to app/design/frontend/default/(your theme)/template/sm/cartpro/top.phtml 

 

step 2: Inside top.phtml file, Under the ajaxUpdate(args,type) function, insert the below code into if condition

 

if (window.location.protocol == "http:") {
url=args;
url = url.replace(/http/i, 'https');
}  

 

step 3: Again insert this code into below else condition

 

if (window.location.protocol == "http:") {
url=args;
url = url.replace(/http/i, 'https');
}

then replace 

$('product_addtocart_form').request({ //form-example id form  into  new Ajax.Request(url,{

 

Thanks & Regards,

Premalatha.S

 

Re: add cart problem while changing http into https

I used same method, but i din`t get solution. remains same problem. Please help me. how to solve this problem

Re: add cart problem while changing http into https

have the the same problem , any help