Image Mandatory

Hi,

How can i check that users attached an image to products when they add them and make that mandatory?

I tried using update_product_pre hook but it does not store images?

Thank you!

Hello

Try using hook "update_image".

Best regards

Robert

Thank you for the reply?

Could you point me in the right direction?

  1. function fn_module_update_image($image_data, $image_id = 0, $image_type = 'product', $lang_code = CART_LANGUAGE, $is_clone = false) {
    if (empty($image_id)) {
    fn_set_notification('E', __('error'), __('please_add_image_for_creating_product'));
    }
    }

Thanks!