cancel
Showing results for 
Search instead for 
Did you mean: 

checkout url in authentication popup

SOLVED

checkout url in authentication popup

Hi,

 

I wanted to add checkout URL in my authentication popup.

Is there any way to do this?

 

popup.png

1 ACCEPTED SOLUTION

Accepted Solutions

Re: checkout url in authentication popup

this popup is coming from HTML file so cannot write the php code in this,

 

Though i found the solution is to make a function in AuthenticationPopup.php in magento_customer module block file and than create a variable and use that in js file

View solution in original post

2 REPLIES 2

Re: checkout url in authentication popup

Hi @Maddy123456789,

 

Can you try with?

 

<?php echo $block->getUrl('checkout'); ?>

You can try that code into your phtml file.

Re: checkout url in authentication popup

this popup is coming from HTML file so cannot write the php code in this,

 

Though i found the solution is to make a function in AuthenticationPopup.php in magento_customer module block file and than create a variable and use that in js file