WOW!!! IT worked !!!! Thank you very much!!
For people who don't understand:
go to includes/modules/pages/checkout_payment/header_php.php
then you will find some line:
Code:
// Load the selected shipping module(needed to calculate tax correctly)
require(DIR_WS_CLASSES . 'shipping.php');
$shipping_modules = new shipping($_SESSION['shipping']);
require(DIR_WS_CLASSES . 'order_total.php');
$order_total_modules = new order_total;
$order_total_modules->collect_posts();
$order_total_modules->pre_confirmation_check();
put this code after the above code:
Code:
echo $_SESSION['shipping']['id'];
and go to your page make a checkout and you can see the ID of the shipping method at the top of your page, after you saved the ids you can delete this
then go to paypal.php and edit the code to:
Code:
if (PROJECT_VERSION_MAJOR != '1' && substr(PROJECT_VERSION_MINOR, 0, 3) != '3.8') $this->enabled = false;
//This is where you disable paypal
if (IS_ADMIN_FLAG === false && $_SESSION['shipping']['id'] == "HERE_COMES_THE_ID_LIKE: FLAT_FLAT" || $_SESSION['shipping']['id'] == "storepickup_storepickup" ) {
$this->enabled = false;
}
And it works! THanks!:) <3