You could add a new field and the necessary controls in the Admin so that this new field could be the flag, something like:
products_is_media
And then that could be tested for using the function in the shopping_cart class for:
Code:
/**
* Method to calculate the number of items in a cart based on an abitrary property
*
* $check_what is the fieldname example: 'products_is_free'
* $check_value is the value being tested for - default is 1
* Syntax: $_SESSION['cart']->in_cart_check('product_is_free','1');
*
* @param string product field to check
* @param mixed value to check for
* @return integer number of items matching restraint
*/
function in_cart_check($check_what, $check_value='1') {
then if the quantity of products_is_media is the same as the total items in the cart, then show the Media type in the shipping module and if it does not match disable it in the quote ...
Bookmarks