I thought I showed you how to replace variables to be Mys v1.3.1 compatible here:
http://www.mysidiaadoptables.com/for...2&postcount=65
Please give a try and see how far you can go. If you are still struggling to get this right, just post the adoptshop class file and I will show it to you.