Developer forum

Forum » Templates » VariantCombinations loop v. 8.6.1.25 vs. 8.9.1.7

VariantCombinations loop v. 8.6.1.25 vs. 8.9.1.7

René Poulsen
René Poulsen
Reply

Hi,

I'm working with eCom and variants on a v. 8.6.1.25 solution. On that one I can use the VariantCombinations loop to get the variants of the product. Inside it I can easily get the URL for the variant by using the Ecom:VariantCombination.Link.Clean.

I've got a copy of the solution for testing-purposes that I updated to v. 8.9.1.7. On this one there is nothing inside my VariantCombinations loop, allthough it exists in the template. Now I can only access the variants of the product throug the VariantGroups loop > VariantAvailableOptions loop and in that loop I can't get the link - I have to create it myself.

How come the VariantCombinations loop is suddenly empty on 8.9.1.7?

------------------------------

EDIT: Was a little to quick on the trigger: The VariantCombinations loop isn't empty. I was just using Ecom:Product.DefaultVariantComboName inside the loop - and this doesn't seem to exists anymore.


Replies

 
Nicolai Pedersen
Reply

Hi René

I just tested on my local DW 8.9.2.2 and do not have the issue...

BR Nicolai

 
Nicolai Pedersen
Reply

Read your edit :-)

Yes, it is there - but not inside the loop. Could it be that you changed from html template to razor? There is a context difference in tags. So this tag belongs outside the loop and is only available there in Razor. You can just put it into a variable outside the loop and use it inside.

BR Nicolai

 
René Poulsen
René Poulsen
Reply

Nope, no switch from html to razor. It's razor in both v 8.6... and 8.9... But never mind - got it working now :-)

 

You must be logged in to post in the forum