close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Add to Cart button problem

Thread began 3/30/2009 8:12 am by stevesmith373400 | Last modified 3/31/2009 6:39 am by stevesmith373400 | 4455 views | 11 replies |

stevesmith373400

Add to Cart button problem

When I insert the add to cart button, the page loads blank. Before I insert the button, I can see the template and the dynamic data. The sample store, BlueSkyMusic, works fine. My test server is an apache server on my local machine. I have it set up for //localhost/. Does anyone have an idea as to why it loads a blank page?

I greatly appreciate your time and any help you can give.

Sign in to reply to this post

Ray BorduinWebAssist

Most likely there is some sort of error and error reporting is turned off on the server.

Try to get error reporting turned on for development, then you can see what the error is to have a better chance of fixing it.

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

stevesmith373400

The error reporting service is turned on. My puzzle is that the BlueSkyMusic site that I loaded for trial works perfectly. When I create the product pages for my site, they work perfectly until I insert the add to cart button. I can see the page and all my products on the localhost test server before I insert the button. After I insert the button, the page is blank and there is no source code if you view the source code from the browser. I am certain it is a simple fix with a setting but I cannot narrow it down.

Sign in to reply to this post

Ray BorduinWebAssist

Even if the error reporting service is on, it may be set up to report the errors to a log file instead of on the page. This is still my best guess.

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

stevesmith373400

Found the log. The error reads
PHP fatal error call to member function getcontent() on a non object" on line 6

we are baffled here. I cannot figure how to point the get content correctly if that is the problem.

Sign in to reply to this post

Ray BorduinWebAssist

You need to have the shopping cart include file above the getContent function. It sounds like your include file may be in the wrong place.

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

stevesmith373400

Here is the code up to the php cet content command.

<?php
//WA eCart Include
require_once("WA_eCart/aysshop_PHP.php");
?><?php require_once('Connections/aysshop.php'); ?>
<?php
$aysshop->GetContent();
?>

It is exactly like the BlueskyMusic pages except using my database. Is there another file that could be throwing the get content command off?

Sign in to reply to this post

stevesmith373400

Also when I remove the 3 lines of php code that performs the get content, my page returns and the data is there. The add to cart button does not work of course even though it is on the page.

Sign in to reply to this post

Ray BorduinWebAssist

The code appears as though it should work. Are you sure you have uploaded the file:
WA_eCart/aysshop_PHP.php

Maybe try moving the connections above, but I don't see how that would make a difference.

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

stevesmith373400

By uploading the file if you mean is it in the root directory of the site under the WA_eCart file then yes it is there. Is there another place it needs to be. At this point I am considering wiping it all and starting from the beginning. I believe that somewhere during the process a glitch was introduced that we cannot locate. Any other ideas? The "WA_eCart/aysshop_PHP.php" and the 'Connections/aysshop.php' were both created by the ecart wizard. Where would I look in those files if there were a problem?

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