Custom Prices
Custom prices allow you to display additional price information on the product page - such as price per unit, recommended price, or custom calculations.
Custom Price Settings
Section titled “Custom Price Settings”In the module settings WPify → WPify Woo → Prices you will find the Custom prices section.
Adding a Custom Price
Section titled “Adding a Custom Price”Click Add price to add a new custom price.
| Field | Description |
|---|---|
| Price label | Price label (e.g., “Price per kg”) - always displayed before the price |
| Price type | Type of price - custom, lowest, or per unit |
| Price more info | Additional information (tooltip) |
| Regular price label | Label for regular product price (displayed before regular price) |
| Badge label | Badge label text for products not on sale (instead of “Sale!”) |
| Custom badge css class | CSS class for badge (default: onsale) |
| When price display | Display condition |
Price Types
Section titled “Price Types”| Type | Description |
|---|---|
| Custom price | Custom price entered on the product |
| Lowest price in 30 days | Automatically from Price History module |
| Price by unit | Price per unit (kg, pcs, l, etc.) |
Display Position
Section titled “Display Position”Global Settings
Section titled “Global Settings”| Field | Values |
|---|---|
| Custom prices display location | Before/after price, inside/outside price HTML |
| Custom location hook | Custom WordPress hook for display |
Position Options
Section titled “Position Options”| Value | Description |
|---|---|
Before price outside price html | Before price, as a separate block |
After price outside price html | After price, as a separate block |
Before price inside price html | Before price, inside HTML |
After price inside price html | After price, inside HTML |
Product-Level Settings
Section titled “Product-Level Settings”After creating a custom price, a field for entering the value will appear on each product:
- Open the product detail
- In the Product data section, select the General tab
- You will find fields for entering custom prices
Price by Unit
Section titled “Price by Unit”For the “Price by unit” type, you enter:
- Package unit - unit (kg, pcs, l, etc.)
- Number of units - number of units in the package
The module automatically calculates the price per unit: product price / number of units.
Usage Examples
Section titled “Usage Examples”Price per Kilogram
Section titled “Price per Kilogram”-
Add a custom price:
- Price label:
Price per kg: - Price type:
Price by unit
- Price label:
-
On the product, enter:
- Package unit:
kg - Number of units:
0.5(for 500g package)
- Package unit:
Lowest Price in 30 Days
Section titled “Lowest Price in 30 Days”- Activate the Price History module
- Add a custom price:
- Price label:
Lowest price in 30 days: - Price type:
Lowest price in 30 days - When price display:
If product is in sale
- Price label:
Recommended Price
Section titled “Recommended Price”-
Add a custom price:
- Price label:
Recommended price: - Price type:
Custom price
- Price label:
-
On the product, enter the recommended price value
HTML Structure
Section titled “HTML Structure”<div class="wpify-woo-prices"> <p class="wpify-woo-prices__price"> Price per kg: $15.00/kg <span class="wpify-woo-prices__price-info"> ? <span class="wpify-woo-prices__price-info__text"> Additional information </span> </span> </p></div>Badge Label
Section titled “Badge Label”Using the Badge label and Custom badge css class fields, you can display a custom badge label for products that are not on sale but have a custom price set.
How It Works
Section titled “How It Works”- The product must have a custom price filled in (in the General tab)
- The product must not be on sale (otherwise the standard “Sale!” is displayed)
- If both conditions are met, your custom badge is displayed
Usage Example
Section titled “Usage Example”- Badge label:
Recommended - Custom badge css class:
recommended-badge
.recommended-badge { background: #4caf50; color: white; padding: 5px 10px;}