Hi,
thank you so much for helping. Unfortunately I can’t get it to work, even the first code without PHP does not display a useable accordion – headline and content are displayed at the sae time, and you cannot close or open it. Maybe Woocommerce does not allow it?
The thing I a trying to achieve is to have the accordion title “description” underneath each product in the checkout order table, and when you click on it the accordion should open and the product description and image should be displayed(by default, Woocommerce does not display anything besides the product name in the checkout table).
My knowledge in PHP is limited but I am really desperate in getting this to work…