My first php function: shipping costs on the product page

ok it took a day to work out but Ive managed to write a function to put the shipping costs on the product page. My first php function...and a steep learning curve.

It takes its data from the table weight shipping plugin, based on the products weight, and currency symbol from $mp->format_currency()