0

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

enter image description here

Below is the code inside the file.

<?php
$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') ?>
        </button>
    </div>
<?php } ?>
<script type="text/javascript">
    require(['jquery', 'jquery/ui'], function ($) {
        $(document).ready(function ($) {
            $('.authentication-wrapper').hide();
            $('#checkoutlogin').on('click', function () {
                $('.mobile-sendotp-popup').modal('openModal');
            });
        });
    });
</script>
<style>
    .authentication-wrapper {
        display: none;
    }

    .check-loginlink {
        width: 100%;
        text-align: right;
    }
</style>

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
2

Line 3, Replace

 if ($helper->isMobileloginEnabled()) { 

with

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.