I use Toolbelt to sum array elements using and index to the array. but this does not work with mvt:assign, because it does not parse the array index.
<mvt:item name="ry_toolbelt" param="assign|l.all_settings:totals[g.index]:quantity|l.all_settings:totals[g.index]:quantity + l.all_settings:item:quantity" />
How would I do this in straight page template language.
I've used miva_array_insert() to add items to an array, but here I need to sum elements
<mvt:item name="ry_toolbelt" param="assign|l.all_settings:totals[g.index]:quantity|l.all_settings:totals[g.index]:quantity + l.all_settings:item:quantity" />
How would I do this in straight page template language.
I've used miva_array_insert() to add items to an array, but here I need to sum elements
Comment