TiMa123 Posted May 3, 2011 Share Posted May 3, 2011 Hi!I need to show a specific product feature on the shopping cart pages. I know this is possible, and this is the code I'm using for it:On the top of shopping-cart-product-line.tpl file: {foreach from=$product.features item=feature} {if $feature.name == 'FeatureX'} {foreach from=$feature.value item=part name=featurex} {assign var='featurex' value=$part} {/foreach} {/if} {/foreach} And to call it simply, I use this on the same page: {$featurex} The same code works on other pages (product page, home featured block etc.; but doesn't seem to work on the shopping cart.)I'm using One Page Checkout & PS Version 1.4.1Any help is really appreciated.Thanks,B Link to comment Share on other sites More sharing options...
TiMa123 Posted May 3, 2011 Author Share Posted May 3, 2011 Any updates? Link to comment Share on other sites More sharing options...
TiMa123 Posted May 4, 2011 Author Share Posted May 4, 2011 Anyone? Link to comment Share on other sites More sharing options...
rocky Posted May 11, 2011 Share Posted May 11, 2011 Looking at the getProducts() function in classes/Cart.php, it seems PrestaShop doesn't include features in the cart products. You will need to create override/classes/Cart.php to override that function and change the query to include features. Link to comment Share on other sites More sharing options...
TiMa123 Posted May 11, 2011 Author Share Posted May 11, 2011 Ah Adrian, this problem was solved. We made a few additions to the classes, and it worked. Thanks anyways. Link to comment Share on other sites More sharing options...
dangee Posted June 21, 2011 Share Posted June 21, 2011 Hey,Could you please post here how you did it ?Thx 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