close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

items not adding to cart/basket

Thread began 1/26/2011 12:29 pm by lee341019 | Last modified 1/28/2011 6:44 am by Jason Byrnes | 1685 views | 7 replies |

lee341019

items not adding to cart/basket

I have a site www.patriciadawson.com. This was built using eCart 3 and 4.
This has worked fine for over two years, now when you go and add an iten to the basket, sometimes it will add the item, sometimes it will not, and displays the 'Empty basket' page.

This mainly seems to be happening in IE on a PC?

Any ideas as I am totally lost!

Thanks in advance

Lee

Sign in to reply to this post

lee341019

This post has been deleted.

Jason ByrnesWebAssist

my first though is that there is an issue with session management on the server see this post for details:
showpost.php?p=23826&postcount=2

Sign in to reply to this post

lee341019

thanks for that. The sessionTest.php test ok. Any other ideas?

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a copy of the ProductDetail.php page

Sign in to reply to this post

lee341019

file attached as requested.

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

Jason ByrnesWebAssist

try changing this code:

php:
<?php

// WA eCart Redirect
if ($PDcart->redirStr != "")     {
  
header("Location: ".$PDcart->redirStr);
}
?>



to:

php:
<?php

// WA eCart Redirect
if ($PDcart->redirStr != "")     {
   
session_commit();
  
header("Location: ".$PDcart->redirStr);
}
?>
Sign in to reply to this post

lee341019

thanks for that, IE just stopped working so cannot test. just doing a full shutdown, did you manage to see the problem (not adding to cart)?
If so, could you tell me what this change has done?

Thanks so much for your help.

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, I did see the problem happen.

This code change will force the session information to be committed to the servers memory.

In some cases, the session changes are not committed to memory when the header() function is used to redirect the page. This change will force the session changes to be remembered by the server.

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