Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author myCred

    (@designbymerovingi)

    Hi james

    Once myCRED is installed and you have activated the Gateway Add-on, go to the WooCommerce Settings page. Once there, you should see the “Payment Gateways” tab which holds all your payment gateways. There you should see “Pay with Points”. To edit your myCRED Payment settings simply click on “MyCRED” under the tabs right next to “Payment Gateways” in bold.

    Thread Starter jamestang995

    (@jamestang995)

    yes, i tried that but no “Pay with Points” under payment gateways tab
    i check the gateways directory under woocommerce \wordpress\wp-content\plugins\woocommerce\classes\gateways and cannot find mycred gateway
    Is there problem of installing the gateway to woocommerce??I test this on a Windows7 machine

    Plugin Author myCred

    (@designbymerovingi)

    The myCRED Gateway Add-on is not located in WooCommerce. It is located in wp-content/plugins/mycred/addons/gateway/carts/.

    What color does the Gateway add-on have on the “myCRED” > “Add-ons” page?

    Thread Starter jamestang995

    (@jamestang995)

    it is in green color

    Plugin Author myCred

    (@designbymerovingi)

    Good. Green is a good color. What other payment gateways are listed under WooCommerce?

    Thread Starter jamestang995

    (@jamestang995)

    let me show u the screen cap of the gateway page

    https://dl.dropboxusercontent.com/u/18874913/wp.png

    Plugin Author myCred

    (@designbymerovingi)

    Thank you, screenshots always help. Very strange. I see you are using localhost which I am testing it on now as well and cant seem to repliacate this issue.

    Could you de-activate the gateway addon, then mycred then re-activate mycred and then the gateway to see if that help?

    Also, if you enable WP_DEBUG in your wp-config.php file, do you get any error messages?

    Thread Starter jamestang995

    (@jamestang995)

    Warning: include_once(C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\wordpress/C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\wordpress\wp-content\plugins\mycred/addons/gateway/myCRED-addon-gateway.php): failed to open stream: Invalid argument in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\wordpress\wp-content\plugins\mycred\modules\mycred-module-addons.php on line 99 Warning: include_once(): Failed opening ‘C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\wordpress/C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\wordpress\wp-content\plugins\mycred/addons/gateway/myCRED-addon-gateway.php’ for inclusion (include_path=’.;C:\php\pear’) in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\wordpress\wp-content\plugins\mycred\modules\mycred-module-addons.php on line 99

    i got this error that PEAR is not installed.
    i will install it and test again
    THX

    Plugin Author myCred

    (@designbymerovingi)

    Please let me know how it goes. Is Gateway the only add-on active?

    Thread Starter jamestang995

    (@jamestang995)

    yes, when i deactive Gateway plugin, the warning exists

    when i look into your code, in file \wp-content\plugins\mycred\modules\mycred-module-addons.php

    line 225

    return ABSPATH . $installed[$key][‘folder’] . $file;

    will return a strange path like ‘C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\wordpress/C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\wordpress\wp-content\plugins\mycred/addons/gateway/myCRED-addon-gateway.php
    with a duplicated wordpress location
    I tried to remove ‘ABSPATH .’ and it works! ??

    seems the path generate functions have something wrong in windows 7
    pls fix it ??

    Plugin Author myCred

    (@designbymerovingi)

    Hey.

    Really appreciate you taking the time to report this. I will run some tests on my test servers and see if I can setup a Windows 7 install (using 8 and more of a Mac guy).

    Plugin Author myCred

    (@designbymerovingi)

    Could you check if the following version of get_path() would work for you?

    public function get_path( $key ) {
    	$installed = $this->installed;
    	if ( array_key_exists( $key, $installed ) ) {
    		$file = $installed[$key]['file'];
    		$folder = str_replace( ABSPATH, '', $installed[$key]['folder'] );
    		return ABSPATH . $folder . $file;
    	}
    	return '';
    }

    It should remove a duplicate path.

    Thread Starter jamestang995

    (@jamestang995)

    Coz your plugin is what I need to do
    It is better to fix the bugs than write the whole plugin by myself. ??

    BTW, the code cannot fix the problem

    I print the path

    ABSPATH
    C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\wordpress/

    $installed[$key][‘folder’]
    C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\wordpress\wp-content\plugins\mycred/addons/gateway/

    And I dont know why the ABSPATH has a slash, HAHA
    I am not familiar with PHP, hope this could help u

    Plugin Author myCred

    (@designbymerovingi)

    Hmm.

    I think the issue with the file-path string search and replace operation I am using which will fail since windows writes the ABSPATH differently. When the list of installed add-ons are constructed the ABSPATH are supposed to be taken out of the path but I suspect this never happens, causing the duble address when the file gets included (hence why it works for you if you remove the ABSPATH.

    I will need to come up with a better logic to resolve this and install Windows 7. The “good” news is that this is a Windows 7 specific issue.

    Thread Starter jamestang995

    (@jamestang995)

    I continue to test without the ABSPATH in get_path function.

    I am enabled myCred payment gateway in woocommerce
    Then I buy something to checkout and there is no myCred for me to choose

    my WP_DEBUG is still turns on but there are no errors

    Idk it is related to windows 7 or not.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘as woocommerce gateway’ is closed to new replies.