lianix Posted September 28, 2016 Share Posted September 28, 2016 Good evening!I've a question regarding content pack. By default the content is showed in the product page. I need that costumers can see the content pack ordered in own order-detail.tpl. I've tried to add the code that show this in product page to order-detail too, but it doesn't work. Maybe a modify to class o controller is needed. Who can help me? Thank you! Link to comment Share on other sites More sharing options...
lianix Posted September 29, 2016 Author Share Posted September 29, 2016 (edited) Hi, If the content pack is related to product, you will have to show it based on ordered product for example by using the product id. My problem is the code needed to do this. I don't know how to do tries Edited September 29, 2016 by lianix (see edit history) Link to comment Share on other sites More sharing options...
adanex Posted November 4, 2018 Share Posted November 4, 2018 activate in product.tpl ( theme ) <!--{if $packItems|@count > 0} <div class="short_description_pack"> <h3>{l s='Pack content'}</h3> {foreach from=$packItems item=packItem} <div class="pack_content"> {$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>{$packItem.description_short}</p> </div> {/foreach} </div> {/if}--> 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