Unhandled Error!

We are sorry, but the product "Ceyear 1435 Series 9 kHz - 40 GHz Signal Generators" is out of stock.

Document /modules/shop/classes/shop_cart.php
Document type PHP document
Line 253
Exception class Cms_Exception

Code Highlight

 
				if ($total_quantity > $in_stock)
				{
					if ($in_stock > 0)
						throw new Cms_Exception('We are sorry, but only '.$in_stock.' unit(s) of the "'.$product->name.'" product are available in stock.');
					else
						throw new Cms_Exception('We are sorry, but the product "'.$product->name.'" is out of stock.');
				}
			}
		}
 
		protected static function check_product_availability($product, $quantity, $cart_name, $options)
		{
# Call Stack Code Document Line
18 Shop_Cart::check_availability(object(Shop_Product), '1', array(0), '1') /modules/shop/classes/shop_cart.php 288
17 Shop_Cart::check_product_availability(object(Shop_Product), '1', 'basket', array(0)) /modules/shop/classes/shop_cart.php 103
16 Shop_Cart::add_cart_item(object(Shop_Product), array(6) [quantity => '1', cart_name => 'basket', extra_options => array(0), options => array(0), custom_data => array(0), bundle_data => array(0)]) /modules/shop/classes/shop_actions.php 320
15 Shop_Actions->on_addToCart(()) /modules/cms/classes/cms_actionmanager.php 103
14 Cms_ActionManager::execAjaxHandler('shop:on_addToCart', object(Cms_Controller)) /modules/cms/classes/cms_controller.php 1107
13 Cms_Controller->exec_action_handler('shop:on_addToCart') /modules/cms/classes/cms_controller.php(383) : eval()'d code 15
12 eval(()) /modules/cms/classes/cms_controller.php 383
11 Cms_Controller->evalWithException('?><? /* requires you to add ?auto=1 to a product url if you want the product to be added to your basket automatically */ if(Phpr::$request->getField('auto')) { $_POST['product_id'] = $product->id; $_POST['product_cart_quantity'] = 1; $_POST['redirect'] = site_url('/cart'); $this->exec_action_handler('shop:on_addToCart'); } else { if(Phpr::$request->getField('basket')) { $_POST['product_id'] = $product->id; $_POST['product_cart_quantity'] = 1; $_POST['redirect'] = site_url('/basket'); $_POST['cart_name'] = 'basket'; $this->exec_action_handler('shop:on_addToCart'); } if(Phpr::$request->getField('wishlist')) { $_POST['product_id'] = $product->id; $_POST['product_cart_quantity'] = 1; //$_POST['redirect'] = site_url('/basket'); $_POST['cart_name'] = 'basket'; $this->exec_action_handler('shop:on_addToCart'); } } ?> <div class="content_wrapper"> <div id="content"> <div id="product_page" itemscope itemtype="http://data-vocabulary.org/Product"> <? if ($product_unavailable): header("HTTP/1.0 404 Not Found");?> <h2>We are sorry, product unavailable.</h2> <? global_content_block('product_not_found') ?> <? elseif(!$product): header("HTTP/1.0 404 Not Found");?> <h2>We are sorry, product not found.</h2> <? global_content_block('product_not_found') ?> <? else: ?> <? $this->render_partial('product_partial',array(),array('cache'=>true,'cache_vary_by'=>array('url'),'cache_ttl'=>3600,'cache_versions'=>array('catalog'))) ?> <? $related_products = $product->category_list[0]->list_products()->find_all(); if ($related_products->count) : $this->render_partial('mcs_product_slider',array('products'=>$related_products),array('cache'=>true,'cache_vary_by'=>array('url'),'cache_ttl'=>3600,'cache_versions'=>array('catalog'))); else :?> <br/> <? endif; ?> <? endif ?> </div> </div> </div>', 'CMS page', 'Product') /modules/cms/classes/cms_controller.php 608
10 Cms_Controller->eval_page_content(()) /modules/cms/classes/cms_controller.php 198
9 Cms_Controller->open(object(Cms_Page), array(1) [0 => 'ceyear-1435-series-signal-generators']) /controllers/application.php 72
8 Application->On404(())
7 call_user_func_array(array(2) [0 => object(Application), 1 => 'On404'], array(0)) /phproad/modules/phpr/classes/phpr_controller.php 170
6 Phpr_Controller->executeAction('On404', array(0)) /phproad/modules/phpr/classes/phpr_controller.php 84
5 Phpr_Controller->_run('On404', array(0)) /phproad/modules/phpr/classes/phpr_response.php 64
4 Phpr_Response->open404(()) /phproad/modules/phpr/classes/phpr_response.php 37
3 Phpr_Response->open('/product/ceyear-1435-series-signal-generators') /phproad/system/phproad.php 31
2 include('/home/mcstest/public_html/phproad/system/phproad.php') /boot.php 114
1 require_once('/home/mcstest/public_html/boot.php') /index.php 2