This question has been flagged
1 Reply
3603 Views

Hello, I would like to show the cart on the shop page of the odoo e-commerce module, however when I call 

<t t-call="website_sale.cart_lines"/>

All it does is tell me that my cart is empty, even though it is not. Going on the "cart" page is fine, and it shows me the items in my cart. Why isn't my t-call working as expected?

Avatar
Discard
Best Answer

You need to set "website_sale_order"



<t t-call="website_sale.cart_lines">
    <t t-set="website_sale_order" t-value="website.sale_get_order()"/>
</t>


That fixes your issue ? 

Avatar
Discard