Can't get the lube links to work correctly. I've added the code you provided, and updated it to work with the recordset, but nothing has changed. I've moved the snippet around, but no difference.
Not sure if it makes a difference, but the template code is mixed inside other php code on the product type page.
File attached.