[WooCommerce] Sale price dates in Bricks

A user asks:

Is there anyway to show the woo sale price dates (start/end) in bricks? I didn't find any dynamic data for them in bricks builder!

Any custom way? I use pro countdown of bricks extra too

This Pro tutorial provides the steps for outputting start and end sale price dates (if set) for WooCommerce products when using Bricks.

Step 1

Set your shop's timezone at Settings → General if you haven't already. It is recommended to select a city in the same timezone as your business.

Step 2

Edit your products and set sale price dates by clicking Schedule under the Sale price input field.

Step 3

Add the following in child theme's functions.php (w/o the opening PHP tag) or a code snippets plugin:

This is a BricksLabs Pro tutorial.

For full access login below or create your BricksLabs Pro account

Get access to all 525 Bricks code tutorials with BricksLabs Pro

Related Tutorials..

Pro
Similarly Priced WooCommerce Products Bricks Query Loop

Similarly Priced WooCommerce Products Bricks Query Loop

How to show products priced within a percentage of the current single product's price.
Categories:
Appending WooCommerce Endpoint Names To My account Page Titles in Bricks

Appending WooCommerce Endpoint Names To My account Page Titles in Bricks

Adding the WooCommerce endpoint names, “Orders”, “Downloads” after the WooCommerce ‘My account’ Page’s title text at the various endpoint URLs.
Categories:
Pro
How to Modify Products Element Query in Bricks to Output Child Products

How to Modify Products Element Query in Bricks to Output Child Products

This Pro tutorial provides the steps to limit WooCommerce products output by Bricks' Products element on single product pages to only the children of the…
Pro
Top-Level Product Categories in Bricks

Top-Level Product Categories in Bricks

How to show top-level WooCommerce product categories in Bricks using a query loop.
Categories: