anchor.diff:  				flick(src.icon_deny,src)
   				return
   
  -			var/datum/data/vending_product/R = locate(href_list["vend"])
  +			var/idx=text2num(href_list["vend"])
  +			var/cat=text2num(href_list["cat"])
  +
  +			var/datum/data/vending_product/R = GetProductByID(idx,cat)
   			if (!R || !istype(R) || !R.product_path || R.amount <= 0)
   				return
   
  
positive.code: 		dat += "<font color = 'red'>No product loaded!</font>"
  	else
  		var/list/display_records = src.product_records
  		if(src.extended_inventory)
  			display_records = src.product_records + src.hidden_records
  		if(src.coin)
  			display_records = src.product_records + src.coin_records
  		if(src.coin && src.extended_inventory)
  			display_records = src.product_records + src.hidden_records + src.coin_records
  
  		for (var/datum/data/vending_product/R in display_records)
  
  
negative.code: 	var/max_amount = 0
  	var/price = 0
  	var/display_color = "blue"
  	var/category = CAT_NORMAL
  
  
  /obj/machinery/vending
  