Don't waste your money, the transmission cooler will do very little to nothing to cool the engine.
What are the RPMs at? usually anything over 2000 will result in excess heat poor as well as mileage. I'm almost willing to bet money on that this most likely the cause of your high engine temps..
Also if your equipped with an Allison make sure there are no hidden ABS codes as the transmission wont go into lockup this results in the transmission and engine running hot. I would also find out if the injectors are getting tired and not closing properly.
Check the fan and fan clutch for operation. Drain flush and refill the cooling system, stop by home depot and pick up a few cans of A/C condenser cleaner. on a cool engine use a garden hose to spray out the ac condenser radiator, charge air cooler, and you should have a factory transmission cooler. while wet spray the cleaner let it work for a few minutes and spray it out with a hose.
check your radiator, and A/C condenser if they are full of bugs or the fins are smashed flat this will restrict air flow. Check the A/C charge as well. If the fan is electronically engaged the A/C might cause problems.