Properly globalize purchlogitem in wpsc_purchlogs_get_weight_text(), and grab global ID early instead of late.