Developer forum

Forum » Ecommerce - Standard features » Product loop from product group loop

Product loop from product group loop

Rune Skovbo
Reply

Hi people

 

Hope you can help me with this.

 

I need to make a design that looks like this:

Product Group --- Product subgroup --- Subgroup + Products

And this on 1 page with horizontal scrolling.

 

All is working fine until i need to output the products.

Im using 3 eCom modules to output the different groups in the 3 divisions. So what I need is the last module to output something like this:

 

<!--@LoopStart(Groups)-->
    <h1><!--@Ecom:Group.Name--></h1>

    <!--@LoopStart(Products)-->
        <h2><!--@Ecom:Product.Name--></h2>
    <!--@LoopEnd(Products)-->
    
<!--@LoopEnd(Groups)-->

However the product loop doesn't seem to be available from the groups loop.

How can I achieve this?

 

Hope you can help.

 

/Rune

 


Replies

 
Marco Johannesen
Reply

Hmmm...

I dont think you output it like that, since you chose on the module if you want products or groups...

But how many groups do you have?

You could do it by adding a paragraph for each subgroup with the output set to products.

But this is ofcourse not a good soloution if you got hundreds of products and subgroups.

 
Rune Skovbo
Reply

Exactly! What I need is to output both groups AND their products - in one output, which I can't seem to be able to.

I would think it "logical" to be able to use the product loop within a product group loop (or subgroup) since we have that information. The groups know what products they contain. Right?

 

Im guessing I have around 50 subgroups - each with around 5 products.

 

/Rune

 

 

 
Morten Snedker
Reply
This post has been marked as an answer

Unfortunately that is a no-can-do. I grant that it would be intuitive to have the possibility to do what you're trying to do, so I have created a feature request for that functionality. 

 

But currently it is not possible through standard.

 

 

Regards /Snedker

Votes for this answer: 1
 
Rune Skovbo
Reply

Too bad - guess it's back to the drawing board then.

 

Thanks for making it a feature request though.

 

Regards

/Rune

 

You must be logged in to post in the forum