Jump to content

carlesps

Members
  • Posts

    3
  • Joined

  • Last visited

About carlesps

  • Birthday 11/22/1994

Profile Information

  • First Name
    Carles
  • Last Name
    Perez

carlesps's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. 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
  2. Buenos días chicos. He estado trasteando con el código de la página de producto, y he sido capaz de llegar al bloque dónde te muestra el contenido del paquete. Lo que yo quiero hacer es lo mismo, pero al revés. Me explico. Si tengo un producto, el cual forma un paquete, me gustaría poder linkarlo a su pack de la misma forma que el pack puede ser linkado al contenido del mismo. Lo único que me falla es que no sé qué parámetro debo pasarle a la función que me permitirá esto. Os muestro cómo lo he enfocado: {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} También os he adjuntado una imagen para darle un punto de vista más gráfico al asunto. Llevo varios días mirándome el código, y me he quedado ya sin ideas. Agradecería mucho si alguien pudiera acercarme un poco más a la solución de éste problema. Muchas gracias de antemano. Carles
  3. Buenas a todos. Mi nombre es Carles, no soy nuevo por aquí ya que me he revisado el foro bastantes veces para algunas consultas, pero todavía no me había registrado por aquí. Agradezco mucho la ayuda que me ha resultado de gran utilidad, y espero poder aportar mi granito de arena en este lugar. ¡Saludos!
×
×
  • Create New...