close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

added new "add to cart" buttons and put in test mode, checkout now failing

Thread began 3/22/2013 9:50 am by Brendan | Last modified 3/22/2013 12:12 pm by Jason Byrnes | 1939 views | 7 replies |

Brendan

added new "add to cart" buttons and put in test mode, checkout now failing

I am working with a checkout page that was working great as recently as a month ago. I added 2 new add to cart items, which are adding to the cart correctly, however, I put Authorize.net into test mode, and changed the code on the confirm page to "x_test_request - TRUE".

When I go through checkout, complete all of the required fields, then click checkout, the form clears, and the transaction is not logged to the orders or order details tables in my DB.

My checkout page is checkout.php

Sign in to reply to this post

Jason ByrnesWebAssist

could be a php error occurring, add the following code at line 1 to turn on error reporting:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>




did you add server validation to the confirm page? it could be that the form is failing validation. if you are using server validation, you should include validation error messages on the checkout page.

Sign in to reply to this post

Brendan

Here is what is showing after I added the error reporting code to the checkout page
<br /><b>Notice</b>: Undefined index: eCartCheckoutForm_cc_number in <b>/home/rssfund/public_html/checkout.php</b> on line <b>94</b><br />

I do have validations, but also have a validation show if with *** to identify what didn't pass validation...no validation errors are showing up.

Sign in to reply to this post

Jason ByrnesWebAssist

ok, so what is the code at line 94?

Sign in to reply to this post

Brendan

sorry, I thought I had pasted that in...

<td><input type="text" name="cc_number" id="cc_number" value="<?php echo $_SESSION['eCartCheckoutForm_cc_number']; ?>" />

Sign in to reply to this post

Jason ByrnesWebAssist

php:
value="<?php echo $_SESSION['eCartCheckoutForm_cc_number']; ?>"



should be:

php:
value="<?php echo(isset($_SESSION['eCartCheckoutForm_cc_number'])?$_SESSION['eCartCheckoutForm_cc_number']:""); ?>"




but i still think the problem is validation.

the validation will be on the confirm page, on the confirm page, look for the following code:

php:
if ($WAFV_Errors != "")  {
    PostResult($WAFV_Redirect,$WAFV_Errors,"index");
  }



and change it to:

php:
if ($WAFV_Errors != "")  {
    die($WAFV_Errors);
    PostResult($WAFV_Redirect,$WAFV_Errors,"index");
  }



if validation is failing, it will write a comma separated list of of numbers to the page corresponding to the validations that failed.

Sign in to reply to this post

Brendan

there were a couple of validations failing, so I'll have to fix the "show if" validation statements in the checkout form.

Thanks for all the help!!!!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome, i had a feeling it was validations.

Sign in to reply to this post

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...