Skip to content

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.

In the module settings WPify → WPify Woo → Prices you will find the Custom prices section.

Click Add price to add a new custom price.

FieldDescription
Price labelPrice label (e.g., “Price per kg”) - always displayed before the price
Price typeType of price - custom, lowest, or per unit
Price more infoAdditional information (tooltip)
Regular price labelLabel for regular product price (displayed before regular price)
Badge labelBadge label text for products not on sale (instead of “Sale!”)
Custom badge css classCSS class for badge (default: onsale)
When price displayDisplay condition
TypeDescription
Custom priceCustom price entered on the product
Lowest price in 30 daysAutomatically from Price History module
Price by unitPrice per unit (kg, pcs, l, etc.)
FieldValues
Custom prices display locationBefore/after price, inside/outside price HTML
Custom location hookCustom WordPress hook for display
ValueDescription
Before price outside price htmlBefore price, as a separate block
After price outside price htmlAfter price, as a separate block
Before price inside price htmlBefore price, inside HTML
After price inside price htmlAfter price, inside HTML

After creating a custom price, a field for entering the value will appear on each product:

  1. Open the product detail
  2. In the Product data section, select the General tab
  3. You will find fields for entering custom prices

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.

  1. Add a custom price:

    • Price label: Price per kg:
    • Price type: Price by unit
  2. On the product, enter:

    • Package unit: kg
    • Number of units: 0.5 (for 500g package)
  1. Activate the Price History module
  2. 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
  1. Add a custom price:

    • Price label: Recommended price:
    • Price type: Custom price
  2. On the product, enter the recommended price value

<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>

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.

  1. The product must have a custom price filled in (in the General tab)
  2. The product must not be on sale (otherwise the standard “Sale!” is displayed)
  3. If both conditions are met, your custom badge is displayed
  • Badge label: Recommended
  • Custom badge css class: recommended-badge
.recommended-badge {
background: #4caf50;
color: white;
padding: 5px 10px;
}