#390 Fix attachment url after purchase and hide purchase button for admin preview mode.