Hook for Line Counter
complete
David Bell
Would you consider adding another filter hook which includes the $item_loop line counter, so something like:
===
$basket = apply_filters( 'ag_opayo_modify_basket', $basket, $order );
$basket_full_string = $item_loop . ':' . $basket;
return apply_filters( 'ag_opayo_modify_basket_full_string', $basket_full_string , $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.
Aaron Bowie
complete
Many thanks for your feature request, David.
I’m happy to let you know that we’ve now added this functionality to the plugin’s codebase.
It will be included in our next update, which will be released very soon.
David Bell
Aaron Bowie thanks so much!!
Aaron Bowie
in progress