Usage

Installation

  1. Upload `easyfileshop` folder to the `/wp-content/plugins/` directory.
  2. Create an folder `/wp-content/easyfileshop/` on the server and make it writable (chmod 777 or less). The shop files will bes stored in this folder. An .htaccess file will be created automatically.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. Open the settings page in the new toplevel ‘Easyfileshop’ menu.
  5. Select a currency and enter your paypal email address.
  6. (Opt.) You can select a return/thank you page.

Usage

  1. Edit or create a Page or Post. Find the paragraph (metabox) `Easyfileshop` at the bottom of the edit page (admin view). Upload a file and enter a price.
  2. Type the shortcode [easyfileshop] into the content of the post/page.

Advanced Usage

  • If you have uploaded a file in a post with the id 1. And you want the same file/button in a post with the id 2, you may type the shortcode [easyfileshop id=1] in the content of post 2.
  • You may also use the template tag `<?php easyfileshop(); ?>` in the loop, to retrieve the file/button of the current post.
  • You may also reference the file/button of another post by referencing it over the post id: `<?php easyfileshop(1); ?>`, where 1 ist the id, where you uploaded the file.
  • `<?php easyfileshop(1); ?>` does also work outside of the loop, anywhere else on the page.

Easyfileshop degrades gracefully: If there is no file or no price or you have not entered your paypal email address, there will be no button!