Getting a error while entering the checkout page, attached below is the screenshot.

enter image description here

Below is the code inside the file.

$mobileHelper = $this->helper('Meetanshi\Mobilelogin\Helper\Data');
if ($helper->isMobileloginEnabled()) {

if (!$mobileHelper->customerLoggedIn()) { ?>
    <div class="check-loginlink">
        <button class="action action-auth-toggle"
                id="checkoutlogin"><?php echo __('Already Have an Account? Click here to login') ?>
<?php } ?>
<script type="text/javascript">
    require(['jquery', 'jquery/ui'], function ($) {
        $(document).ready(function ($) {
            $('#checkoutlogin').on('click', function () {
    .authentication-wrapper {
        display: none;

    .check-loginlink {
        width: 100%;
        text-align: right;

I had tried re-installing the plugin, but its still the same. Please if anyone can help me out that would be great.

  • Can you post the checkoutlogin.phtml content ? – PЯINCƏ Nov 5 at 17:31

Line 3, Replace

 if ($helper->isMobileloginEnabled()) { 


if ($mobileHelper->isMobileloginEnabled()) {
  • 1
    It worked, thanks you very much – Patrik Nov 5 at 17:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.