Plugins

Envato Marketplace API Shortcode

Description

This plugin will create a number of WordPress shortcodes and widgets to display products and user information from any of the Envato sites by using their API.

The envato marketplaces are places you can buy digital products to use on your website. You can buy anything from coding scripts, WordPress plugins, WordPress themes, website themes, Photoshop PSDs, videos, music.

The marketplace currently consists of 7 websites each specialising in their own product types.

  • Themeforest - Website templates
  • Codecanyon - Coding scripts such as WordPress plugins
  • Videohive - Video footage
  • AudioJungle - Music
  • GraphicRiver - Flyers, resume, logos and banners
  • Photodune - Stock images
  • 3dOcean - Animations and 3D projects

Each one of these marketplaces display the products in the same way they have featured items, featured authors, new files on the homepage, popular items by categories, popular authors, each month they release free products. All of this information is available via the Envato API so we can use this to display these products onto your own website.

There are two reasons why you would want to display these products on your website, first being you're an author and sell your products on these envato marketplaces. The second reason is that you have a website and want to advertise Envato products as part of their affiliate program, where you can earn money by directing people to Envato to buy their products.

This WordPress plugin makes it very easy to display any of the products on your own website and include your affiliate information to earn money by advertising these products.

This plugin is able to display the following information:

  • Featured authors
  • Featured items
  • Free files
  • New Items
  • Popular authors
  • Popular items
  • Random new items
  • Single item
  • User/Author information

Each one of the above datasets can be displayed by using a WordPress shortcode or widget allowing you to put these information any where your site using any WordPress theme.

Installation

As this plugin isn't in the WordPress repository you need to install it manually into your site. There are two ways you can do this you can either upload the plugin from the WordPress dashboard or by using an FTP client.

Uploading in WordPress Dashboard

  • Navigate to the 'Add New' in the plugins dashboard
  • Navigate to the 'Upload' area
  • Select `envato-marketplace-api-shortcodes.zip` from your computer
  • Click 'Install Now'
  • Activate the plugin in the Plugin dashboard

Using FTP

  • Download envato-marketplace-api-shortcodes.zip
  • Extract the envato-marketplace-api-shortcodes directory to your computer
  • Upload the envato-marketplace-api-shortcodes directory to the /wp-content/plugins/ directory via FTP
  • Activate the plugin in the Plugin dashboard

Settings Page

After you install the plugin you will have a new menu item on the settings sub-menu.

envato-menu

This will take you to the settings page where you need to enter your envato API token and your affiliate token code.

API Token

envato-api

In order to make requests on the Envato API you need to create a new API token your application. To do this visit the Envato API token site.

Envato API Token

This allows you to choose what information you want your API to have access to, for this plugin you only need to check the first box "View and search Envato sites".

When you have created your API token, copy and paste it into the plugin settings page.

envato-api-settings

Affiliate Code

envato-settings-affiliate

The second tab on the settings page allows you to enter in your affiliate name on Envato website. By default every user is entered into the Envato affiliate program you just need to sign up for an account and use your username as your affiliate name.

When both those settings are added we can add the products to our site.

Shortcodes And Widgets

Each one of the following comes with a shortcode and a widget to display the information you want. Both shortcodes and widget need additional information to customise the information you want to display. They both can have the same settings but they're added in different way.

Shortcodes can be customised by attributes where widgets are customised by the settings form on the widget screen.

Featured Authors

Each week all the marketplaces will have featured authors that they display on the homepage of the site. This is normally the author that has a trending product that is selling well that week.

To display the information on the featured author you can use either the shortcode or the widget below.

Shortcode

envato_featured_authors

Shortcode attributes:

  • site - Which marketplace you want to use (Codecanyon / Themeforest / Videohive / AudioJungle / GraphicRiver / Photodune / 3dOcean)
  • show-title - If to display title of the items (yes / no)
  • cache - Cache the results on the API (yes / no)

Widget

envato-featured-author

Featured Items

Each week the Envato team hand pick up to 10 items that they want to feature on the site, these featured items appear on the homepage of the different marketplaces.

To display the information on the featured items you can use either the shortcode or the widget below.

Shortcode

envato_featured_items

Shortcode attributes:

  • site - Which marketplace you want to use (Codecanyon / Themeforest / Videohive / AudioJungle / GraphicRiver / Photodune / 3dOcean)
  • buy-now-text - Text used on the buy now buttons
  • show-title - If to display title of the items (yes / no)
  • show-thumbnail - If to display the product thumbnail (yes / no)
  • show-preview-image - If to display the preview image (yes / no)
  • show-item-title - If to display the item title (yes / no)
  • show-rating - If to show the item rating (yes / no)
  • show-total-sales - If to show total sales (yes / no)
  • show-cost - If to show item cost (yes / no)
  • cache - Cache the results on the API (yes / no)

