Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Manual Checkout Setting

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Manual Checkout Setting

Tagged: Manual Checkout

  • This topic has 11 replies, 4 voices, and was last updated 12 years, 6 months ago by ann.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • June 8, 2010 at 3:19 pm #1338
    shahrul
    Member

    hi

    for the manual checkout payment, i would like to direct buyers to my cform page to fill in their details instead of using the eStore_payment_submission.php that provided

    is it possible?

    thanks

    June 9, 2010 at 4:08 am #21532
    amin007
    Participant

    Yes, open the “eStore_payment_submission.php” file and search for the following:

    function submit_to_manual()
    {

    Once you find it add the following immediately after it.

    $target_url = "http://your-domain.com/your-manual-checkout-page-url";
    header('Location: ' . $target_url);
    exit;

    This will redirect the customer to your manual checkout page that you have designed using cForms when they choose manual checkout.

    September 13, 2010 at 7:43 pm #21533
    ann
    Member

    I’m looking to do the same thing, but the code provided above no longer works with the newest version of WP eStore (v4.2.7), WordPress (v3.0.1), or CForms (v11.5). Is there an updated fix for this?

    Thanks!

    September 14, 2010 at 3:55 am #21534
    amin007
    Participant

    This code should still be the same. Do you get any error? Are you using the fancy redirect on checkout option?

    Can you please post a link to the page that shows me the “no longer works behavior”?

    September 23, 2010 at 4:52 pm #21535
    ann
    Member

    Sorry for the late response..

    I am getting the following errors after clicking the “checkout” button in the processing page:

    Warning: Cannot modify header information – headers already sent by (output started at /home/***/public_html/site/wp-content/plugins/wp-cart-for-digital-products/eStore_payment_submission.php:88) in /home/***/public_html/site/wp-content/plugins/wp-cart-for-digital-products/eStore_payment_submission.php on line 445

    line 445 is: header(‘Location: ‘ . $target_url);

    September 23, 2010 at 5:00 pm #21536
    ann
    Member

    You can see the site here: http://rl08bakery.silqsites.com/

    the username and password is ‘test’

    If you like, I can email you the admin password and username.

    September 23, 2010 at 7:54 pm #21537
    wzp
    Moderator

    Could you please confirm the changes Amin gave, in that after you edited the file, the code now looks like…

    function reset_eStore_cart1()

    {

    $target_url = “http://rl08bakery.silqsites.com/your-manual-checkout-page-url”;

    header(‘Location: ‘ . $target_url);

    exit;

    if(isset($_SESSION))

    …where “your-manual-checkout-page-url” is the permalink to your manual checkout page?

    September 23, 2010 at 11:14 pm #21538
    ann
    Member

    The initial instructions didn’t mention editing reset_eStore_cart01, just submit_to_manual. Is there another part to it that I am missing?

    Heres what the submit_to_manual() and reset_eStore_cart01() currently looks like:


    function submit_to_manual()

    {

    $target_url = “http://rl08bakery.silqsites.com/checkout/”;

    header(‘Location: ‘ . $target_url);

    exit;

    $click_text = WP_ESTORE_CLICK_HERE;

    $output .= “<div style=”text-align:center;”>”;

    $output .= ‘<form id=”gateway_form” action=”‘.WP_ESTORE_URL.’/eStore_manual_gateway.php” method=”post”>’;

    $output .= ‘<input type=”hidden” name=”eStore_manaul_gateway” id=”eStore_manaul_gateway” value=”process” />’;

    $output .= “<input type=”submit” value=”$click_text”>”;

    $output .= “</form>”;

    $output .= “</div>”;

    echo $output;

    }


    What is the real fix for this?

    Also, if you would like to see for yourself, I can send you the admin usename and pw if you provide an email address.

    September 24, 2010 at 12:13 am #21539
    amin007
    Participant

    What you did is correct. Here is an alternative that you can try and I am sure this one will work on your server:

    Replace the following code:

    $target_url = "http://rl08bakery.silqsites.com/checkout/";
    header('Location: ' . $target_url);
    exit;

    with the following then let me know how it goes:

    $time = 0;
    $url = "http://rl08bakery.silqsites.com/checkout/";
    echo "<META HTTP-EQUIV="Refresh" CONTENT="$time;URL=$url">";
    exit;

    September 28, 2010 at 9:11 pm #21540
    ann
    Member

    Now I am getting:

    Parse error: syntax error, unexpected T_ECHO in /home/annfcz/public_html/RL08bakery/wp-content/plugins/wp-cart-for-digital-products/eStore_payment_submission.php on line 446

    Line 446 is:

    echo “<META HTTP-EQUIV=”Refresh” CONTENT=”$time;URL=$url”>”;

    On a side note, this is only a test site hosted on a subdomain that I’m trying to get all the text and everything in before pushing it live. Would the first code work just fine if it was on its own domain? I’m only asking because I don’t want to trouble anyone if this is the case.

    September 29, 2010 at 1:44 am #21541
    amin007
    Participant

    There was a semi-colon missing at the end of the following line which I have corrected in my above example:

    $url = “http://rl08bakery.silqsites.com/checkout/&#8221;

    Please copy the code again and give it a try.

    October 1, 2010 at 8:39 pm #21542
    ann
    Member

    This works perfectly, thank you!

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