carlesps Posted September 15, 2016 Share Posted September 15, 2016 Hi fellas. I've been tinkering with the code of the product page, and I've been able to get to the block where you display the contents of the pack. What I want to do is the same, but in reverse. I explain. If I have a product which form a package, I would like to link it to his pack in the same way that the pack can be linked to it's content. The only thing that fails I do not know what parameter should I add to the function that will allow me do this. I show how I've focused: {if isset($packItems) && $packItems|@count > 0} <!-- CONTENIDO DEL PACK --> <section id="blockpack"> <h3 class="page-product-heading">{l s='Pack content'}</h3> {include file="$tpl_dir./product-list-small.tpl" products=$packItems} </section> <!-- End Pack Content --> {else} <!-- Pack --> <!-- BLOQUE DE "PACK DEL PRODUCTO"--> <section id="blockpack"> <h3 class="page-product-heading">{l s='Ahorra con el paquete'}</h3> {include file="$tpl_dir./product-list-small.tpl" products=$packItems} </section> <!-- End Pack --> {/if} I have also attached an image to give a more graphic view of the matter. I took several days looking at the code, and I've run out of ideas. I appreciate it if someone could approach me a little closer to solving this problem. Thank you very much in advance. Carles Link to comment Share on other sites More sharing options...
rocky Posted September 18, 2016 Share Posted September 18, 2016 Have you considered adding the packs as accessories of the products and then renaming "Accessories" to "Packs available" on your website? 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