Description
The “ims_cart_item_hidden_fields” filter is used to add additional hidden fields for each item in the shopping cart.
A plugin (or theme) can modify the output with the code:
<?php add_filter( 'ims_cart_item_hidden_fields', 'filter_function_name'); ?>
The hook is located in the image-store/_inc/cart.php file.
Example
// Apply filter function add_ims_cart_item_hidden_fields( $output, $image_id, $item, $color, $enc, $row, $title, $size ) { return $output . '<input name="site" id="site" value="sitename" type="hidden" />'; } add_filter('ims_cart_item_hidden_fields', 'add_ims_cart_item_hidden_fields');
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