close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

checkout button not working

Thread began 2/01/2011 11:17 pm by elove341397 | Last modified 2/09/2011 1:06 pm by Jason Byrnes | 1817 views | 14 replies |

elove341397

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

Attached Files
bitk-cart_php.txt
Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

elove341397

checkout page

I zipped the checkout page

Attached Files
checkout.zip
Sign in to reply to this post

elove341397

checkout page

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.

Sign in to reply to this post

Jason ByrnesWebAssist

Add the error reporting code at line 1 of the checkout page:

php:
<?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:
<?php echo(session_id()); ?>



I'm thinking that the server is terminating the session prematurely

Sign in to reply to this post

elove341397

Updated the files

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

Sign in to reply to this post

Jason ByrnesWebAssist

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,

Sign in to reply to this post

elove341397

removed space

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

Sign in to reply to this post

Jason ByrnesWebAssist

what version of eCart are you using?


can you send a copy of the WA_eCart/WA_eCart_Definition_PHP.php page

Sign in to reply to this post

elove341397

ecart version

the version of e-cart that's being used is: 4.1.6

I have uploaded the WA_eCart_Definition_PHP.php file

Attached Files
WA_eCart_Definition_PHP.zip
Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...