expire-date of the coupon

  • Posts: 111
  • Thank you received: 3
  • Hikashop Business
1 year 6 months ago #290460

Hi Jerome,

My coupon (gift certificate) will expire after 24 months.
How can i display the expire-date of the coupon in the attach-serial plugin so i can show it on the coupon itself?
I found a topic in french but i could (google-)translate how it exactly works.

Please Log in or Create an account to join the conversation.

  • Posts: 23775
  • Thank you received: 3688
  • MODERATOR
1 year 6 months ago #290463

Hello,

The thing is that the coupon generator store the coupon end date into the serial extra data ( discount_end ).
So if you want to display the date, you just need to display that " serial.extradata.discount_end " information and use the "date" format to transform the timestamp into a formatted date.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.055 seconds
Powered by Kunena Forum