Title: Video Sales for Woocommerce with Vimeo
Author: Vincent
Published: <strong>18. měrca 2020</strong>
Last modified: 26. julija 2020

---

Tykače pytać

![](https://ps.w.org/wc-vimeo/assets/banner-772x250.jpg?rev=2263464)

Tutón tykač **njeje so z najnowšimi 3 hłownymi wersijemi WordPress testował**. Snano
so hižo njewothladuje abo njepodpěruje a ma problemy z kompatibelnosću, hdyž so 
z nowšimi wersijemi WordPress wužiwa.

![](https://ps.w.org/wc-vimeo/assets/icon.svg?rev=2612756)

# Video Sales for Woocommerce with Vimeo

 Wot [Vincent](https://profiles.wordpress.org/vincentastolfi/)

[Sćahnyć](https://downloads.wordpress.org/plugin/wc-vimeo.0.0.3.zip)

 * [Podrobnosće](https://hsb.wordpress.org/plugins/wc-vimeo/#description)
 * [Pohódnoćenja](https://hsb.wordpress.org/plugins/wc-vimeo/#reviews)
 *  [Instalacija](https://hsb.wordpress.org/plugins/wc-vimeo/#installation)
 * [Wuwiće](https://hsb.wordpress.org/plugins/wc-vimeo/#developers)

 [Podpěra](https://wordpress.org/support/plugin/wc-vimeo/)

## Wopisanje

This plugin & its author are in no way affiliated with Vimeo or WooCommerce; this
is an open source project to link the two.

With Video Sales for Woocommerce with Vimeo, selling access to your Vimeo videos
via WooCommerce has never been easier. Vimeo allows you to password protect your
videos, and we can utilize this feature to allow us to sell premium access to those
password protected videos!

You can easily connect your Vimeo account to your WooCommerce site using Vimeo’s
free API. Once you’ve configured the plugin, you will be able to select videos from
your Vimeo library when creating your products.

Once your products have been associated with their respective videos, you can edit
your WooCommerce email notifications & thank you messages in your theme and include
the meta data of your video in payment confirmations to your users (examples of 
meta data would be
 the video’s Name, Link, Password for access, etc).

## Fota wobrazowki

 * [[
 * Configurations page at https://your-site.com/wp-admin/admin.php?page=wc-settings&
   tab=vimeo & config for Vimeo API
 * [[
 * Cache & Cron options with manual triggers at https://your-site.com/wp-admin/admin.
   php?page=wc-settings&tab=vimeo
 * [[
 * Upload a video to Vimeo
 * [[
 * Set Privacy Options for video & password protect it
 * [[
 * Set Password for your video
 * [[
 * Edit video settings after saving
 * [[
 * Manage Privacy settings/password of a video after it’s been uploaded
 * [[
 * Select Vimeo video when adding/editing a WooCommerce Product

## Instalacija

 1. This plugin requires WooCommerce to work. Ensure you have WooCommerce installed.
 2. Upload the plugin files to the `/wp-content/plugins/woocommerce-vimeo` directory,
    or install the plugin through the WordPress plugins screen directly.
 3. Activate the plugin through the ‚Plugins‘ screen in WordPress
 4. Go to WooCommerce->Settings->Vimeo screen to configure the plugin

## HSP

### How do I get Vimeo API credentials for the plugin configuration page?

 * Go to [https://developer.vimeo.com/apps/new](https://developer.vimeo.com/apps/new)(
   Log in or create in account if you don’t have one already)
 * Select a name and description for your app; these are arbitrary, but you can 
   set something like „Vimeo Woocommerce“ if you’d like
 * For the „Will people besides you be able to access your app?“ option, select „
   No“
 * If you agree to the terms of service, check the box and click „Create App“
 * You will be taken to your Vimeo App’s config page
 * The Client Identifier and Client Secret are already generated, but we need to
   generate an Access Token
 * Scroll to the „Authentication“ section
 * Under „Generate an access token“ select the radio button that says „Authenticted(
   You)“
 * Some checkboxes should appear to select „Scopes“. Check only the „Public“ & „
   Private“ Scopes
 * Click the gray „Generate“ button just below the checkboxes
 * Immediately copy that token you generated into your configuration options; it
   will not be accessible once you reload this page
 * Also copy your Client Secret and Client Identifier into the Video Sales for Woocommerce
   with Vimeo plugin options at [https://your-site.com/wp-admin/admin.php?page=wc-settings&tab=vimeo](https://your-site.com/wp-admin/admin.php?page=wc-settings&tab=vimeo)(
   see screenshot 1)
 * Save — you’re good to go!

### What meta data is available on Products that have Vimeo Videos selected?

Products with Vimeo videos selected have a lot of extra meta data associated with
the Vimeo video stored on them. You can access this data in your email templates,
as it is stored as custom fields on the Product. The names of the custom fields 
are:

 * `wc_vimeo_id`: The ID of the Vimeo video; the ID in the Vimeo URL https://vimeo.
   com/**18293829**
 * `wc_vimeo_password`: The password needed to access the video (will only be set
   if video is password protected at Vimeo)
 * `wc_vimeo_link`: The link to the Vimeo video (this is a full link [https://vimeo.com/18293829](https://vimeo.com/18293829))
 * `wc_vimeo_name`: The name, or title of the Vimeo video
 * `wc_vimeo_uri`: The uri of the Vimeo video (this is the link without the leading
   domain, e.g. /18293829)
 * `wc_vimeo_description`: The description of the video, if set
 * `wc_vimeo_duration`: The duration of the video, in seconds
 * `wc_vimeo_status`: The status of the video, if it is available to be viewed

### How can I use this meta data / make it available to my customers once they’ve purchased my Products?

This plugin works by setting meta data from the Vimeo video on the Product when 
you select a video. There are many ways to deliver this meta data to your users 
on purchase of a product.

One way is to create an email template in your theme. See the sample gist here: 
[https://gist.github.com/vastolf/42cc9359d6b616675d70659e6de6f7a4](https://gist.github.com/vastolf/42cc9359d6b616675d70659e6de6f7a4)

Copy the content of the gist. In your theme (or child theme’s) folder create a file
at `/woocommerce/emails/customer-completed-order.php` and copy the contents of the
gist into that file. So the full directory would be `/wp-content/themes/{your theme
or child theme}/woocommerce/emails/customer-completed-order.php`

This gist gives some examples of how to access the Video data in your confirmation
email, but you could do something similar in the processing email or other confirmation
emails. You can edit this file and reformat it to suit your styling tastes.

For more information about custom WooCommerce emails, see the section called „Creating
Custom Templates with Code“ at [https://woocommerce.com/posts/how-to-customize-emails-in-woocommerce/](https://woocommerce.com/posts/how-to-customize-emails-in-woocommerce/)

### I just uploaded a video to Vimeo, but it’s not showing up in the list of Vimeo videos when I create a product

This is likely due to caching. Video Sales for Woocommerce with Vimeo uses WordPress
transients, a way of caching data that is resource intensive to generate or access.

This greatly increases performance, as your site doesn’t need to make a direct request
to Vimeo every time it needs to check video data, and can instead use data from 
a recent request that already completed. This cache is set to clear every 15 minutes
by default.

Note that depending on how many videos you have at Vimeo, making requests to get
video data can be resource intensive. If you have many videos, you might consider
increasing the cache clearing interval.

You can change the cache clear interval or clear the cache manually at [https://your-site.com/wp-admin/admin.php?page=wc-settings&tab=vimeo](https://your-site.com/wp-admin/admin.php?page=wc-settings&tab=vimeo)(
see screenshot 2)

### My video data is not updating with the changes I made at Vimeo

If you’ve made a change to some video data at Vimeo, those changes may not be reflected
on your site immediately.

To ensure that this plugin can work with other plugins that use meta data from the
Product, a Vimeo video’s data gets stored on each individual Product it gets associted
with.

For example, if you have a video at Vimeo with a name like „My Video“ and you change
it to „My Film“, any Products that had the „My Video“ video from Vimeo selected 
will need to be updated when the Cron task runs for this plugin.

Products with Vimeo videos get checked for updates from Vimeo during the Cron task,
which runs automatically on a set time interval, and which you can set yourself (
default is every 15 minutes). Settings for Cron are at [https://your-site.com/wp-admin/admin.php?page=wc-settings&tab=vimeo](https://your-site.com/wp-admin/admin.php?page=wc-settings&tab=vimeo)(
see screenshot 2)

When the Cron task runs, all video meta data on the Products that needs updating
gets updated. This shouldn’t be too much of an issue unless you have an update from
Vimeo you need reflected immediately on your site; in that case, run the cron manually
on the WooCommerce > Settings > Vimeo page

## Pohódnoćenja

![](https://secure.gravatar.com/avatar/16927951708cbe10041a378e5faa45b373a30593a4367b12498e933db6f79203?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin](https://wordpress.org/support/topic/excellent-plugin-6004/)󠁿

 [kkatusic](https://profiles.wordpress.org/kkatusic/) 22. junija 2020 1 reply

Simple to set up, simple to use.

 [ Čitajće 1 pohódnoćenje ](https://wordpress.org/support/plugin/wc-vimeo/reviews/)

## Sobuskutkowarjo a wuwiwarjo

„Video Sales for Woocommerce with Vimeo“ je softwara wotewrjeneho žórła. Slědowacy
ludźo su k tutomu tykačej přinošowali.

Sobuskutkowarjo

 *   [ Vincent ](https://profiles.wordpress.org/vincentastolfi/)

[Přełožće „Video Sales for Woocommerce with Vimeo“ do swojeje rěče.](https://translate.wordpress.org/projects/wp-plugins/wc-vimeo)

### Na wuwiću zajimowany?

[Přehladajće kod](https://plugins.trac.wordpress.org/browser/wc-vimeo/), hladajće
do [SVN-repozitorija](https://plugins.svn.wordpress.org/wc-vimeo/) abo abonujće 
[wuwiwanski protokol](https://plugins.trac.wordpress.org/log/wc-vimeo/) přez [RSS](https://plugins.trac.wordpress.org/log/wc-vimeo/?limit=100&mode=stop_on_copy&format=rss).

## Protokol změnow

#### 0.0.1

 * Original release

#### 0.0.2

 * vimeo/vimeo-api update

#### 0.0.3

 * Adding Cron functionality
 * Automatically updates product’s video data from Vimeo based on cron interval
 * Configurable cron interval
 * Ability to run Cron manually

## Meta

 *  Version **0.0.3**
 *  Last updated **6 lět**
 *  Active installations **40+**
 *  WordPress version ** 4.6 abo nowši **
 *  Tested up to **5.3.21**
 *  PHP version ** 5.2.4 abo nowši **
 *  Language
 * [English (US)](https://wordpress.org/plugins/wc-vimeo/)
 * Tags
 * [sell](https://hsb.wordpress.org/plugins/tags/sell/)[video](https://hsb.wordpress.org/plugins/tags/video/)
   [vimeo](https://hsb.wordpress.org/plugins/tags/vimeo/)[woocommerce](https://hsb.wordpress.org/plugins/tags/woocommerce/)
 *  [Rozšěrjeny napohlad](https://hsb.wordpress.org/plugins/wc-vimeo/advanced/)

## Pohódnoćenja

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/wc-vimeo/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/wc-vimeo/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/wc-vimeo/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/wc-vimeo/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/wc-vimeo/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wc-vimeo/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wc-vimeo/reviews/)

## Sobuskutkowarjo

 *   [ Vincent ](https://profiles.wordpress.org/vincentastolfi/)

## Podpěra

Chceće něšto prajić? Trjebaće pomoc?

 [Forum pomocy pokazać](https://wordpress.org/support/plugin/wc-vimeo/)

## Darić

Chceće dalewuwiwanje tutoho tykača podpěrać?

 [ Za tutón tykač darić ](https://www.paypal.com/paypalme2/astolfivincent)