Hello everyone,
I want to try customizing the shop by category page (E-commerce module), but I’m encountering a few issues as follows.
I want to only display the product price when the user has the role of ‘Customer’.
This is my code to get_detail_item:
And this is my result:
My knowledge of JavaScript is not very strong, so I’m not sure if I’ve made any coding mistakes… I would appreciate any feedback from everyone