close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Ecart Checkout not opening

Thread began 4/15/2012 11:42 pm by ColorHunger | Last modified 4/16/2012 12:28 pm by Jason Byrnes | 2058 views | 7 replies |

ColorHunger

Ecart Checkout not opening

Hello, iv search for the answer but have not found any solutions to my problem.. i have set up the ecart and checkout pages. Items ARE being shown in the ecart when added and the redirects ARE pointing to the checkout page. but when you click checkout it just reloads the cart, the checkout is not recognizing anything in the cart.. i tested this by changing the checkout redirect if cart empty to another page and when checkout is clicked it redirected it to that page.. please help.. the website is live, ArtworkBungalow.com.

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of the cart page and the checkout page in a zip archive so i can take a look at the code.

Sign in to reply to this post

ColorHunger

bead; radyhem

ok thank you! attached are the files

Attached Files
files.zip
Sign in to reply to this post

Jason ByrnesWebAssist

on the checkout page, the code before the doctype tag is slightly out of order.


the code:

php:
<?php

//WA eCart Include
require_once("WA_eCart/eCart1_PHP.php");
?><?php require_once( "webassist/security_assist/helper_php.php" ); ?>
<?php
if ($eCart1->IsEmpty())     {
  
$eCart1->redirStr "cart.php";
  
$eCart1->cartAction "RedirectIfEmpty";
}
?>
<?php
$eCart1
->GetContent();
?><?php
// WA eCart Redirect
if ($eCart1->redirStr != "")     {
  
header("Location: ".$eCart1->redirStr);
}
?>




should be in this order:

php:
<?php

//WA eCart Include
require_once("WA_eCart/eCart1_PHP.php");
?>
<?php
$eCart1
->GetContent();
?>
<?php 
require_once( "webassist/security_assist/helper_php.php" ); ?>
<?php
if ($eCart1->IsEmpty())     {
  
$eCart1->redirStr "cart.php";
  
$eCart1->cartAction "RedirectIfEmpty";
}
?>
<?php
// WA eCart Redirect
if ($eCart1->redirStr != "")     {
  
header("Location: ".$eCart1->redirStr);
}
?>
Sign in to reply to this post

ColorHunger

awesome thank you! i wuld have never figured that out... it goes to the checkout page but now its giving a error at the top of checkout page..

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/artbung/public_html/checkout.php:2) in /home/artbung/public_html/WA_eCart/WA_eCart_Definition_PHP.php on line 465

Sign in to reply to this post

Jason ByrnesWebAssist

this error is caused by blank lines between php code blocks, the error is saying the blank line is at line 1 or 2.
output started at /home/artbung/public_html/checkout.php:2


see the following post for more details:
showthread.php?t=19285

Sign in to reply to this post

ColorHunger

awesome! that worked. but now the checkout page is not going to the confirm page, it goes back to the view cart page. but it is loading the data from the checkout page into the order database.

im guessing to replace the same code you told me to do on the checkout page?


(YUP! that worked, just switched the code around on the confirm page! thanks again for all the help)

Attached Files
confirm.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the key is to make sure this code block:

php:
<?php 

$eCart1
->GetContent(); 
?>




is just after this one:

php:
<?php 

//WA eCart Include 
require_once("WA_eCart/eCart1_PHP.php"); 
?>



like this:

php:
<?php 

//WA eCart Include 
require_once("WA_eCart/eCart1_PHP.php"); 
?> 
<?php 
$eCart1
->GetContent(); 
?>
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...