checkout button not working
On my cart page, the checkout button goes to the same page when it should go to the checkout page. The website is www.businessideatoolkit.com
I have attached the code in a text file
On my cart page, the checkout button goes to the same page when it should go to the checkout page. The website is www.businessideatoolkit.com
I have attached the code in a text file
the issue is on the checkout page.
if i try to access the checkout page directly:
checkout.php
it directs me back to the cart page.
Please compress the cehckout page into a zip archive and attach the zip file to your reply so I can examine the code.
If you try to access the checkout page directly, it goes back to the cart because of the following script:
<?php
if ($GodIdeaToolkit->IsEmpty()) {
$GodIdeaToolkit->redirStr = "cart.php";
$GodIdeaToolkit->cartAction = "RedirectIfEmpty";
}
?>
I took the script out and it went to the checkout page, but once I input the shipping/billing details, the cart was empty. I'm thinking somehow the cart gets empty before it gets to the checkout page which is why it keeps going back to the cart page.
Add the error reporting code at line 1 of the checkout page:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
on the cart page page, add this code to write the session ID to the page after the opening body tag <body>
<?php echo(session_id()); ?>
I'm thinking that the server is terminating the session prematurely
The cart page now goes to the checkout page after I added the code. Here are the errors that display on the checkout page:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/business/public_html/checkout.php:5) in /home/business/public_html/WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php on line 3
Notice: A session had already been started - ignoring session_start() in /home/business/public_html/WA_eCart/WA_eCart_Definition_PHP.php on line 481
Warning: Cannot modify header information - headers already sent by (output started at /home/business/public_html/checkout.php:5) in /home/business/public_html/checkout.php on line 77
When I get to the confirm.php page the cart is empty
when you added the error reporting code, you left space between the closing php tag ?> and the next opening php tag <?php
any space between opening and closing php tags will cause the headers already sent error,
I removed the space and here are the errors:
Notice: A session had already been started - ignoring session_start() in /home/business/public_html/WA_eCart/WA_eCart_Definition_PHP.php on line 481
Warning: Cannot modify header information - headers already sent by (output started at /home/business/public_html/WA_eCart/WA_eCart_Definition_PHP.php:481) in /home/business/public_html/checkout.php on line 76
what version of eCart are you using?
can you send a copy of the WA_eCart/WA_eCart_Definition_PHP.php page
the version of e-cart that's being used is: 4.1.6
I have uploaded the WA_eCart_Definition_PHP.php file
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.