We need a way to attach documents that are specific to a company to that company in Shopify B2B. Contracts and other documents are critical to our business.
Hi Tara,
The easiest way to do this is by adding a custom metafield on companies or company locations.
- In the admin, go to Settings
- Select “Custom data” - you’ll see a list of resources that can be metafields can be added to
- Scroll down to either “Companies” (if you want to store the docs at the company level) or “Company locations” (to store per location)
- Select “Companies” (or company locations)
- Press the “Add definition” button
- Fill in a name for the metafield such as “contract documents”
- Optionally enter in a “Description”
- Press “Select type”
- Scroll down until you see “File” under Reference types
- You will return to the metafield definition screen
- You can then select either “One file” or “List of files” - if you want to attach more than one document per company, use “List of files”
- Scroll further to “Validations”
- Select “Accept all file types” if you want to upload more than just images or vides (such as PDFs or others)
- If you don’t plan to make the new metafield available on Storefronts (buyer side), then uncheck the button next to “Read” in “Access” options
- Press “Save” and now if you return to Company (or company location) you’ll see the new metafield available and can use it to attach documents
I hope that helps!
Hi TaraRCH,
You can attach documents using Company or Company Location metafields using metafields type ‘file’.
Thank you… I feel like a goober, I use metafields for products and for some reason didn’t think about doing that with companies. ![]()