Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<ww:iterator value="cart.items">
  <ww:hidden name="cart.items[WW:%{#rowstatus.index}].productId" value="%{productId}">
  <ww:textfield name="cart.items[WW:%{#rowstatus.index}].qty" value="%{qty}" />
  <ww:textfield name="cart.items[WW:%{#rowstatus.index}].note" value="%{note}" />
</ww:iterator>

...

Code Block
<ww:iterator value="cart.items">
  <ww:hidden name="'cart.items[WW:' + #rowstatus.index + '].productId'" value="productId">
  <ww:textfield name="'cart.items[WW:' + #rowstatus.index + '].qty'" value="qty" />
  <ww:textfield name="'cart.items[WW:' + #rowstatus.index + '].note'" value="note" />
</ww:iterator>

...

Code Block
#foreach ( $item in $cart.items )
  #set($index = $velocityCount - 1)
  <input type="hidden" name="cart.items[WW:$index].productId" value="$item.productId">
  <input type="text" name="cart.items[WW:$index].qty" value="$item.qty">
  <input type="text" name="cart.items[WW:$index].note" value="$item.note">
#end

...