Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter khawars

    (@khawars)

    Hi Matthew, I gone to the plugin’s support page and I found many suers asking the same thing I asked here, and in one of the post some user have replied that they fixed it and below was what he posted:

    Hy,

    Sorry for my poor english. I have solved that problem changing a piece of code in file “woocommerce-custom-payment-gateways.php” on line 121. I have deleted this lines of codes:

    /********** DELETE ************/
    return array(
    ‘result’ => ‘success’,
    ‘redirect’ => add_query_arg(‘key’, $order->order_key, add_query_arg(‘order’, $order_id, get_permalink(woocommerce_get_page_id(‘thanks’))))
    /***********DELETE END************/

    and i have included in the same place this code:

    /*********** INSERT ************/
    // Empty the Cart
    WC()->cart->empty_cart();

    // Get redirect
    $return_url = $order->get_checkout_order_received_url();

    // Redirect to success/confirmation/payment page
    if ( is_ajax() ) {
    echo ‘<!–WC_START–>’ . json_encode(
    array(
    ‘result’ => ‘success’,
    ‘redirect’ => apply_filters( ‘woocommerce_checkout_no_payment_needed_redirect’, $return_url, $order )
    )
    ) . ‘<!–WC_END–>’;
    exit;
    } else {
    wp_safe_redirect(
    apply_filters( ‘woocommerce_checkout_no_payment_needed_redirect’, $return_url, $order )
    );
    exit;
    }
    // Redirect to success/confirmation/payment page
    if ( $result[‘result’] == ‘success’ ) {

    $result = apply_filters( ‘woocommerce_payment_successful_result’, $result, $order_id );

    if ( is_ajax() ) {
    echo ‘<!–WC_START–>’ . json_encode( $result ) . ‘<!–WC_END–>’;
    exit;
    } else {
    wp_redirect( $result[‘redirect’] );
    exit;
    }

    }
    /*********** INSERT END*************/

    Hope you help.
    By

    So I need a little help here that, where can I find woocommerce-custom-payment-gateways.php? Please help me to find it.

    Thread Starter khawars

    (@khawars)

    Thank you Matthew, I am gonna ask there, and if resolved I will come here and reply ?? again thanks a lot

    Thread Starter khawars

    (@khawars)

    I am using “WooCommerce Custom Payment Gateways” plugin, below is its link

    WooCommerce Custom Payment Gateways

    Thread Starter khawars

    (@khawars)

    Edit: I tried to change the Home Top Feature Heading, Home Top Feature Link URL, Home Top Feature Description, Home Page Heading, First Feature heading etc. After saving when I refreshed my site, nothings changed ??

    Forum: Fixing WordPress
    In reply to: 404 Error WP-Admin
    Thread Starter khawars

    (@khawars)

    Sorry for late reply, I have been out of city for some cultural annual funeral ceremony of some respected ancestors.

    I searched up at Google that how can I change my name-servers on a domain bought from Google Apps. and I got a same question asked by someone in Google Product Forms I found a little help from the answer of user LMcKin51. I gone through that process, while I was doing it, I was at my E-Mail opened too of HostGator in which they had provided me password and username of my cPanel, where I saw they had written nameservers for my domains too. So I just copied that and Logged in Google Admin Console, clicked on “More..” at the bottom, then clicked at Domains, then I clicked on change the DNS (something written like that). And they gave me a link to sign in and also they provided the username and pass which were required to sign in that link. So I did, and there was the DNS editing tool for my domain, I just pasted those nameservers in the name servers list (they were only two, so I place them in first two lines respectively). And they told me to wait for 24-48 hours for the propagation of domain, after it my domain will be propagated and users would be able to open it.

    Thanks for everybody who helped me, because if you all did not help then I would not even get in my mind to search for putting nameservers in domain bought from Google. Special Thanks to Evan and Jan. ??

    Forum: Fixing WordPress
    In reply to: 404 Error WP-Admin
    Thread Starter khawars

    (@khawars)

    Edit: I get this 404 error even when I just type https://www.pro-passions.com in the address bar of the browser.

    Forum: Fixing WordPress
    In reply to: 404 Error WP-Admin
    Thread Starter khawars

    (@khawars)

    @evan, I dont know how to connect via FTP, but I am sure that it was installed successfully, because it brought Congratulations Bar as the header of my browser, and also my details of login e.g. ‘username’ and ‘pass’ were written on that bar. And I will try your given solution of changing nameservers and will come back and post if it worked or not.
    Thanks ??

    Forum: Fixing WordPress
    In reply to: 404 Error WP-Admin
    Thread Starter khawars

    (@khawars)

    I bought domain 3 days ago and have been getting this error since two days, actually I have checked the cpanel the day before yesterday, because I bought hosting two days ago. I have already added my domain to hosting which I got from hostgator, after which I was able to install wordpress on it. Secondly I do not know how to forward the domain to the new domain, I am new to these stuffs.

Viewing 8 replies - 1 through 8 (of 8 total)