close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error on Update Cart

Thread began 11/24/2014 1:15 pm by bill173836 | Last modified 11/25/2014 12:38 pm by Jason Byrnes | 3217 views | 7 replies |

bill173836

Error on Update Cart

I'm getting this error when ever I click the Update Cart button or Apply Promo Code button.
Fatal error: Call to undefined method siteCart_Definition::CartUpdate() in ...sitestuff.../shopping-cart.php on line 159

The Continue Shopping and Clear Cart buttons work fine.

I've attached the shopping cart file and you can see for your self by going to http://www.awinninglook.info/store.php to add a test item. Thanks.

Attached Files
shopping-cart.php
Sign in to reply to this post

Jason ByrnesWebAssist

the update code is duplicated at lines 145 - 166:

<?php
// WA eCart Update
if (isset($_POST["siteCart_Update_100"]) || isset($_POST["siteCart_Update_100_x"])) {
$siteCart->UpdateCart();
$Redirect_redirStr="";
if ($Redirect_redirStr != "") {
$siteCart->redirStr = $Redirect_redirStr;
}
$siteCart->cartAction = "Update";
}
?>
<?php
// WA eCart Update
if (isset($_POST["siteCart_Update_100"]) || isset($_POST["siteCart_Update_100_x"])) {
$siteCart->CartUpdate();
$Redirect_redirStr="";
if ($Redirect_redirStr != "") {
$siteCart->redirStr = $Redirect_redirStr;
}
$siteCart->cartAction = "Update";
}
?>



remove the second instance at lines 156 - 166.

Sign in to reply to this post

bill173836

I took the extra code out but I still get the same type of error it's just on line 148 now.

Attached Files
shopping-cart.php
Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

bill173836

Here you go. Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

Looks like the cart for this page was created using eCart 5, but the display manager has been created using eCart 6.

you need to update the eCart object.

Open the eCart object panel, select to edit the siteCart object, then click ok to have the eCart object code regenerated. make sure to up;load the new eCart object file to the server.

Sign in to reply to this post

bill173836

Thanks, that seemed to work. I did have to add the second Update code back in or it didn't do anything when I clicked the Update or Apply Code buttons.

Sign in to reply to this post

Jason ByrnesWebAssist

glad to hear it is working.

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