Repository › Forums › Support › Expiry dates for WooCommerce PRO › Tooltip and Expiry date on invoice
- This topic has 4 replies, 2 voices, and was last updated 2 years, 6 months ago by Soft79.
-
AuthorPosts
-
November 6, 2020 at 8:29 am #16692Hameed ImthadParticipant
Hi Team,
Just wanted to check if we can have a tool tip next to expiry date where in we can have some message to customer like the example below“ The length of time for the expiration date or “best used before” date depends on the type of product, as well as the brand.”
Also can we have expiry date on the invoice as it would help the packing to team to pick the right item. We are using “WooCommerce PDF Invoices” plugin
Thanks
November 6, 2020 at 8:30 am #16693Hameed ImthadParticipantHi Team,
Just wanted to check if we can have a tool tip next to expiry date where in we can have some message to customer like the example below“ The length of time for the expiration date or “best used before” date depends on the type of product, as well as the brand.”
Also can we have expiry date on the invoice as it would help the packing to team to pick the right item. We are using “WooCommerce PDF Invoices” plugin
Thanks
November 6, 2020 at 6:41 pm #16696Soft79KeymasterHi,
you can override a template file. Copy wp-content/plugins/soft79-wc-expiry-dates-pro/template/single-product/expiry-date.php to wp-content/themes/YOUR-CHILD-THEME/soft79-wc-expiry-dates-pro/single-product/expiry-date.php and change to your needs.
To display the expiry date on your invoice or packing slip, please tick “WP-Admin > Products > Expiry Rules > (Expiry Rule) >
Display expiry date on order confirmation”. This works well with WooCommerce PDF Invoices & Packing Slips , I’m not sure if it works with the plugin you are using.November 7, 2020 at 1:57 pm #16701Hameed ImthadParticipantHi Team,
Thanks for you reply..
Displaying date in invoice works fine.
I would require some help on the first one. I have copied the file as you have mentioned. But need you help in adding a tool tip.
Also one more thing I would like to check, can we make it mandatory to enter expiry date when ever a new stock is added.
November 7, 2020 at 9:26 pm #16703Soft79KeymasterI 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 atitle
-attribute to thediv
.<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>
-
AuthorPosts
- You must be logged in to reply to this topic.