close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Binding CustomerInfo to Checkout . . .

Thread began 7/05/2009 6:06 am by wetware | Last modified 7/17/2009 11:16 am by wetware | 3540 views | 5 replies |

wetware

Binding CustomerInfo to Checkout . . .

. . . for PayPal Standard Gateway question. Why isn't this working (used the WA Recipes360 info)?
Please help with a walk-through (static site; PHP; eCart 4.5.1) . . .

1st field to be pre-filled on the Checkout page from the corresponding field on the CustomerInfo page has the following syntax(?):
<input type="hidden" name="billFirstNameText" id="billFirstNameText" value="<?php echo((isset($_POST["billFirstNameText"]))?$_POST["billFirstNameText"]:"") ?>" />
Is this correct?

And, how does one "populate" the Shipping info from the Billing info on the CustomerInfo page using a checkbox ie: "Shipping info same as Billing?"

Thanks in advance . . .

Sign in to reply to this post

wetware

Testing Server setup error . . .

. . . has (possibly) created a positive difference, but there's a problem with the Recipes instructions (surprize!).
In re-creating the "Checkout" page (Customer Info population & read-only Shopping Cart), the actual Checkout button has a leading red exclamation point in the Server Behaviors list. When that is double-clicked to "see why" an error message pops up stating:
"Please ensure that your selection is inside the body tag before using this object"
The Checkout button is within the form element which is inside div's which are inside the body tag . . .
What's up with that?
Uploading the "new & improved" Checkout page & testing the process live leads to a blank page when the Customer Info page "proceed to Checkout" button is pressed. Of course, that means that that (technically) there's still no info being carried from the Customer Info page automatically to the Checkout page . . .
Thanks in advance to anyone out there!

Sign in to reply to this post

Ray BorduinWebAssist

A blank page generally means your server has debugging turned off. I would suggest turning it on so that you get error descriptions and line numbers at least until you have it working.

Any number of things could be wrong and a blank page is hard to debug.

There is a javascript file we include that has the function for moving information from billing to shipping. It is simple client side javascript that moves the information from one form element to the other.

Sign in to reply to this post
Did this help? Tips are appreciated...

wetware

The following code . . .

. . . preceeds the HTML (doctype, etc.) - the server in question is "live" in the FL Keys. Am trying to contact them (e-mail only).
TWF_Product_Fishshapes01.php
leads to
TWF_Artisans_Checkout.php
Is this a rude interruption to your day time-wise?

<?php
//WA eCart Include
require_once("WA_eCart/eCart1_PHP.php");
?>
<?php
$eCart1->GetContent();
?>
<?php
if (!session_id()) session_start();
if("" == "") {
$_SESSION["TaxRate"] = "billStateList";
}
?>
<?php
if (!session_id()) session_start();
if("" == "") {
$_SESSION["TaxRate"] = "".((isset($_POST["billStateList"]))?$_POST["billStateList"]:"") ."";
}
?>
<?php
//WA eCart Check Out Update
if (isset($_POST["eCart1_Checkout_1"]) || isset($_POST["eCart1_Checkout_1_x"])) {
$eCart1->UpdateCart();
$eCart1->cartAction = "CheckOutUpdate";
}
?>
<?php
//WA eCart Redirect Check Out
if (isset($_POST["eCart1_Checkout_1"]) || isset($_POST["eCart1_Checkout_1_x"])) {
$Redirect_redirStr="https://www.paypal.com/cgi-bin/webscr";
if ($Redirect_redirStr != "") {
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "") {
if (strpos($Redirect_redirStr, "?") === false) {
$Redirect_redirStr .= "?".$_SERVER['QUERY_STRING'];
}
else {
$Redirect_redirStr .= "&".$_SERVER['QUERY_STRING'];
}
}

$eCart1->redirStr = $Redirect_redirStr;
}
$eCart1->cartAction = "Checkout";
}
?>
<?php
// WA eCart Redirect
if ($eCart1->redirStr != "") {
header("Location: ".$eCart1->redirStr);
}
?>

Sign in to reply to this post

wetware

Continuing saga . . .

. . . per the post above:
I have eliminated the 1st session "TaxRate" seemed redundant (& less info?).
In the "Bindings" panel there exist items named:
eCart1_Checkout_1_x
eCart1_Checkout_1_y
Fiddling around with those values in the "isset" sections in the "CustomerInfo" & "Checkout" pages has allowed the blank "Checkout" page to display.
Sometimes . . .
Certain combinations cause the clicking of the "Proceed to Checkout" button (CustomerInfo pg.) to bypass the Checkout page & go directly to:
webscr (btw > correct address for PayPal Standard?)
That URL is the ReDirect string for the "Checkout" page "Checkout" button . . .
The other original problems still exist > the failure of the info collected on the "CustomerInfo" page (billing & shipping) to appear on the "Checkout" page (billing & shipping, plus read-only shopping cart) so tax can be figured into the total. Binding value (sample field from "Checkout" pg.):
<?php echo((isset($_POST["billFirstNameText"]))?$_POST["billFirstNameText"]:"") ?>
Also, the column value (Color) in the Shopping Cart section (Checkout pg.) fails to carry over from the 1st "Shopping Cart" page, and (most importantly) the "TaxRate" is not shown/calculated. The Recipe360 instructions were followed . . .
Thanks in advance . . .

Sign in to reply to this post

wetware

Problem solved . . .

. . . thanks!

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