Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password?

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum

Manual Checkout Setting

(12 posts) (4 voices)
  • Started 1 year ago by shahrul
  • Latest reply from ann
  • Related Topics:
    1. Populate Manual Checkout From from eMember data
    2. Manual Checkout / Status: Unpaid / don't send registration-link
    3. Manual Checkout And Affiliate Commissions
    4. Any way to have the manual checkout add tax?
    5. Manual Checkout not Creating a new eMember account

Tags:

  • Manual Checkout
12Next »
  1. 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

    Posted 1 year ago #
  2. amin007
    Key Master

    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.

    Posted 1 year ago #
  3. 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!

    Posted 1 year ago #
  4. amin007
    Key Master

    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"?

    Posted 1 year ago #
  5. 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);

    Posted 1 year ago #
  6. 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.

    Posted 1 year ago #
  7. 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['eStore_cart']))

    ...where "your-manual-checkout-page-url" is the permalink to your manual checkout page?

    Posted 1 year ago #
  8. 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.

    Posted 1 year ago #
  9. amin007
    Key Master

    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;
    Posted 1 year ago #
  10. 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.

    Posted 1 year ago #

RSS feed for this topic

12Next »

Reply »

You must log in to post.

Tips and Tricks HQ Forum is proudly powered by bbPress

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin