AbanteCart Community

eCommerce construction => Installation and Configuration => Topic started by: AERO3ds on September 05, 2021, 03:46:42 PM

Title: papal as payment when customer is checking out as logged in
Post by: AERO3ds on September 05, 2021, 03:46:42 PM
How to enable PayPal as payment when customer is checking out as logged in.



Thanks,
Oleg
Title: Re: papal as payment when customer is checking out as logged in
Post by: abolabo on September 06, 2021, 02:36:08 AM
you can modify storefront model file of any payment and add
Code: [Select]
        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
Title: Re: papal as payment when customer is checking out as logged in
Post by: 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.

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
Title: Re: papal as payment when customer is checking out as logged in
Post by: Basara on September 06, 2021, 09:44:12 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
Title: Re: papal as payment when customer is checking out as logged in
Post by: AERO3ds on September 07, 2021, 10:16:17 PM
I had a $100 max limit, deleted the limited and that fixed the issue. Thanks