foreach loop
-
Hello, I have this kind of XML file:
<products>
<crosssales>
<crosssale>11996</crosssale>
<crosssale>54020</crosssale>
</crosssales>
</products>and I want to loop the crosssale value in order to add them comma separeted to the specific WC field “Cross-Sells“. According to your doc and if I am not mistaken I have this code:
[FOREACH({crosssales/crosssale})]{.}[SEPARATOR,][ENDFOREACH]
But cross-sells products does not inserted at all. The values inside XML file is “SKU“s values.. Any help on that or ideas, please?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.