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 14 years, 1 month ago by ann.
-
AuthorPosts
-
June 8, 2010 at 3:19 pm #1338shahrulMember
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 #21532amin007ParticipantYes, 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 #21533annMemberI’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 #21534amin007ParticipantThis 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 #21535annMemberSorry 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 #21536annMemberYou 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 #21537wzpModeratorCould 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 #21538annMemberThe 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 #21539amin007ParticipantWhat 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 #21540annMemberNow 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 #21541amin007ParticipantThere 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/”
Please copy the code again and give it a try.
October 1, 2010 at 8:39 pm #21542annMemberThis works perfectly, thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.