Jump to content

Shopping cart not working


TenUnPlanB

Recommended Posts

I have a PS 1.7.1.2 and the problem that i have is that when i try to add a product to the shopping cart the following error show and blocks the page ( i disable the shopping car module to avoid this error)

ContextErrorException in smarty_internal_templatebase.php(157) : eval()'d code line 71:Notice: Undefined index: price_tax_exc
in smarty_internal_templatebase.php(157) : eval()'d code line 71
at ErrorHandler->handleError('8', 'Undefined index: price_tax_exc', '/usr/home/santiagoroma/www/vendor/prestashop/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code', '71', array('_smarty_tpl' => object(Smarty_Dev_Template), '_from' => array(array('id_product_attribute' => '0', 'id_product' => '12', 'cart_quantity' => '1', 'id_shop' => '1', 'id_customization' => null, 'name' => 'SANTIAGO ROMA Pack 6', 'is_virtual' => '0', 'description_short' => '<p>Rías Baixas Santiago Roma Albariño. Un buen equilibrio organoléptico de nuestras uvas, despalillado, prensado a bajas presiones, desfangado en frío, fermentación controlada entre 18ºC y 20ºC</p>', 'available_now' => 'Disponible', 'available_later' => 'Actualmente no disponible', 'id_category_default' => '3', 'id_supplier' => '0', 'id_manufacturer' => '0', 'manufacturer_name' => null, 'on_sale' => '0', 'ecotax' => array('value' => '0,00 €', 'amount' => '0.000000', 'rate' => ''), 'additional_shipping_cost' => '0.00', 'available_for_order' => '1', 'show_price' => true, 'price' => '75,00 €', 'active' => '1', 'unity' => '', 'unit_price_ratio' => '0.000000', 'quantity_available' => '99', 'width' => '0.000000', 'height' => '0.000000', 'depth' => '0.000000', 'out_of_stock' => '2', 'weight' => '0', 'available_date' => '0000-00-00', 'date_add' => '2017-07-05 09:02:33', 'date_upd' => '2017-09-01 17:18:41', 'quantity' => '1', 'link_rewrite' => 'santiago-roma', 'category' => 'albarino', 'unique_id' => '0000000012000000000000', 'id_address_delivery' => '0', 'advanced_stock_management' => '0', 'supplier_reference' => null, 'customization_quantity' => null, 'price_attribute' => null, 'ecotax_attr' => null, 'reference' => 'sr6', 'weight_attribute' => null, 'ean13' => '', 'isbn' => '', 'upc' => '', 'minimal_quantity' => '1', 'wholesale_price' => '0.000000', 'id_image' => '12-68', 'legend' => '', 'reduction_type' => '0', 'is_gift' => false, 'stock_quantity' => '99', 'price_without_reduction' => '75', 'price_with_reduction' => '75', 'price_with_reduction_without_tax' => '61.983471', 'total' => '75,00 €', 'total_wt' => '75', 'price_wt' => '75', 'reduction_applies' => false, 'quantity_discount_applies' => false, 'allow_oosp' => '0', 'features' => array(), 'rate' => '21', 'tax_name' => 'IVA ES 21%', 'remove_from_cart_url' => 'http://santiagoroma.com/es/carrito?delete=1&id_product=12&id_product_attribute=0&token=472c61af87ac08acac7e5897490d24c2' 'up_quantity_url' => 'http://santiagoroma.com/es/carrito?update=1&id_product=12&id_product_attribute=0&token=472c61af87ac08acac7e5897490d24c2&op=up' 'down_quantity_url' => 'http://santiagoroma.com/es/carrito?update=1&id_product=12&id_product_attribute=0&token=472c61af87ac08acac7e5897490d24c2&op=down' 'update_quantity_url' => 'http://santiagoroma.com/es/carrito?update=1&id_product=12&id_product_attribute=0&token=472c61af87ac08acac7e5897490d24c2' 'ecotax_rate' => '', 'specific_prices' => '', 'customizable' => '', 'online_only' => '', 'reduction' => '', 'new' => '', 'condition' => false, 'pack' => '', 'price_amount' => '75,00 €', 'quantity_wanted' => '1', 'id' => '12', 'attributes' => array(), 'weight_unit' => 'Kg', 'images' => array(array('bySize' => array('small_default' => array('url' => 'http://santiagoroma.com/33-small_default/santiago-roma.jpg' 'width' => '98', 'height' => '134'), 'cart_default' => array('url' => 'http://santiagoroma.com/33-cart_default/santiago-roma.jpg' 'width' => '125', 'height' => '171'), 'medium_default' => array('url' => 'http://santiagoroma.com/33-medium_default/santiago-roma.jpg' 'width' => '180', 'height' => '247'), 'home_default' => array('url' => 'http://santiagoroma.com/33-home_default/santiago-roma.jpg' 'width' => '450', 'height' => '615'), 'large_default' => array('url' => 'http://santiagoroma.com/33-large_default/santiago-roma.jpg' 'width' => '700', 'height' => '960')), 'small' => array('url' => 'http://santiagoroma.com/33-small_default/santiago-roma.jpg' 'width' => '98', 'height' => '134'), 'medium' => array('url' => 'http://santiagoroma.com/33-medium_default/santiago-roma.jpg' 'width' => '180', 'height' => '247'), 'large' => array('url' => 'http://santiagoroma.com/33-large_default/santiago-roma.jpg' 'width' => '700', 'height' => '960'), 'legend' => '', 'cover' => null, 'id_image' => '33', 'position' => '1', 'associatedVariants' => array()), array('bySize' => array('small_default' => array('url' => 'http://santiagoroma.com/34-small_default/santiago-roma.jpg' 'width' => '98', 'height' => '134'), 'cart_default' => array('url' => 'http://santiagoroma.com/34-cart_default/santiago-roma.jpg' 'width' => '125', 'height' => '171'), 'medium_default' => array('url' => 'http://santiagoroma.com/34-medium_default/santiago-roma.jpg' 'width' => '180', 'height' => '247'), 'home_default' => array('url' => 'http://santiagoroma.com/34-home_default/santiago-roma.jpg' 'width' => '450', 'height' => '615'), 'large_default' => array('url' => 'http://santiagoroma.com/34-large_default/santiago-roma.jpg' 'width' => '700', 'height' => '960')), 'small' => array('url' => 'http://santiagoroma.com/34-small_default/santiago-roma.jpg' 'width' => '98', 'height' => '134'), 'medium' => array('url' => 'http://santiagoroma.com/34-medium_default/santiago-roma.jpg' 'width' => '180', 'height' => '247'), 'large' => array('url' => 'http://santiagoroma.com/34-large_default/santiago-roma.jpg' 'width' => '700', 'height' => '960'), 'legend' => '', 'cover' => null, 'id_image' => '34', 'position' => '2', 'associatedVariants' => array()), array('bySize' => array('small_default' => array('url' => 'http://santiagoroma.com/35-small_default/santiago-roma.jpg' 'width' => '98', 'height' => '134'), 'cart_default' => array('url' => 'http://santiagoroma.com/35-cart_default/santiago-roma.jpg' 'width' => '125', 'height' => '171'), 'medium_default' => array('url' => 'http://santiagoroma.com/35-medium_default/santiago-roma.jpg' 'width' => '180', 'height' => '247'), 'home_default' => array('url' => 'http://santiagoroma.com/35-home_default/santiago-roma.jpg' 'width' => '450', 'height' => '615'), 'large_default' => array('url' => 'http://santiagoroma.com/35-large_default/santiago-roma.jpg' 'width' => '700', 'height' => '960')), 'small' => array('url' => 'http://santiagoroma.com/35-small_default/santiago-roma.jpg' 'width' => '98', 'height' => '134'), 'medium' => array('url' => 'http://santiagoroma.com/35-medium_default/santiago-roma.jpg' 'width' => '180', 'height' => '247'), 'large' => array('url' => 'http://santiagoroma.com/35-large_default/santiago-roma.jpg' 'width' => '700', 'height' => '960'), 'legend' => '', 'cover' => null, 'id_image' => '35', 'position' => '3', 'associatedVariants' => array()), array('bySize' => array('small_default' => array('url' => 'http://santiagoroma.com/36-small_default/santiago-roma.jpg' 'width' => '98', 'height' => '134'), 'cart_default' => array('url' => 'http://santiagoroma.com/36-cart_default/santiago-roma.jpg' 'width' => '125', 'height' => '171'), 'medium_default' => array('url' => 'http://santiagoroma.com/36-medium_default/santiago-roma.jpg' 'width' => '180', 'height' => '247'), 'home_default' => array('url' => 'http://santiagoroma.com/36-home_default/santiago-roma.jpg' 'width' => '450', 'height' => '615'), 'large_default' => array('url' => 'http://santiagoroma.com/36-large_default/santiago-roma.jpg' 'width' => '700', 'height' => '960')), 'small' => array('url' => 'http://santiagoroma.com/36-small_default/santiago-roma.jpg' 'width' => '98', 'height' => '134'), 'medium' => array('url' => 'http://santiagoroma.com/36-medium_default/santiago-roma.jpg' 'width' => '180', 'height' => '247'), 'large' => array('url' => 'http://santiagoroma.com/36-large_default/santiago-roma.jpg' 'width' => '700', 'height' => '960'), 'legend' => '', 'cover' => null, 'id_image' => '36', 'position' => '4', 'associatedVariants' => array()), array('bySize' => array('small_default' => array('url' => 'http://santiagoroma.com/68-small_default/santiago-roma.jpg' 'width' => '98', 'height' => '134'), 'cart_default' => array('url' => 'http://santiagoroma.com/68-cart_default/santiago-roma.jpg' 'width' => '125', 'height' => '171'), 'medium_default' => array('url' => 'http://santiagoroma.com/68-medium_default/santiago-roma.jpg' 'width' => '180', 'height' => '247'), 'home_default' => array('url' => 'http://santiagoroma.com/68-home_default/santiago-roma.jpg' 'width' => '450', 'height' => '615'), 'large_default' => array('url' => 'http://santiagoroma.com/68-large_default/santiago-roma.jpg' 'width' => '700', 'height' => '960')), 'small' => array('url' => 'http://santiagoroma.com/68-small_default/santiago-roma.jpg' 'width' => '98', 'height' => '134'), 'medium' => array('url' => 'http://santiagoroma.com/68-medium_default/santiago-roma.jpg' 'width' => '180', 'height' => '247'), 'large' => array('url' => 'http://santiagoroma.com/68-large_default/santiago-roma.jpg' 'width' => '700', 'height' => '960'), 'legend' => '', 'cover' => '1', 'id_image' => '68', 'position' => '5', 'associatedVariants' => array())), 'cover' => array('bySize' => array('small_default' => array('url' => 'http://santiagoroma.com/68-small_default/santiago-roma.jpg' 'width' => '98', 'height' => '134'), 'cart_default' => array('url' => 'http://santiagoroma.com/68-cart_default/santiago-roma.jpg' 'width' => '125', 'height' => '171'), 'medium_default' => array('url' => 'http://santiagoroma.com/68-medium_default/santiago-roma.jpg' 'width' => '180', 'height' => '247'), 'home_default' => array('url' => 'http://santiagoroma.com/68-home_default/santiago-roma.jpg' 'width' => '450', 'height' => '615'), 'large_default' => array('url' => 'http://santiagoroma.com/68-large_default/santiago-roma.jpg' 'width' => '700', 'height' => '960')), 'small' => array('url' => 'http://santiagoroma.com/68-small_default/santiago-roma.jpg' 'width' => '98', 'height' => '134'), 'medium' => array('url' => 'http://santiagoroma.com/68-medium_default/santiago-roma.jpg' 'width' => '180', 'height' => '247'), 'large' => array('url' => 'http://santiagoroma.com/68-large_default/santiago-roma.jpg' 'width' => '700', 'height' => '960'), 'legend' => '', 'cover' => '1', 'id_image' => '68', 'position' => '5', 'associatedVariants' => array()), 'url' => 'http://santiagoroma.com/es/albarino/12-santiago-roma.html' 'canonical_url' => 'http://santiagoroma.com/es/albarino/12-santiago-roma.html' 'has_discount' => false, 'discount_type' => null, 'discount_percentage' => null, 'discount_percentage_absolute' => null, 'discount_amount' => null, 'regular_price_amount' => '75,00 €', 'regular_price' => '75,00 €', 'discount_to_display' => null, 'unit_price_full' => '', 'unit_price' => '', 'add_to_cart_url' => 'http://santiagoroma.com/es/carrito?add=1&id_product=12&id_product_attribute=0&token=472c61af87ac08acac7e5897490d24c2' 'main_variants' => array(), 'flags' => array(), 'labels' => array('tax_short' => '(imp incl.)', 'tax_long' => 'Impuestos incluidos'), 'show_availability' => true, 'availability_date' => null, 'availability_message' => 'Disponible', 'availability' => 'available', 'quantity_discounts' => array(), 'reference_to_display' => 'sr6', 'embedded_attributes' => array('id_product_attribute' => '0', 'id_product' => '12', 'id_customization' => null, 'name' => 'SANTIAGO ROMA Pack 6', 'is_virtual' => '0', 'description_short' => '<p>Rías Baixas Santiago Roma Albariño. Un buen equilibrio organoléptico de nuestras uvas, despalillado, prensado a bajas presiones, desfangado en frío, fermentación controlada entre 18ºC y 20ºC</p>', 'available_now' => 'Disponible', 'available_later' => 'Actualmente no disponible', 'id_category_default' => '3', 'id_supplier' => '0', 'id_manufacturer' => '0', 'on_sale' => '0', 'ecotax' => '0.000000', 'additional_shipping_cost' => '0.00', 'available_for_order' => '1', 'show_price' => '1', 'price' => '75,00 €', 'unity' => '', 'unit_price_ratio' => '0.000000', 'out_of_stock' => '2', 'available_date' => '0000-00-00', 'date_add' => '2017-07-05 09:02:33', 'date_upd' => '2017-09-01 17:18:41', 'quantity' => '1', 'link_rewrite' => 'santiago-roma', 'category' => 'albarino', 'advanced_stock_management' => '0', 'reference' => 'sr6', 'minimal_quantity' => '1', 'id_image' => '12-68', 'price_without_reduction' => '75', 'allow_oosp' => '0', 'features' => array(), 'rate' => '21', 'tax_name' => 'IVA ES 21%', 'ecotax_rate' => '', 'specific_prices' => '', 'customizable' => '', 'online_only' => '', 'reduction' => '', 'new' => '', 'condition' => '', 'pack' => '', 'price_amount' => '75', 'quantity_wanted' => '1'), 'customizations' => array())))) in smarty_internal_templatebase.php(157) : eval()'d code line 71
at content_59a9826ec6d356_93847522(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188
at Smarty_Internal_TemplateBase->fetch(object(Smarty_Dev_Template), null, null, null, false, true, false) in SmartyDev.php line 60
at Smarty_Dev_Template->fetch() in Module.php line 2279
at ModuleCore->fetch('module:ps_shoppingcart/ps_shoppingcart.tpl') in ps_shoppingcart.php line 98
at Ps_Shoppingcart->renderWidget('displayTop', array('smarty' => object(Smarty_Dev_Template), 'cookie' => object(Cookie), 'cart' => object(Cart))) in Hook.php line 900
at HookCore::coreRenderWidget(object(Ps_Shoppingcart), 'displayTop', array('smarty' => object(Smarty_Dev_Template), 'cookie' => object(Cookie), 'cart' => object(Cart))) in Hook.php line 861
at HookCore::exec('displayTop', array('smarty' => object(Smarty_Dev_Template), 'cookie' => object(Cookie), 'cart' => object(Cart)), null) in smarty.config.inc.php line 168
at smartyHook(array('h' => 'displayTop'), object(Smarty_Dev_Template)) in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayTop'), object(Smarty_Dev_Template))) in smarty_internal_templatebase.php(157) : eval()'d code line 1690
at content_59a9826e9f3435_37769134(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php(157) : eval()'d code line 261
at content_59a9826ec38fd9_34758804(object(Smarty_Dev_Template)) in smarty_internal_templatebase.php line 188
at Smarty_Internal_TemplateBase->fetch('catalog/product.tpl', null, 'layouts/layout-full-width.tpl', object(SmartyDev), false, true, false) in SmartyDev.php line 41
at SmartyDev->fetch('catalog/product.tpl', null, 'layouts/layout-full-width.tpl') in FrontController.php line 660
at FrontControllerCore->smartyOutputContent('catalog/product.tpl') in FrontController.php line 644
at FrontControllerCore->display() in Controller.php line 225
at ControllerCore->run() in Dispatcher.php line 369
at DispatcherCore->dispatch() in index.php line 28 

for what i can understand the problem is the module Ps_Shoppingcart but if i disasble it the costumers cant check out, so i need to find a fix ASAP, thanks in advance

post-1435489-0-77458200-1504281480_thumb.png

post-1435489-0-12927400-1504281486_thumb.png

Edited by TenUnPlanB (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...