close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Erratic add to cart button behavior

Thread began 9/10/2009 1:34 pm by b.doherty278976 | Last modified 9/10/2009 3:41 pm by Jason Byrnes | 1974 views | 2 replies |


Erratic add to cart button behavior

I have been using eCart (currently 4.50) for years, first with Dreamweaver 8 and now with Adobe CS4.

I just updated one of my sites, and made a brand new purchase page. I added the add to cart button. My problem is that the button does not automatically go to the view cart page. The entry is there when I do go to the view cart page.

I have seen other posts about a php server error. I will try those solutions, but I do not think that is the problem BECAUSE:

I have another site in which I created a new purchase page and everything works as it should.

The databases and shopping carts are defined slightly differently.

There is an error generated by the site that does not work - can not change headers once data is sent...

This is driving me crazy. Appreciate any ideas.


Sign in to reply to this post



I may have located the source of - but not the reason for - this problem.

The incorrectly-behaving included a file (the database connection file, not that that matters) using VIRTUAL. I changed it to a simple INCLUDE and the error went away and teh add to cart button showed the view cart page.

The page that behaved correctly used REQUIRE_ONCE.

Include gives a warning if it fails. Require is fatal.

The urgency has gone, but I would still be curious in any comments.

Sign in to reply to this post

Jason ByrnesWebAssist

Dreamweaver will use the virtual() function to attach included files if you set the "Create Links Relative To" Option on the Local Info tab of your site definition to "Site". The problem with this is that the virtual() function is only valid on some apache servers, and it outputs a bit to the page when the file is attached.

If you set Dreamweaver to use Create Links Relative To the Document, it will use the require_once() function.

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





Ease of use


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