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
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
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.
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!
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"?
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);
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.
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?
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.
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;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.
You must log in to post.