在Magento的产品页面上禁用Ajax添加到购物车

时间:2015-10-29 16:07:09

标签: ajax magento shopping-cart

在我们的网上商店,我们使用ajax添加到购物车,因此页面不必重新加载。但是当订单比股票更大时。 ajax继续加载,并且没有显示订单不可用的消息。

控制台错误是:503(服务不可用)

他们是否有办法解决此问题或禁用ajax仅在产品页面上添加到购物车,但它仍然在其他页面上工作!

错误记录:

a:5:{i:0;s:81:"De gevraagde hoeveelheid voor "Restorative Hair Mask 250 ml" is niet beschikbaar.";i:1;s:1539:"#0 /home/users/beaxmftp/beautyballoon.nl/app/code/core/Mage/Checkout/Model/Cart.php(284): Mage::throwException('De gevraagde ho...')
#1 /home/users/beaxmftp/beautyballoon.nl/app/code/local/Cmsmart/AjaxCart/controllers/IndexController.php(154): Mage_Checkout_Model_Cart->addProduct('53', Array)
#2 /home/users/beaxmftp/beautyballoon.nl/app/code/local/Cmsmart/AjaxCart/controllers/IndexController.php(67): Cmsmart_AjaxCart_IndexController->tryaddAction(Object(Mage_Catalog_Model_Product), Array)
#3 /home/users/beaxmftp/beautyballoon.nl/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Cmsmart_AjaxCart_IndexController->indexAction()
#4 /home/users/beaxmftp/beautyballoon.nl/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#5 /home/users/beaxmftp/beautyballoon.nl/app/code/community/ArtsOnIT/OfflineMaintenance/Controller/Router/Standard.php(46): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#6 /home/users/beaxmftp/beautyballoon.nl/app/code/core/Mage/Core/Controller/Varien/Front.php(172): ArtsOnIT_OfflineMaintenance_Controller_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#7 /home/users/beaxmftp/beautyballoon.nl/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#8 /home/users/beaxmftp/beautyballoon.nl/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#9 /home/users/beaxmftp/beautyballoon.nl/index.php(89): Mage::run('', 'store')
#10 {main}";s:3:"url";s:98:"/ajaxcart/index/index/?form_key=hGxTgs9rzs7WqBfZ&product=53&related_product=&qty=5&_=1446135436562";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:2:"nl";}

0 个答案:

没有答案