fornoone Posted March 5, 2013 Share Posted March 5, 2013 Hi!! I'm trying to display a product feature within the blockcart module with no success... I've already get it working in product listings and product page with this code: {foreach from=$product.features item=feature name=features} {if isset($feature.value)} {if ($feature.name|escape:'htmlall':'UTF-8'=='feature_name')} <p class="fabricante"><strong>{$feature.value|escape:'htmlall':'UTF-8'}</strong></p> {/if} {/if} {/foreach} If i write the same code in blockcart... doesn't work... Do I have to declare something new in blockcart.php? In that case, can anyone help, please? Thanks to all... Link to comment Share on other sites More sharing options...
Vince at RockPOS.com Posted March 6, 2013 Share Posted March 6, 2013 $product in blockcart haven't attribute "features", so you need edit or write new a query to get features and append to $products array $products in blockcart.php Link to comment Share on other sites More sharing options...
fornoone Posted March 6, 2013 Author Share Posted March 6, 2013 Thanks a lot!! I suposed tha was the key.... but how can I write that new query? I'm quite new at prestashop.... Link to comment Share on other sites More sharing options...
Vince at RockPOS.com Posted March 6, 2013 Share Posted March 6, 2013 You can see it on module "homefeatured", this module have query get all feature product. 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