Artikel vom 6. November 2008
E-Commerce for Bloggers: wpSALE Plugin – More Sales with WordPress
In forums or groups with a wordpress topic, there are quite often questions about how to offer downloads that require a charge. One of several WordPress shop plugins could shurely offer this, .. but really more hypothetically. If you want to offer loose download links against payment (to the eBooks for example) or certain information (with serial numbers for products for example), those shop plugins are most of the time far much too complex and expensive and therefore really overdone and in most cases also not flexible enough. The newly developed WordPress plugin wpSALE is very quickly installed and offers parts of a post or downloads only after successful payment with PayPal.
German Version
wpSALE: Mehr verkaufen unter WordPress. Unkompliziert und effizient
Jump marks
- Mode of operation
- Examples
- Screenshots
- Features
- Download & demonstration
- Version of progress
- Installation
Mode of operation
So what does wpSALE? This software, which comprehends by the way only a few kByte, notices the marked parts of the blog operator and replaces them with an alternative, promotional text, regardless if these parts are download-links, text parts or even something different. wpSALE alters the via short code marked part (similiar to wpSLEEP) to a chargable and only after payment reachable content area.
The short code (= marked part) can therefore be placed everywhere and also multiple times within a blog text. When marking the parts, the corresponding attriubutes are also defined: That is why the data has not to be entered in a complicated way and with effort in the WordPress backend – everything is already done locally within the shortcode.
Price und the promotinal text that wpSALE adds with a link for payment, are those attributes. With the help of more attributes/parameters, which are placed before or after the payment link, even more information can be added, which offers you more freedom and playground for the arrangement of the “sold note”. An Example with possible parameters for the time being:
Examples
- [wpsale cost="0,99" id="display-serial" before="Paid content!" link="Now paying via PayPal!" after="Please pay $ %cost% for viewing the content"]Your Serial: 123456789[/wpsale]
- [wpsale cost="3.99" id="download-product" before="Pay $ %cost% to download this product!" link="Now paying via PayPal!"]Thanks for buying with Paypal! <a href="#">Click here for download the file.</a>[/wpsale]
Marking, forwarding, paid
After marking the area and saving the post, the reader can only see the alternative text and the link (before, link, after). But all of this happens intuitively: If the user decides to pay and clicks on the payment-link, wpSALE automatically forwards him to the PayPal site, where he loggs in and makes the payment. After successful transaction, PayLal forwards the user back to his previous website. The alternative text is now gone and the user can see or download the content, he paid for.
The successfull transaction at PayPal has supplied the browser with a valid cookie, that passes the verification. The advantage of this technic is obvious: The reader does not have the effort to have to register and wait for the admin review to be able to see the content that requires a charge. The course of process is just one step and thanks to PayPal quick, safe and unbureaucratic.
The possible shady side of this solution
The disadvantage is surely that the cockie can be deleted and in cause of that, the user can not access the content he paid for. This can happen by manual deletion or by the validity period of the used browser. On the other hand there is the question, if the offered content that required a charge, should be accessable for eternity, after one has paid for it. I am quite sure: No it should not. My thoughts, speculations and view about that:
- The link that forwards one to the download of the eBook, once the user has paid for it, leads to the direct downlaod: The pdf can be saved locally on his pc.
- The serial number, that is shown after successfull payment, is copied once to activate a certain program. After that, not again.
Screenshots

Settings in the Backend of the wpSALE plugin

