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

How to extend and rearrange eCart's checkout pages?

Thread began 6/03/2009 11:51 am by crespo7271184 | Last modified 6/05/2009 5:28 pm by crespo7271184 | 5284 views | 21 replies |

Robert Crespo

How to extend and rearrange eCart's checkout pages?

I have spend the better part of a day trying to customize the checkout pages for my website. My website uses the UPS shipping module. However, I would like to emulate other websites, like IKEA.com where the customer first types in the billing and shipping address and on the next page this results in the shipping calculation. After the customer knows how much the shipping will cost then they can enter their credit cart details and get to a final confirm all details page. I made a lot of progress only to be stumped after the transaction is completed. PayPal does not enter the email address correctly. The recorded email for the customer is: invalid_email_supplied@PayPal.com.

Obviously something is broken here despite the successful transaction. I am not a PHP programmer so I am basically hacking code around to make it all work. If anyone has any experience in extending the checkout process beyond eCart's default 3 page checkout process I will be grateful for any advice on how to make it all work.

Sign in to reply to this post

Ray BorduinWebAssist

What paypal payment type are you using? It sounds like a problem with the local checkout server behavior email setting on the confirm page.

Sign in to reply to this post

Robert Crespo

I am using the PayPal local Direct Payment scheme. I quite possible could have accidentally deleted some key PHP data. Any help will be greatly appreciated.

Sign in to reply to this post

Ray BorduinWebAssist

Then you need to track down the problem from there?

Open the local checkout server behavior on the confirm page. What does it have set as the email field value?

Is it correct? Does it have a value when you display it on the page? Is it the same as where the email is displayed on the page?

Sign in to reply to this post

Robert Crespo

The email value field is carried correctly from page to page. On the checkout completion page the email however looks like this: email@address.com ?>

I am not sure why the ?> symbols are diplaying but it results in the captured email address as: invalid_email_supplied@PayPal.com

The session variable for the email address is as follows:

<?php

if (!session_id()) session_start();
if($_SERVER["REQUEST_METHOD"] == "POST") {
$_SESSION["eCartCheckoutForm_email"] = "".((isset($_POST["email"]))?$_POST["email"]:"") ."";
}
?>

I hope this helps. Everything is working except the capture of the customers email address.

Sign in to reply to this post

Ray BorduinWebAssist

Please post a support incident. I think you may need help debugging this one and it may take too long going back and forth in this forum.

Sign in to reply to this post

Robert Crespo

O.K. I managed to get the local checkout working where is captures the correct email address of the customer. I just needed to "tighten up" the code on confirm.php page.

However, I am having a new problem as the PayPal Express Checkout Button does not work. The button has been placed on a secondary checkout page and not checkout.php. Clicking the PayPal Express Checkout Button results in being taken to the checkout_failure.php with an error code 10727. The detailed error message is "There's an error with this transaction. Please enter an address1 in the shipping address."

Any suggestions on how to get the PayPal button working?

Sign in to reply to this post

Ray BorduinWebAssist

What server behavior is running on the page? You shouldn't need an address until after you get back from the authorization for express checkout. It sounds like you might be trying to process your payment when you get this error, but it also sounds like you haven't actually gotten to the paypal web site yet.

That is why the error makes no sense, because the address should be set after they log in to paypal and not on the way. What server behaviors do you have applied to the page? What part of the process is giving this error? The solution is going to involve editing the Server Behavior related to the error, but I'm having a hard time figuring out exactly what is happenning so I don't know for sure.

Sign in to reply to this post

Robert Crespo

Just to keep things organized, I have developed the following page structure, although the names of the final debugged pages will eventually change . The first checkout page is called checkout-alt.php. Checkout-alt.php has no server behaviors running but it does take the billing and shipping address form data to the next page called checkout-alt-2.php. Checkout-alt-2.php contains the following server bevaiors: PayPal Express Checkout Authentication, eCart UPS Shipping, eCart Local Checkout as well as all the eCart Set Session Values for all of the form data.

The part of the process giving me the error is when I am on the second checkout page, checkout-alt-2.php and click the PayPal Express Checkout Button. Clicking this button results in being taken to chekout_failure.php page.

I hope this helps explain things a little better.

Sign in to reply to this post

Ray BorduinWebAssist

I think you are working in two threads right now. Please use just one.

The most recent entry in the other thread suggested you might have the wrong form action for your express checkout form.

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