close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

ecart5 paypal button checkout.php

Thread began 2/09/2014 2:45 pm by Christie | Last modified 2/20/2014 9:38 am by Jason Byrnes | 4280 views | 23 replies |

Christie

ecart5 paypal button checkout.php

My cart seems to be working except for the "checkout with paypal" button at the top of the checkout.php page. When clicked it goes to a blank page. Here is the code for the button:

<input type="image" alt="PayPal Express Checkout" name="PayPal_ExpressCheckout_button" id="PayPal_ExpressCheckout_button" src="WA_eCart/PP_ECO_Scripts/btn_xpressCheckoutsm.gif" width="145" height="42"/>

If you bypass the button, and enter the address information all works well on the next steps.

Any help would be appreciated.

Christie

Sign in to reply to this post

Jason ByrnesWebAssist

a blank page means that a php error is occurring but error reporting is turned off.

to turn error reporting on, add the following code at line 1:

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



once we know what the error is, we will be able to troubleshoot the cause.

Sign in to reply to this post

Christie

Here is the error message:

Notice: Undefined index: password in /Applications/MAMP/htdocs/New-CSPcreations/WA_eCart/PP_ECO_Scripts/PP_ECO_PHP.php on line 67

Notice: Undefined index: signature in /Applications/MAMP/htdocs/New-CSPcreations/WA_eCart/PP_ECO_Scripts/PP_ECO_PHP.php on line 67

Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/New-CSPcreations/WA_eCart/PP_ECO_Scripts/PP_ECO_PHP.php:67) in /Applications/MAMP/htdocs/New-CSPcreations/checkout.php on line 82

Christie

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

Christie

See PM.

As an alternation, could I just remove the paypal button from this page if I cannot get it resolved any other way?

Sign in to reply to this post

Jason ByrnesWebAssist

yes you could remove the button from that page.

Sign in to reply to this post

Christie

The 2 files are attached.

Sign in to reply to this post

Jason ByrnesWebAssist

see PM

Sign in to reply to this post

Christie

Success! Thank you very much.

I do have one more little problem though.

To pass the product details to the paypal description column, I had to insert special code (you helped me with this) and that code is not passing along when the "Checkout with PayPal" button is clicked. (The product details are passed along if the customer bypasses this button and fills out the address information underneath.)

I think I probably need add the code (in another place) to pass along the product details for the "Checkout with PayPal" button but do not know where to do this. Any help would be greatly appreciated.

Sign in to reply to this post

Jason ByrnesWebAssist

on the checkout page, the code that passes the name is:
$WA_PP_ECO_Do_itemized[0][$nextIndex] = "Name" . strval($cartIndex+1) . "";
$WA_PP_ECO_Do_itemized[1][$nextIndex] = "".$eCart1->DisplayInfo("Name") ."";


you can edit that to concatenate other columns:
$WA_PP_ECO_Do_itemized[0][$nextIndex] = "Name" . strval($cartIndex+1) . "";
$WA_PP_ECO_Do_itemized[1][$nextIndex] = "".$eCart1->DisplayInfo("Name") ." Color: ".$eCart1->DisplayInfo("Color")."";

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