12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Jan 27, 2021

How to output a Repeater Div only if the Product Price is set

Sridhar Katakam

This members-only tutorial provides the steps to register a custom function that can be used with Oxygen's Dynamic Data condition to output a Repeater showing WooCommerce products such that the Repeater's Div will only be output if the product price is not empty or >= a specific number.

Note: The recommended way to show WooCommerce products is to use a Products List component instead of a Repeater. We will cover it in another tutorial for achieving something similar.

Step 1

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: [WooCommerce] Get Product Price

Code:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $599 one-time).

Already a member? Log in below or here.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right