Repository › Forums › Support › Expiry dates for WooCommerce PRO › Tooltip and Expiry date on invoice › Reply To: Tooltip and Expiry date on invoice

#16703
Soft79
Keymaster

I miswrote the path. It must be wp-content/themes/YOUR-CHILD-THEME/soft79-wc-expiry-dates/single-product/expiry-date.php. You can adjust the html to whatever you like, for example by adding a title-attribute to the div.


<div class="soft79_wcxd_expiry_dates" title="The length of time for the expiration date or 'best used before' date depends on the type of product, as well as the brand">
    <?php
        $expiry_date = $product_logic->getPurchasableExpiryDate();
        if ( ! empty( $expiry_date ) ) {
            echo $expiry_rule->getTitle() . ': <span class="soft79_wcxd_expiry_date">' . SOFT79_WCXD_View::formatDate( $expiry_date ) . '</span>';
        }
    ?>
</div>