Repository Forums Support Expiry dates for WooCommerce PRO How do I add Expiration Dates to Product Tables

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #20368
    Chris Sposato

    Hi, how do I add the Expiration Dates and their quantities cleanly and HTML formated to a Product Table? (red, orange, and line breaks)

    I have tested with shortcode [expiry_date view=”all” title=”no” overdue=”yes”] in the Description, but it just makes it all on 1 line.

    Thank you,


    You can override the default template (not shortcode) by copying templates/single-product/expiry-date.php to YOUR_CHILD_THEME/soft79-wc-expiry-dates/single-product/expiry-date.php and edit it as required. It requires some php knowledge.

    In the template a variable $stock_items is available. You can use this variable to render the table. As an example of its usage see function formatStockItemsHtml in includes/SOFT79_WCXD_View.php

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.