Would you consider adding another filter hook which includes the $item_loop line counter, so something like:
===
$basket = applyfilters( 'agopayomodifybasket', $basket, $order );
$basketfullstring = $item_loop . ':' . $basket;
return applyfilters( 'agopayomodifybasketfullstring', $basketfullstring , $order );
===
That way we can construct our own basket string without having to worry about our line count not matching with the $item_loop variable in the main function.
Please authenticate to join the conversation.
Feature Request
Over 1 year ago

David Bell
Get notified by email when there are changes.
Feature Request
Over 1 year ago

David Bell
Get notified by email when there are changes.