Documentation Ecommerce
Create and purchase a selling product
Adding a file to gallery documentation can be found here (contest-gallery.com/documentation).
1. After adding a file in backend click “Sell settings”.
![](https://www.contest-gallery.com/wp-content/uploads/2024/07/sell-settings-1024x550.png)
2. You can select between “Shipping”, “Download”, “Service” or “Upload”.
In following Example a sell of an “Upload” (charge users for upload) will be shown.
![](https://www.contest-gallery.com/wp-content/uploads/2024/07/sell-settings-upload-1-1024x597.png)
Select which gallery upload form should be used after purchase and how many uploads are allowed.
![](https://www.contest-gallery.com/wp-content/uploads/2024/07/sell-settings-upload-2-1024x628.png)
Configure text which should be displayed if all uploads were done by the user after purchase and “Save changes”.
![](https://www.contest-gallery.com/wp-content/uploads/2024/07/sell-settings-upload-3-1024x630.png)
3. Entry now configured for purchase and can be already displayed in gallery view bei using cg_gallery_ecommerce shortcode.
(cg_gallery_ecommerce shortcode is for displaying entries configured for selling).
![](https://www.contest-gallery.com/wp-content/uploads/2024/07/configured-for-selling-1024x527.png)
![](https://www.contest-gallery.com/wp-content/uploads/2024/07/for-selling-frontend.png)
4. Now PayPal configuration is required. To do so go to “Edit ecommerce” in a gallery.
![](https://www.contest-gallery.com/wp-content/uploads/2024/07/edit-ecommerce-1024x141.png)
5. Add PayPal Client ID and Secret.
Documentation how to create Client ID and Secret can be found here (contest-gallery.com/paypal-environment-documentation).
![](https://www.contest-gallery.com/wp-content/uploads/2024/07/paypal-environment-configuration-1024x873.png)
6. Place the cg_order_summary page shortcode on the page where should be forwarded after purchase and add the URL of the page also and “Save changes”.
![](https://www.contest-gallery.com/wp-content/uploads/2024/07/set-order-page-link-1024x793.png)
7. Now make a test purchase.
![](https://www.contest-gallery.com/wp-content/uploads/2024/07/make-test-purchase.png)
![](https://www.contest-gallery.com/wp-content/uploads/2024/07/make-test-purchase-2.png)
![](https://www.contest-gallery.com/wp-content/uploads/2024/07/test-purchase-paypal-sandbox-account.png)
8. You will be forwarded to configured order summary page.
(In this case an “Upload” was purchased so users will be able to upload on the order summary page)
![](https://www.contest-gallery.com/wp-content/uploads/2024/07/test-purchase-completed.png)