support

Author Topic: papal as payment when customer is checking out as logged in  (Read 4750 times)

Offline AERO3ds

  • Newbie
  • *
  • Posts: 12
  • Karma: +2/-0
    • View Profile
papal as payment when customer is checking out as logged in
« on: September 05, 2021, 03:46:42 PM »
How to enable PayPal as payment when customer is checking out as logged in.



Thanks,
Oleg

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2064
  • Karma: +326/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: papal as payment when customer is checking out as logged in
« Reply #1 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
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline AERO3ds

  • Newbie
  • *
  • Posts: 12
  • Karma: +2/-0
    • View Profile
Re: papal as payment when customer is checking out as logged in
« Reply #2 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

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5964
  • Karma: +284/-2
    • View Profile
Re: papal as payment when customer is checking out as logged in
« Reply #3 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

Offline AERO3ds

  • Newbie
  • *
  • Posts: 12
  • Karma: +2/-0
    • View Profile
Re: papal as payment when customer is checking out as logged in
« Reply #4 on: September 07, 2021, 10:16:17 PM »
I had a $100 max limit, deleted the limited and that fixed the issue. Thanks

 

Powered by SMFPacks Social Login Mod