Rendering not working in cart.html

hello everyone I’m still stuck with my problem that it doesn’t display the data in cart.html (an ID problem I think) can you help me? https://jsfiddle.net/qvL46end/ in index.html everything is ok I have my data.

Thanks for your help

Well this code isnt going to work in Codepen, because you’re using
if (window.location.pathname.includes('cart.html')) {
to check if you’re on the cart page, and on codepen, the pathname wont include “cart.html”. And when you run just the render cart code… we dont have anything in the cart. So it loads nothing. Which is correct.

Thank you for your response I passed the id in the html and everything works.
Good day