• ResolvedPlugin Author lchrajkumar

    (@lchrajkumar)


    If anyone is getting “Failed to open file/directory” like error, then you should add up some code in your eShop plugin.

    And here is the code you have to add up in your eShop plugin’s
    “cart-functions.php” file–


    elseif($paymentmethod==’moneybookers’){
    return WP_PLUGIN_DIR.’/moneybookers-mg/ipn.php’;
    return WP_PLUGIN_DIR.’/moneybookers-mg/moneybookers-class.php’;
    return WP_PLUGIN_DIR.’/moneybookers-mg/moneybookers-mg.php’;
    return $path;
    }

    You have to add this code if only needed in your eShop Cart functions PHP page.

    http://wordpress.org/extend/plugins/moneybookers-merchant-gateway-for-eshop/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Argh! Please do not suggest that people modify eShop’s core files.

    Can you clarify why people would get this error in the first place? There may be a better approach to solve this problem than hacking the core plugin’s files.

    Plugin Author lchrajkumar

    (@lchrajkumar)

    Currently eShop is not taking the right path. In eShop “cart-functions.php” file, from line ‘2540’ to ‘2542’ it is having “path importing details with ‘elseif’ statement. That statement will not work for getting path of this plugin when we activate it. So, just we can comment those lines & update the cart-functions.php file with new code which I specified here.

    Can you post the relevant lines here?

    Plugin Author lchrajkumar

    (@lchrajkumar)

    Okay. Relevant lines that needs to be commented in “cart-functions.php” file in eShop plugin to make this plugin work properly are:-

    elseif(preg_match(‘/^([a-zA-Z0-9_\-]+)$/’, $paymentmethod)){
    require_once(dirname(__FILE__) .’/’ . $paymentmethod . ‘.php’);
    }

    These lines of code exist in last of cart-functions.php file.

    Thanks.

    Can you try dumping $paymentmethod to the screen and reporting the value of that variable?

    Plugin Author lchrajkumar

    (@lchrajkumar)

    Nope, we can’t do that because, if we do like that, then all other Merchant Gateway(s) of eShop plugin will not work properly. So, instead of just removing the code lines, we simply keep them in comments or we can simply add up the new code lines which I specified earlier without commenting these lines in “cart-functions.php” file.

    we can’t do that

    Why not? This is purely for current debugging purposes.

    We cannot support or assist with anything that involves hacking the eShop core files. There should be absolutely no need for this.

    Not Active

    Plugin Author lchrajkumar

    (@lchrajkumar)

    @zainirfaniCan I know what is the meaning for the statement “Not Active” in your point of view?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Getting Error in Checkout Page After Activating & Running Plugin’ is closed to new replies.