Blawdi Posted February 22, 2023 Share Posted February 22, 2023 Hello, On Prestashop 1.7.8 i need to view Feature specifique in BO order In order I think I found the pages to modify, but I have no idea what variable to use? If you could help me? that would be great! Link to comment Share on other sites More sharing options...
Blawdi Posted February 23, 2023 Author Share Posted February 23, 2023 Hello again! I am looking for a line to display only the value of a specific characteristic in product.html.twig . Would you have any ideas? it's not easy something in this style {if $feature.id_feature == ID OF FEATURE HERE} but compatible with 1.7.8 and in the product.html.twig Link to comment Share on other sites More sharing options...
ventura Posted February 23, 2023 Share Posted February 23, 2023 It would be best to do this by adding a module that overwrites the twig file, eg /modules/new_module/views/PrestaShop/Admin/Sell/Order/Order/Blocks/View/product.html.twig You can access the product features data at Product::getFrontFeaturesStatic($id_lang, $id_product) or Product::getFeaturesStatic(($id_product); 1 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now