HeineFR Posted July 16, 2019 Share Posted July 16, 2019 (edited) Hi, I've got a big problem. I'm making my AMP pages and i simply want to add the features on it. I found in "\themes\*****\templates\catalog\_partials\product-details.tpl" : {if isset($product.grouped_features) && $product.grouped_features} But in my tpl file this var seem to be not assigned, i have to assign it in my php file. Then, i grep on my server the word 'grouped_features' to find where and how it's assigned but it only return me my tpl files (the new one where i try and product-details.tpl) and smarty compiled files. I'm not able to find where this var is assigned can i have some help please? PS 1.7.5.1 Edited July 16, 2019 by HeineFR (see edit history) Link to comment Share on other sites More sharing options...
Klemart3D Posted December 24, 2019 Share Posted December 24, 2019 (edited) The "grouped_features" variable is generated dynamically in the getGroupedFeatures() method of the ProductLazyArray class:https://github.com/PrestaShop/PrestaShop/blob/1.7.5.x/src/Adapter/Presenter/Product/ProductLazyArray.php#L353 Edited December 24, 2019 by Klemart3D (see edit history) 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