Jump to content

Can I link a product to his pack on the product page?


carlesps

Recommended Posts

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

 

post-1293681-0-15306900-1473935138_thumb.png

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...