Gravity Wiz

Magically enhanced tutorials, snippets and plugins for Gravity Forms!

  • Gravity Perks
    • Gravity Perks
    • Tutorials & Snippets
    • About
  • Support
    • Documentation
    • Support
    • Account

Gravity Forms Pay Per Word

Create product fields which calculate a total based on the number of words in a Paragraph or Post Body field.

This plugin is part of Gravity Perks, a suite of 32+ essential Gravity Forms addons with support you can count on.

  • View All Perks
  • Buy Gravity Perks

What does it do?

This plugin allows you to create product fields which calculate a total based on the number of words in a Paragraph or Post Body field. Create forms for customers to build classified ads, social media posts, or anything where you want to charge per word.

Features

  • Live-updating pricing as user types.
    Customer knows exactly how much they’ll be paying while using the form.
  • Supports Paragraph and Post Body fields.
    Works with all textarea Gravity Forms fields.
  • Set a base price.
    Charge a minimum fee with a base word count that’s included in the fee.
  • Integrates with Gravity Forms Word Count.
    Limit the number of words allowed in your Pay Per Word activated field.
  • Automatic updates.
    Get updates and latest features right in your dashboard.
  • Awesome support.
    We’re here to help! And we mean it.

Documentation

  1. How do I enable this functionality?
  2. Feature Details
    1. How does it work?
    2. Base Price
    3. Word Count Integration
  3. FAQs
    1. Can I charge per character instead of per word?
  4. Hooks

How do I enable this functionality?

After installing and activating Gravity Forms Pay Per Word, you can start charging for words in any Paragraph or Post Body field in your form. Let’s step through setting that up.

Add a Single Product field to your form.
Go to the Perks tab and check Enable Pay Per Word.
Select the Post Body or Paragraph field for which the number of words should be counted and set the Price Per Word.
Optionally set a Base Price and Base Word Count.
If you do not see a newly created Paragraph or Post Body field within the Word Field drop down, first save the form and attempt it again.

Feature Details

How does it work?

As the user types, Pay Per Word counts how many words have been entered into the specified Paragraph or Post Body field and calculates (based on the specified price per word) how much the Pay Per Word Product will cost.

Base Price

Enable Base price to set how much the first x number of words should cost. Once enabled, enter both the Base Price and the Base Word Count, which is how many words are included in the Base Price fee.

Base Price

Word Count Integration

Pay Per Word works seamlessly with Gravity Forms Word Count. Set minimum and maximum required words on your Paragraph or Post Body field, and Pay Per word will charge for those words.

GPPPW + GPWC

FAQs

Can I charge per character instead of per word?

We have a two-part snippet to change the behavior to pay per character. Paste the PHP part of the snippet in your theme’s functions.php file. Use our Custom Javascript plugin to add the JS part to your form.

Hooks

  • gpppw_word_count (JS)
  • gpppw_word_count (PHP)
Gravity Forms has hundreds of hooks. Check out our Gravity Forms Hook Reference for the most thorough guide to Gravity Forms’ many actions and filters.

Perk Deets

  • Version 1.1.6
  • Updated July 8, 2020
  • Released January 21, 2013
  • View Changelog

Changelog

1.1.6

  • Fixed an issue where prices in Euro would be displayed incorrectly. (#1)

1.1.5

  • Fixed issue where non-US currencies were not preserved in base price setting.

1.1.4

  • Added a new filter to be able to hook into the back-end side of the word count. apply_filters( 'gpppw_word_count', $word_count, $words, $price_field, $word_field, $form );
  • Updated plugin author.

1.1.3

  • Fixed issue where base price was not correctly reset when choice was disabled.

1.1.2

  • Fixed issue when TinyMCE was not enqueued.

1.1.1

  • Fixed issue where prices were not formatted correctly in the field settings.

1.1

  • Updated perk to use GP_Bootstrap
  • Added support for Gravity Form 2.0 Rich Text Editors

1.0.7

  • Fixed issue where gravityforms.js dependency was not specified

1.0.6

  • Added "gpppw_word_count" filter for modifying the word count

1.0.5

  • Fixed issue where line break/carriage returns were not being accounted for when processed server-side

1.0.4

  • Fixed issue where line breaks/carriage returns were not being accounted for when calculating word count

1.0.3

  • Fixed issue where new 'gwppw_price' hook returned field object instead of price

1.0.2

  • Fixed issue where PPW products did not update in calculations (no change event was being triggered)

1.0.1

  • Added 2 new filters to be able to hook into the back-end and front-end side of the price calculations. apply_filters('gwppw_price', $price_field, $word_field, $word_count, $price);
  • Fixed a JavaScript issue where if the number was equal to 0 it would return as Not a Number.

All Perks

  • GF Auto Login
  • GF Better User Activation
  • GF Blacklist
  • GF Conditional Logic Dates
  • GF Conditional Pricing
  • GF Copy Cat
  • GF Date Time Calculator
  • GF Disable Entry Creation
  • GF Easy Passthrough
  • GF eCommerce Fields
  • GF Email Users
  • GF Expand Textareas
  • GF File Upload Pro
  • GF Limit Checkboxes
  • GF Limit Choices
  • GF Limit Dates
  • GF Limit Submissions
  • GF Live Preview
  • GF Media Library
  • GF Multi-Page Navigation
  • GF Nested Forms
  • GF Pay Per Word
  • GF PayPal One-time Fee
  • GF Placeholder
  • GF Populate Anything
  • GF Post Content Merge Tags
  • GF Preview Submission
  • GF Price Range
  • GF Read Only
  • GF Reload Form
  • GF Terms Of Service
  • GF Unique ID
  • GF Word Count

Copyright © 2021 · Powered by WordPress · Gravity Wiz LLC

  • Support
  • Affiliates
  • About
  • Sitemap
  • Gravity Perks
    ▼
    • Gravity Perks
    • Tutorials & Snippets
    • About
  • Support
    ▼
    • Documentation
    • Support
    • Account