wpSALE sales in table form
Features
- Faster, gentle code for database
- Entry of product details directly within the article text
- Protocoll of all transactions
- Uncomplicated process without registration
- Cookie validity of 1 year
- Usable from WordPress 2.5
Possible attributes in [wpsale]… [/wpsale]
-
cost
Product price in german oder english format. -
id
Explicit ID respectively the name of the product. Ideally – as IDs do – this identification number consists only out of numbers, but this is not mandatory. PayPal shows the ID within the payment details. -
before
Text before the payment link. -
link
Associated text to the payment link. -
after
Text after the payment link.
Possilbe placeholder in [wpsale]… [/wpsale]
-
%cost%
At the time being the only placeholder can be placed within the attributes before, link and/or after and will be replaced with the value from the attribute cost automatically. The advantage: The price of the product has to be set in the short code only once.
Download & demonstration
Not available!
Version of progress
Version 0.5 dated 19.11.2008:
- Encryption of data (price, productID)
- Automatic cleanup of the data table
- Improving the pay process
Version 0.4 dated 07.11.2008:
- New option: Language of the PayPal login page
Version 0.3 dated 31.10.2008:
- wpSALE sales statistic in table form
- English interface
- Restructering of code
Version 0.2 dated 21.10.2008:
- Improved compatibility with all PayPal accounts
Version 0.1 dated 20.10.2008:
- wpSALE goes online
Installation
- Download plugin
- Unzip the archive
- Upload the file wpsale.php into ../wp-content/plugins/
- Go to tab Plugins
- Activate wpSALE
- Click on Settings and define within the options
Tipps
- Check that the email address of the PayPal receiver is set under wpSALE settings, otherwise there will be no forwarding to PayPal.
- Permalinks settings should not stand on default.
[Der Autor] Sergej Müller ist enthusiastischer Software Engineer mit Schwerpunkten Webentwicklung und WordPress. Seit 2007 programmiert und vertreibt er wpSEO, das weltberühmte und patentierte SEO-Plugin für WordPress-Blogs.
Performance in WordPress: Twitter-Link mit Caching-Funktion
Befreiphone oder Optimierung eines Artikels für das Keyword Befreiphone
22 Kommentare zum Artikel
In today’s version 0.4 is the option added, the language of the PayPal login page to be able to define. These are 6 alternatives to choose from.
Is there an english ver. where can I get it.
George, this is a multi-language file (german, english).
A possible problem is that the price you are charging is visible in the link
0.99
oad-wpsale/0.99/LzYwNC9lLWN
and can easily be changed by a buyer to a lower price. A percentage of people will do this. It might not matter when you are only selling for 0.99 but you would be annoyed if someone bought changed a link from 9.99 to 0.09
The price part of the link somehow needs to be masked or encrypted.
phil
I paid, but didn’t get redirected to download page, so I didn’t download it.
I subscribed to comments, so I will see how it works out.
@Dave
PayPal sometimes takes a little longer. Please refresh this page now.
@phil
Good idea, thanks.
Downloaded now, thanks.
Vielen Dank, soweit verstanden ! Doch erlaube noch eine Zusatzfrage: Der Bezahllink bzw. die Verlinkung zu PP steht, nur sollte der Käufer dann nach der Bezahlung natürlich auch zum richtigen Dokument geführt werden (bei mir eine pdf.). Deshalb die Frage, kann man dies so erreichen?
Der Link zum PDF muss dann zwischen [wpsale][/wpsale] stehen und wird nach der Bezahlung sichtbar und kann von Käufer angeklickt werden. Also der Link zum PDF wird an die stelle gesetzt, wo jetzt product.zip verlinkt wird.
New version released: More security, automatic cleanup, better communication with PayPal. See Version of progress.
Sorry – I should have included that I’m running WordPress 2.7. Any known issues with this plugin and WP 2.7?
Thanks again,
Brian
Brian, the plugin works only if the permalink structure is not default.
Ok – I did read that under tips… Sorry for missing it the first time… Intersting issue I now have…
If I change permalinks to anything BUT default none of my pages function… All throw 404 errors
Thanks,
Brian
OK – Never mind, I copied the rewrite.php from another blog’s wp_include directory and everything is good.
Thanks,
Brian
Hi Sergej – Me again…
Everything is working as expected up until the paid content is to be displayed. The paid content I’m displaying after payment is received are videos. I’m using the Wordtube plugin to play the video’s. To do this, a user simply needs to add [media=] where media_id is my specific media identifier.
This doesn’t appear to get rendered after being returned to the page. I’ve tested just adding plain text and that works.
Does your plugin limit what content can be displayed inside your [wpsale] [/wpsale] tags after payment? It seems like the wordtube tags don’t render inside of your [wpsales] tags.
Any ideas?
Thanks again!
Brian
hallo wie gehts?
Peter hier aus Neu Seeeland.
i bought your plugin, but when i put the short code next to a track for down load the whole code shows up, like this: # [wpsale cost="3.99" id="download-product" before="Pay $ %cost% to download this product!" link="Now paying via PayPal!"]Thanks for buying with Paypal! Click here for download the file.[/wpsale]
I use wordpress 2.7, if you like i can make an expample for you to check out…
kannst du helfen?
Vielen dank
Peter
@Peter Haeder
Hast du denn das Plugin aktiviert?
haha, ne hab’s verwechselt mit ‘ em anderen! es funtktioniert jetzt. habe eien frage Sergej, kannst du das plugin so konfigurieren dass es artikel zumm shopping cart addiert? Alles was ich brauche ist die funktionaitaet dass kaeufer die musik hoeren koennen und dann in den cart platzieren. ist das moeglich, oder kansst du es fuer mich kodieren gegen bezahlung?
Vielen dank
Peter
@Peter
Dies zeiht umfangreiche Anpassungen mit sich, für die ich jetzt leider keine Zeit habe. Ist dieses Plugin nicht das, was du brauchst?
I use firefox 3.0.4 can buy purchase documents show, but I put firefox after upgrade to 3.0.8 can not be demonstrated. I hope to improve
Hello, thanks very much for this plugin, is exactly what I was looking for ! I have only one doubt though : can I use it in a subdomain ? I don’t think there’s any issue but I wanted to ask it anyway just to go sure.
Thanks again,
I.
Einen -
Can you integrate the plugin to a tamplate i have purchsed?
I am not technical to perfom this level of opertions.
Kindly, let me know.
Roni
3 Verlinkungen auf den Artikel
› Geekeries | taggle.org
› E-Commerce con Wordpress: il plugin wpSale : cssblog.it
› Snabba surftips om SEO, WordPress trixande, matskrivande, bildre [...]