Coder Social home page Coder Social logo

catoegroup / woocommerce-subscriptions-custom-price-string Goto Github PK

View Code? Open in Web Editor NEW

This project forked from woocommerce/woocommerce-subscriptions-custom-price-string

0.0 1.0 0.0 425 KB

Customize the price displayed to your customers for subscription products (or non-subscription product).

License: GNU General Public License v3.0

PHP 100.00%

woocommerce-subscriptions-custom-price-string's Introduction

WooCommerce Subscriptions - Custom Price String

WooCommerce Subscriptions - Custom Price String is an experimental mini-extension for WooCommerce Subscriptions that allows you to customize the following default strings from WooCommerce and WooCommerce Subscriptions:

  • Simple product price
  • Variable product price
  • Subscription product price
  • Subscription Variation price
  • Variable product From price
  • Bookable product price

Installation

To install:

  1. Download the latest version of the plugin here
  2. Go to Plugins > Add New > Upload administration screen on your WordPress site
  3. Select the ZIP file you just downloaded
  4. Click Install Now
  5. Click Activate

How-to

Set Product Custom Price String for a Simple Subscription Product

Edit the product and go to its General tab. There you'll find a new field named "Custom price string". By default it will display the current price string (f.e: "$10 on the 1st of each month with a 30-day free trial"). Use this field to change this string to whatever you want (f.e: "$10 each month").

Custom simple Product price string

Set Product Custom Price String for a Variable Subscription Product

Edit the product and go to its Variations tab. Expand any of the existing variations and there you'll find the "Custom price string". Again, you can use this field to change this string to whatever you want (f.e: "$10 each month"). Each variation can have a different custom price string.

Custom variation price string

Set Product Custom From String for a Variable Subscription Product

By default, on each variable product page (frontend), a "From" sting is displayed, showing the minimal starting price of the product. If you edit a variable product and go to its Variations tab, you'll find a new field named "Custom Fom String" that you can can use to customize this string (f.e: "Starting at $10").

Custom variable product From string

  • NOTE: The 'From:' custom price string is located in the 'Advanced' tab for WC versions 3.3.5 and before.

Custom variable product From string WC 3.4+

  • NOTE: The 'From:' custom price string is located in the 'Variations' tab for WC versions 3.4+.

Result on the Frontend

Product with custom From and Price string

Set Product Custom Price String for a Bookable product

If you're using WooCommerce Bookings, you may also like to customize the price string of a bookable product in some situations. In these cases, you can find the "Custom price string" field located in the Advanced tab. This field will replace the main price string of the bookable product, located below its title.

image

image

Updates

To keep the plugin up-to-date, use the GitHub Updater.

Reporting Issues

If you find an problem or would like to request this plugin be extended, please open a new Issue.

woocommerce-subscriptions-custom-price-string's People

Contributors

bernattorras avatar jrick1229 avatar lcmry avatar thenbrent avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.