Jump to content

PrestaShop 1.7.8.5 - The product does not appear in the shopping cart.


User12345678

Recommended Posts

Hello,

After clicking buy, the product does not appear in the shopping cart.

I use Standart installed theme and shopping cart.

 

I tried to disable / uninstall / install the module, clear the cache, change browsers. Does not work.

 

Before the problem occurred: Features and value were created. Also assigned to products and a filter created by features.

Maybe somewhere the code needs to be changed?

Ekrano nuotrauka 2022-04-03 205258.png

When MySQL opens, it shows the items in the cart.

Now run debug mode on shopping cart:

https://www.xxxxx.xxx/en/module/ps_shoppingcart/ajax?action=add-to-cart

And get this:

Whoops, looks like something went wrong.

(1/1) ContextErrorException

Notice: Trying to access array offset on value of type null

in 0de54a7df2ce9f325675562cb8b6164899785ff9_2.module.psshoppingcartmodal.tpl.php line 40

at content_6251c7b6e6fdf8_09239384()in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode()in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render()in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_templatebase.php line 232

at Smarty_Internal_TemplateBase->_execute()in smarty_internal_templatebase.php line 116

at Smarty_Internal_TemplateBase->fetch()in SmartyDevTemplate.php line 40

at SmartyDevTemplateCore->fetch()in Module.php line 2490

at ModuleCore->fetch()in ps_shoppingcart.php line 148

at Ps_Shoppingcart->renderModal()in ajax.php line 43

at Ps_ShoppingcartAjaxModuleFrontController->initContent()in Controller.php line 306

at ControllerCore->run()in Dispatcher.php line 518

at DispatcherCore->dispatch()in index.php line 28

 

Any ideas?

 

 

I tried disabling geolocation, deleting the var folder, disabling the friendly url ....

Edited by User12345678
update (see edit history)
  • Like 1
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...