Give your users the accessibility and feasibility to access their images stored on Dropbox. With simple easy steps, integrate Dropbox images into your OnPrintShop web store. After Dropbox Images integration your customers will be able to access all their images uploaded by them on Dropbox and use them in the designer studio.
Note: The Dropbox Images feature works only for the SSL verified websites. If your website does not hold an SSL Certificate, then it is recommended to get the SSL certification.
Visit the Dropbox site and create a new Dropbox account or sign up with your existing Google account:
To create a new app on the DBX Platform, visit the Dropbox App Console:
- On the App Console page, click on the Create app button.
On the Create a new app page, fill in the basic app details:
- In the Choose an API section, select the Scoped Access.
- Under the section Choose the type of access you need i.e. Full Dropbox as it gives access to all files and folders in a user's Dropbox.
- Name your App and click on Create App button.
This will create a DROPBOX API with access to full dropbox.
Once you have created the app, the next screen will generate the App key and App secret:
- Copy and save the App key and App secret at a secure location.
- In the OAuth 2 Redirect URIs, enter your URL in the following format - https://<yourdomain.com>/Services/images.php?dropbox=1
- To generate the access token, click on the Generate Access Token button.
Note: This access token can be used to access your account registered account via the API. Do not share your access token with anyone.
To configure the Dropbox API in the Admin panel, go to the Admin >> Store Configuration >> External Service Settings >> Social Sharing >> Click 'Edit' in the Action menu for 'Dropbox Images’:
- Enter the App key and App secret key you saved in Step-3.
To enable the Dropbox upload button on Designer Studio, go to Designer Studio >> Studio Settings >> Studio Settings tab >> Search for Dropbox:
- Under the Image Section tab, enable the ‘Dropbox Button - Enable (Default: OFF)'.
- Click on Save.
When your customers land on Designer studio and choose to upload an image from Image Gallery, they will see a Dropbox button:
- This means customers can upload images in the designer studio from their Dropbox account.
- All they have to do is connect to a Dropbox account.
- Once the customer clicks on connect, he will be redirected to login into his Dropbox account.
- After login, your customer gets full access to his Dropbox account and all its folders as shown in the below example: