Zen Cart Logo
Forums / General Questions / add to cart error

add to cart error

Locked

Views: 1,232

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
4 Oct 2006, 12:33 AM
#1
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

add to cart error

Fatal error: Call to undefined function: actionaddproduct() in /home/poison67/public_html/idiame/shoppingcart/includes/main_cart_actions.php on line 42

<?php /** * Main shopping Cart actions supported. * * The main cart actions supported by the current shoppingCart class. * This can be added to externally using the extra_cart_actions directory. * * @package initSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: main_cart_actions.php 3066 2006-02-25 22:14:00Z wilt $ */ if (!defined('IS_ADMIN_FLAG')) { die('Illegal Access'); } /** * include the list of extra cart action files (*.php in the extra_cart_actions folder) */ if ($za_dir = @dir(DIR_WS_INCLUDES . 'extra_cart_actions')) { while ($zv_file = $za_dir->read()) { if (preg_match('/\.php$/', $zv_file) > 0) { /** * get user/contribution defined cart actions */ include(DIR_WS_INCLUDES . 'extra_cart_actions/' . $zv_file); } } } switch ($_GET['action']) { /** * customer wants to update the product quantity in their shopping cart * delete checkbox or 0 quantity removes from cart */ case 'update_product' : $_SESSION['cart']->actionUpdateProduct($goto, $parameters); break; /** * customer adds a product from the products page */ case 'add_product' : $_SESSION['cart']->actionAddProduct($goto, $parameters); break; case 'buy_now' : /** * performed by the 'buy now' button in product listings and review page */ $_SESSION['cart']->actionBuyNow($goto, $parameters); break; case 'multiple_products_add_product' : /** * performed by the multiple-add-products button */ $_SESSION['cart']->actionMultipleAddProduct($goto, $parameters); break; case 'notify' : $_SESSION['cart']->actionNotify($goto, $parameters); break; case 'notify_remove' : $_SESSION['cart']->actionNotifyRemove($goto, $parameters); break; case 'cust_order' : $_SESSION['cart']->actionCustomerOrder($goto, $parameters); break; case 'remove_product' : $_SESSION['cart']->actionRemoveProduct($goto, $parameters); break; case 'cart' : $_SESSION['cart']->actionCartUserAction($goto, $parameters); break; } ?>

help please

4 Oct 2006, 1:59 AM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: add to cart error

Seems like this file is missing for you
includes\classes\shopping_cart.php

4 Oct 2006, 2:12 AM
#3
g0d4lm1ty avatar

g0d4lm1ty

Zen Follower

Join Date:
Sep 2006
Posts:
257
Plugin Contributions:
0

Re: add to cart error

its there :(

but.. u spoke so i looked... it may have been corrupted.. i uploaded the file again/// works now.. thanks....

4 Oct 2006, 2:14 AM
#4
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: add to cart error

g0d4lm1ty:

its there :(
May be corruped...try uploading once again!