PsychoZzzorD Posted August 23, 2016 Share Posted August 23, 2016 Hi everybody,Like I wrote in the title, I need to know if you can display the pack content instead of just the name of the pack in the cart. Link to comment Share on other sites More sharing options...
PsychoZzzorD Posted October 14, 2016 Author Share Posted October 14, 2016 Up !I'm still searching how I can display each product in the pack instead of the pack itself in the cart. Do somebody know how I can do this ? Link to comment Share on other sites More sharing options...
ventura Posted October 15, 2016 Share Posted October 15, 2016 Something like that? 1 Link to comment Share on other sites More sharing options...
PsychoZzzorD Posted October 19, 2016 Author Share Posted October 19, 2016 (edited) Hi Ventura, thank for your support.It's already a start yes. How do you set this in place ? Edited October 19, 2016 by PsychoZzzorD (see edit history) Link to comment Share on other sites More sharing options...
ventura Posted October 19, 2016 Share Posted October 19, 2016 For something more elaborate like this Add in the file themes\Your_Theme\shopping-cart-product-line.tpl above this part </td> {if $PS_STOCK_MANAGEMENT} <td class="cart_avail"> .... this code {if Pack::isPack($product.id_product)}{assign var=packItems value=Pack::getItemTable($product.id_product, Context::getContext()->language->id)} {if $packItems|@count > 0} <div style="margin-top:20px"> <hr> {foreach from=$packItems item=packItem} <p style="font-size:11px;"> <a href="{$link->getProductLink($packItem.id_product, $packItem.link_rewrite, $packItem.category)|escape:'html':'UTF-8'}"> <img style=" border: 1px solid #d6d4d4; margin-right: 10px; margin-left: 10px;" src="{$link->getImageLink($packItem.link_rewrite, $packItem.id_image, 'cart_default')|escape:'html':'UTF-8'}" alt="{$packItem.name|escape:'html':'UTF-8'}" width="50" height="50"/></a> {$packItem.pack_quantity} x <a href="{$link->getProductLink($packItem.id_product, $packItem.link_rewrite, $packItem.category)|escape:'html':'UTF-8'}">{$packItem.name|escape:'html':'UTF-8'}</a></p> {/foreach} </div> {/if} {/if} 1 1 Link to comment Share on other sites More sharing options...
PsychoZzzorD Posted October 19, 2016 Author Share Posted October 19, 2016 Man, I love you, finally someone with a real solution to this. Thanks a lot, now I can do what I need <3 Link to comment Share on other sites More sharing options...
ventura Posted October 19, 2016 Share Posted October 19, 2016 You're welcome. I'm glad it helped Link to comment Share on other sites More sharing options...
PsychoZzzorD Posted October 19, 2016 Author Share Posted October 19, 2016 It's more like rescue than help ^^I had really no idea how to do this Link to comment Share on other sites More sharing options...
Chris Posted January 24, 2019 Share Posted January 24, 2019 Hi Ventura! Please, can you help me implement this to Prestashop 1.5.6.2? Best, Chris. 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