This issue has been migrated from the Forge. Read the original ticket here.
What's the correct way to call this module with widget on the cart page?
I have tried:
{widget name='ps_crossselling' hook='displayShoppingCart' cart=$cart}
Do I call it wrongly or there is some bug, because the cart page聽returns 500 error?
Install ps_crossselling module.
Add widget code to the cart template.
Have at least two purchased items in the shop.
Add one of them to the cart.
500 error displayed
This comment has been migrated from the Forge. Read the original comment here.
Hi Mens,
I manage to reproduce the issue with the last version 1.7.3.2.
We will see how to fix it.
Best regards, Khouloud
This comment has been migrated from the Forge. Read the original comment here.
I have fixed it with method changes:

But as it is private method I cant do a proper override in override folder and needed to edit the module itself.
This comment has been migrated from the Forge. Read the original comment here.
Hi Mens,
Would you be willing to make a pull request on GitHub with your code suggestion?
https://github.com/PrestaShop/crossselling
Thank you!
Best regards, Khouloud
This comment has been migrated from the Forge. Read the original comment here.
Hello Khouloud BELGUITH
Can you please describe the steps to reproduce this issue ?
Thanks
This comment has been migrated from the Forge. Read the original comment here.
Hi Marion F,
Steps to reproduce the issue:
1- Install the ps_crossselling module
2- Add the widget code
{widget name='ps_crossselling' hook='displayShoppingCart' cart=$cart} to the cart template.
In the file /PROJECT-FOLDER/themes/classic/templates/checkout/cart.tpl , you need to add this line
{widget name='ps_crossselling' hook='displayShoppingCart' cart=$cart}
3- Navigate to the FO
4- Add a product to the cart
Best regards, Khouloud
Hello @khouloudbelguith, what do you think of this issue ? Is there anything to do here ?
Hi @colinegin,
I have the same issue with PS1.7.6.2 & the ps_crossselling v2.0.0.

I think it a module issue.
Thanks!
Hi,
We made a pull request for that : https://github.com/PrestaShop/ps_crossselling/pull/7
Best regards,
Fixed by PrestaShop/ps_crossselling#7
Most helpful comment
Hi,
We made a pull request for that : https://github.com/PrestaShop/ps_crossselling/pull/7
Best regards,