The “ims_cart_image_list_row” filter is used to add html to each row in the image (order) list in the shopping page.

A plugin (or theme) can modify the output with the code:

<?php add_filter( 'ims_cart_image_list_row', 'filter_function_name'); ?>

The hook is located in the image-store/_inc/cart.php file.


// Apply filter
function add_ims_cart_image_list_row( $output, $image_id, $item, $color, $enc, $row, $title, $size ) {
	return $output . '<div>'.__(aditional row).'</div>'; 
add_filter('ims_cart_image_list_row', 'add_ims_cart_image_list_row');

Note:  $output is a HTML string, $image_id is an integer, $color is a string, $enc is an sting (encoded $image_id), $row is an integer, $title is a string, $size is an string.

Leave a Reply

Your email address will not be published. Required fields are marked *