close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

checkout button on quick cart and display cart

Thread began 9/19/2016 4:34 pm by David | Last modified 9/20/2016 8:48 pm by Ray Borduin | 2329 views | 6 replies |

David

checkout button on quick cart and display cart

I have a checkout button on my quick cart on my purchase page and a separate page for my view cart. I used the wizard to do my checkout via paypal on the page where the quick cart is. This worked fine. The button on the view cart (for checkout) doesn't work. I did change the code on my view cart to read:

<?php
//WA eCart Redirect Check Out
if (isset($_POST["wyomingcart_Checkout"]) || isset($_POST["wyomingcart_Checkout_x"])) {
$Redirect_redirStr="checkout.php";
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'];
}
}

$wyomingcart->redirStr = $Redirect_redirStr;
}
$wyomingcart->cartAction = "Checkout";
}
?>
Still doesn't work. Also mirrored the button code from the quick cart to the view cart, no help. Yes these are all before the doctype tag.

What am I missing?
Dave

Sign in to reply to this post

Ray BorduinWebAssist

I'd have to see the whole page to see for sure.

Possibly the card redirect code chunk is missing or too high on the page? If you attach the full page I could say for sure.

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

David

checkout button on quick cart and display cart

Ray,

Both pages sent as attachments. Registration checkout button works. The Display checkout button does not. The other functions work fine.

Dave

Sign in to reply to this post

Ray BorduinWebAssist

This code chunk is missing from the cart display page"

php:
<?php

// WA eCart Redirect
if ($wyomingcart->redirStr != "")     {
  if (
function_exists("rel2abs")) $wyomingcart->redirStr rel2abs($wyomingcart->redirStr,dirname(__FILE__));
  
header("Location: ".$wyomingcart->redirStr);
  die();
}
?>



It should appear just above the doctype tag below all of the other php code.

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

David

checkout button on quick cart and display cart

Ray,

Thanks. Now it says:
Warning: Cannot modify header information - headers already sent by (output started at /home/montan37/public_html/wyoming.usawest.net/onlinecartdisplay.php:9) in /home/montan37/public_html/wyoming.usawest.net/onlinecartdisplay.php on line 179

The inserted code begins on line 175

Sign in to reply to this post

Ray BorduinWebAssist

You have a blank line of code at line 8. You can't have blank lines of code in your php or it can cause errors like these. Just delete that blank space and the error should go away.

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

David

checkout button on quick cart and display cart

Ray,

Wow, that worked. I would have not caught that one! Thanks for your help.

Dave

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