added wpsc_purchaselog_details_id()  as paramter to action at the suggest of @justinsainton