Odoo Help

0

website_sale.cart_lines shows empty cart

By
Axel Kerbec
on 9/22/16, 7:30 AM 395 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?

1

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 ? 

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

Asked: 9/22/16, 7:30 AM
Seen: 395 times
Last updated: 9/22/16, 8:15 AM