Hi,
I'm trying to sort subproducts as they are being brought in through the subproducts loop by a field value. Basically I have a black product and a white product and I'm trying to do something like this:
[-- VAR.black "Black" --]
[-- VAR.white "White" --]
[--LOOP SUBPRODUCTS --]
[-- IF VAR.black PRODUCT.Field4 --]
<div class="rightColumn">
[--SUBPRODUCTS--]
</div>
[-- END_IF --]
[--END_LOOP SUBPRODUCTS--]
[--LOOP SUBPRODUCTS --]
[-- IF VAR.white PRODUCT.Field4 --]
<div class="leftColumn">
[--SUBPRODUCTS--]
</div>
[-- END_IF --]
[--END_LOOP SUBPRODUCTS--]
This is just a general idea of what I'm trying to do (sort black colors to the right column and white colors to the left column). I think the problem I'm running into is that PRODUCT.Field4 in the IF statement is referring to the actual product and not its child subproduct, but as far as I know SUBPRODUCT.Field4 will not be recognized. Any suggestions? Am I being clear? It seems like a simple task, but I've been going at it for a few hours now (this is my first ShopSite template in my defense).