Widget

envato-featured-items

Free Files

Each month all the marketplaces pick one of the items to give away for free for the members of Envato. Using this shortcode you're able to get the information for this free file per marketplace to show your visitors.

Shortcode

envato_free_files

Shortcode attributes:

  • site - Which marketplace you want to use (Codecanyon / Themeforest / Videohive / AudioJungle / GraphicRiver / Photodune / 3dOcean)
  • free-text - Text used on the free buttons
  • show-title - If to display title of the items (yes / no)
  • show-thumbnail - If to display the product thumbnail (yes / no)
  • show-preview-image - If to display the preview image (yes / no)
  • show-item-title - If to display the item title (yes / no)
  • show-rating - If to show the item rating (yes / no)
  • show-total-sales - If to show total sales (yes / no)
  • show-cost - If to show item cost (yes / no)
  • cache - Cache the results on the API (yes / no)

Widget

envato-free-files

New Items

Each week the marketplaces will give you a list of some of the best new items that have appeared on the marketplace use the shortcode or widget to display a list of these new items.

Shortcode

envato_new_items

Shortcode attributes:

  • site - Which marketplace you want to use (Codecanyon / Themeforest / Videohive / AudioJungle / GraphicRiver / Photodune / 3dOcean)
  • category - Define the category of the marketplace
  • buy-now-text - Text used on the buy now buttons
  • show-title - If to display title of the items (yes / no)
  • show-thumbnail - If to display the product thumbnail (yes / no)
  • show-preview-image - If to display the preview image (yes / no)
  • show-item-title - If to display the item title (yes / no)
  • show-rating - If to show the item rating (yes / no)
  • show-total-sales - If to show total sales (yes / no)
  • show-cost - If to show item cost (yes / no)
  • cache - Cache the results on the API (yes / no)

Widget

envato-new-items

Popular Authors

Get a list of the most popular authors on the market by the amount of items that have sold.

Shortcode

envato_popular_authors

Shortcode attributes:

  • site - Which marketplace you want to use (Codecanyon / Themeforest / Videohive / AudioJungle / GraphicRiver / Photodune / 3dOcean)
  • show-title - If to display title of the items (yes / no)
  • cache - Cache the results on the API (yes / no)

Widget

envato-popular-authors

Popular Items

Get the list of the most popular items on the marketplace.

Shortcode

envato_popular_items

Shortcode attributes:

  • site - Which marketplace you want to use (Codecanyon / Themeforest / Videohive / AudioJungle / GraphicRiver / Photodune / 3dOcean)
  • period - Get items from a period of (items_last_week / items_last_three_months)
  • amount - Amount of items to get
  • buy-now-text - Text used on the buy now buttons
  • show-title - If to display title of the items (yes / no)
  • show-thumbnail - If to display the product thumbnail (yes / no)
  • show-preview-image - If to display the preview image (yes / no)
  • show-item-title - If to display the item title (yes / no)
  • show-rating - If to show the item rating (yes / no)
  • show-total-sales - If to show total sales (yes / no)
  • show-cost - If to show item cost (yes / no)
  • cache - Cache the results on the API (yes / no)

Widget

envato-popular-items

Random New Items

Shows a random list of newly uploaded files from a particular site.

Shortcode

envato_random_new_items

Shortcode attributes:

  • site - Which marketplace you want to use (Codecanyon / Themeforest / Videohive / AudioJungle / GraphicRiver / Photodune / 3dOcean)
  • amount - Amount of items to get
  • buy-now-text - Text used on the buy now buttons
  • show-title - If to display title of the items (yes / no)
  • show-thumbnail - If to display the product thumbnail (yes / no)
  • show-preview-image - If to display the preview image (yes / no)
  • show-item-title - If to display the item title (yes / no)
  • show-total-sales - If to show total sales (yes / no)
  • show-cost - If to show item cost (yes / no)

Widget

envato-random-items

Single Item

Display a single item using a shortcode or a widget.

Shortcode

envato_single_item

Shortcode attributes:

  • id - Envato marketplace item ID
  • buy-now-text - Text used on the buy now buttons
  • show-title - If to display title of the items (yes / no)
  • show-thumbnail - If to display the product thumbnail (yes / no)
  • show-preview-image - If to display the preview image (yes / no)
  • show-rating - If to show the item rating (yes / no)
  • show-description - If to show description of item (yes / no)

Widget

envato-single-item

User

Display the information for a certain user.

Shortcode

envato_user

Shortcode attributes:

  • username - Envato marketplace username
  • show-username - If to display the username (yes / no)
  • show-thumbnail - If to display the user thumbnail (yes / no)
  • show-country - If to display the country of the user (yes / no)
  • show-sales - If to show the total sales (yes / no)
  • show-followers - If to show followers of item (yes / no)

Widget

envato-user

Back to top