Feature/390 purchase shortcode attachment fix

Purchase shortcode attachment fix.
Please add a comment, what is happening here and why