papal as payment when customer is checking out as logged in

Started by AERO3ds, September 05, 2021, 03:46:42 PM

Previous topic - Next topic

AERO3ds

How to enable PayPal as payment when customer is checking out as logged in.



Thanks,
Oleg

abolabo

you can modify storefront model file of any payment and add

        if(!$this->customer->isLogged()){
            return [];
        }

at the beginning of method getMethod

In your case public_html/extensions/default_pp_standart/storefront/model/extension/default_pp_standart.php:31
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

AERO3ds

After doing more bug testing I found that papal as payment method is available as long as the sub total is below $100. After $100 total free shipping goes into effect and pay-pal as payment option is disappears.

In Free shipping extension all pay-pal extensions are selected as payment option.

At the payment.php could you help where to put this code if that's still the case.

if (!$this->customer->isLogged()) {
            $this->session->data['redirect'] = $this->html->getSecureURL($checkout_rt);
            redirect($this->html->getSecureURL($login_rt));
           
        }


Any help appreciated,
Oleg

Basara

Quote from: AERO3ds on September 06, 2021, 09:09:26 AM
After doing more bug testing I found that papal as payment method is available as long as the sub total is below $100. After $100 total free shipping goes into effect and pay-pal as payment option is disappears.

Check your shipping methods and remove any payment limitations, check the PayPal extension setting and remove the totals limit.
https://abantecart.atlassian.net/wiki/spaces/A2UM/pages/491913989/No+payment+at+checkout

AERO3ds

I had a $100 max limit, deleted the limited and that fixed the issue. Thanks

Forum Rules Code of conduct
AbanteCart.com 2010 -