Jump to content

No payment modules have been installed with PayPal and USD


ItalianBoutiqueShoes

Recommended Posts

probably the easiest way is to just update the payment modules 'hookpayment' function, and add a logic check against the selected carrier.

 

For example...

"if carrier id is 1, 2 or 5 then disable paypal module"

 

if you can document your requirements, i can probably write the code that you can use.  I just need to know what carrier ids should not be allowed to use Paypal.

Link to comment
Share on other sites

You will need to edit the "Cash on Delivery with Fee" module, locate the hookPayment function and add the following code to beginning of that function

    if ($this->context->cart->id_carrier != 20)
        return false;

so it would look something like this...

public function hookPayment($params)
{
    if ($this->context->cart->id_carrier != 20)
        return false;

    //leave the existing code alone below
}
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...