[Skip to main content](#vessel-content)

#   Adding days to attach serial plugin

##

- **[Webwindow](/forum/user/32312-webwindow "View Webwindow's Profile")**
- [![Webwindow's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32312-webwindow "View Webwindow's Profile") Topic Author
- [ Offline](/forum/user/32312-webwindow)

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 5 months ago [\#202610](#202610) by [Webwindow](/forum/user/32312-webwindow "View Webwindow's Profile")  *[Adding days to attach serial plugin](/forum/15-general-talk-about-hikaserial/877128-adding-days-to-attach-serial-plugin#202610 "-- HikaShop version -- : 2.4.0 -- HikaSerial version -- : 1.9.1 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome  Hello,  I wanted to add a certain number of days to the current date to display on an attached serial.  For example I have developed an image which is the voucher. This voucher will display the serial number, the order&#95;created date and the expiry date. The expiry date should be the order&#95;created date plus a set number of days.  Can someone help me with the syntax to add this date + days to the voucher image.  Thank you.")* was created by *[Webwindow](/forum/user/32312-webwindow "View Webwindow's Profile")*

-- HikaShop version -- : 2.4.0
-- HikaSerial version -- : 1.9.1
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Chrome

Hello,

I wanted to add a certain number of days to the current date to display on an attached serial.

For example I have developed an image which is the voucher. This voucher will display the serial number, the order_created date and the expiry date. The expiry date should be the order_created date plus a set number of days.

Can someone help me with the syntax to add this date + days to the voucher image.

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3NzEyOC1hZGRpbmctZGF5cy10by1hdHRhY2gtc2VyaWFsLXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 5 months ago [\#202620](#202620) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Adding days to attach serial plugin](/forum/15-general-talk-about-hikaserial/877128-adding-days-to-attach-serial-plugin#202620 "-- HikaShop version -- : 2.4.0 -- HikaSerial version -- : 1.9.1 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome  Hello,  I wanted to add a certain number of days to the current date to display on an attached serial.  For example I have developed an image which is the voucher. This voucher will display the serial number, the order&#95;created date and the expiry date. The expiry date should be the order&#95;created date plus a set number of days.  Can someone help me with the syntax to add this date + days to the voucher image.  Thank you.")*

Hi,

How do you generate the vouchers ?
Because you can use the "coupon generator" with the setting which allow you yo set a number of validity days.
There is also the "time limited" generator which generates serials with an expiration date.

In both cases, it generate a end date that the plugin "attach serial" can access and display in the final image.
Otherwise, there is no actual setting in the "attach serial" plugin to perform an arithmetic operation.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3NzEyOC1hZGRpbmctZGF5cy10by1hdHRhY2gtc2VyaWFsLXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Webwindow](/forum/user/32312-webwindow "View Webwindow's Profile")**
- [![Webwindow's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32312-webwindow "View Webwindow's Profile") Topic Author
- [ Offline](/forum/user/32312-webwindow)

Less More

- Posts: 6
- Thank you received: 0
-
-

11 years 5 months ago [\#202649](#202649) by [Webwindow](/forum/user/32312-webwindow "View Webwindow's Profile")  Replied by *[Webwindow](/forum/user/32312-webwindow "View Webwindow's Profile")* on topic *[Adding days to attach serial plugin](/forum/15-general-talk-about-hikaserial/877128-adding-days-to-attach-serial-plugin#202649 "-- HikaShop version -- : 2.4.0 -- HikaSerial version -- : 1.9.1 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome  Hello,  I wanted to add a certain number of days to the current date to display on an attached serial.  For example I have developed an image which is the voucher. This voucher will display the serial number, the order&#95;created date and the expiry date. The expiry date should be the order&#95;created date plus a set number of days.  Can someone help me with the syntax to add this date + days to the voucher image.  Thank you.")*

Thanks yes I am using the voucher to nominate an end date although I do not know what to call. For instance I use order_created to display the order date. What "field" should I call to display the expiry date?

Appreciate your response.

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3NzEyOC1hZGRpbmctZGF5cy10by1hdHRhY2gtc2VyaWFsLXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 5 months ago [\#202655](#202655) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Adding days to attach serial plugin](/forum/15-general-talk-about-hikaserial/877128-adding-days-to-attach-serial-plugin#202655 "-- HikaShop version -- : 2.4.0 -- HikaSerial version -- : 1.9.1 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome  Hello,  I wanted to add a certain number of days to the current date to display on an attached serial.  For example I have developed an image which is the voucher. This voucher will display the serial number, the order&#95;created date and the expiry date. The expiry date should be the order&#95;created date plus a set number of days.  Can someone help me with the syntax to add this date + days to the voucher image.  Thank you.")*

Hi,

Can you please provide us more details ?
You do not explained how you generate the vouchers, so I'm still not able to provide you an answer.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3NzEyOC1hZGRpbmctZGF5cy10by1hdHRhY2gtc2VyaWFsLXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[terryt](/forum/user/31051-terryt "View terryt's Profile")**
- [![terryt's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31051-terryt "View terryt's Profile")
- [ Offline](/forum/user/31051-terryt)

Less More

- Posts: 28
- Thank you received: 0
-
-

11 years 2 months ago -  11 years 2 months ago [\#211673](#211673) by [terryt](/forum/user/31051-terryt "View terryt's Profile")  Replied by *[terryt](/forum/user/31051-terryt "View terryt's Profile")* on topic *[Adding days to attach serial plugin](/forum/15-general-talk-about-hikaserial/877128-adding-days-to-attach-serial-plugin#211673 "-- HikaShop version -- : 2.4.0 -- HikaSerial version -- : 1.9.1 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome  Hello,  I wanted to add a certain number of days to the current date to display on an attached serial.  For example I have developed an image which is the voucher. This voucher will display the serial number, the order&#95;created date and the expiry date. The expiry date should be the order&#95;created date plus a set number of days.  Can someone help me with the syntax to add this date + days to the voucher image.  Thank you.")*

I have the same question.
I want to display the expiry date for generated image coupon using attach to email.
Something like this in Generated Text.

{order_product.order_product_expiry}
I don't know the code for expiry date. Or the code for order date + 365 days.

The Gift Certificate expires 1 year after purchase, so I want to put a message on the generated image with the expiry date. It would be unique per order, example "This Gift certificate expires on 2015-01-30"

Also the QR code should be a URL which adds the Coupon Code to the order, how do I do that? something like {order_product.order_product_serial}

Last edit: 11 years 2 months ago by [terryt](/forum/user/31051-terryt "View terryt's Profile"). Reason: coupon code

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3NzEyOC1hZGRpbmctZGF5cy10by1hdHRhY2gtc2VyaWFsLXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 2 months ago [\#211693](#211693) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Adding days to attach serial plugin](/forum/15-general-talk-about-hikaserial/877128-adding-days-to-attach-serial-plugin#211693 "-- HikaShop version -- : 2.4.0 -- HikaSerial version -- : 1.9.1 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome  Hello,  I wanted to add a certain number of days to the current date to display on an attached serial.  For example I have developed an image which is the voucher. This voucher will display the serial number, the order&#95;created date and the expiry date. The expiry date should be the order&#95;created date plus a set number of days.  Can someone help me with the syntax to add this date + days to the voucher image.  Thank you.")*

Hi,

The information is stored in the serial "extra data" with the key "discount_end".
The data is a timestamp, which means that you need to use the format "date" to display it Code:

serial.extradata.discount_end

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3NzEyOC1hZGRpbmctZGF5cy10by1hdHRhY2gtc2VyaWFsLXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[mbosah2002](/forum/user/58626-mbosah2002 "View mbosah2002's Profile")**
- [![mbosah2002's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58626-mbosah2002 "View mbosah2002's Profile")
- [ Offline](/forum/user/58626-mbosah2002)

Less More

- Posts: 2
- Thank you received: 0
-
-

6 years 8 months ago [\#315730](#315730) by [mbosah2002](/forum/user/58626-mbosah2002 "View mbosah2002's Profile")  Replied by *[mbosah2002](/forum/user/58626-mbosah2002 "View mbosah2002's Profile")* on topic *[Adding days to attach serial plugin](/forum/15-general-talk-about-hikaserial/877128-adding-days-to-attach-serial-plugin#315730 "-- HikaShop version -- : 2.4.0 -- HikaSerial version -- : 1.9.1 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome  Hello,  I wanted to add a certain number of days to the current date to display on an attached serial.  For example I have developed an image which is the voucher. This voucher will display the serial number, the order&#95;created date and the expiry date. The expiry date should be the order&#95;created date plus a set number of days.  Can someone help me with the syntax to add this date + days to the voucher image.  Thank you.")*

Hi,

I am making use of the "time limited" generator which generates serials with an expiration date, which I believe is is stored in serialdata validity_end. I made use serial.extradata.validity_end as seen in the attached image but it doesn't displays the date. The serial data and assigned dates are both working correctly .

[ ![ScreenShot2020-02-15at2.44.49PM&#95;2020-02-15.png](/forum/attachment/48745) ](/forum/attachment/48745 "...2020-02-15.png")

[ ![ScreenShot2020-02-15at2.44.49PM&#95;2020-02-15.png](/forum/attachment/48745) ](/forum/attachment/48745 "...2020-02-15.png")

.

Please assist!

- [ ![ScreenShot2020-02-15at2.44.49PM&#95;2020-02-15.png](/forum/attachment/48745) ](/forum/attachment/48745 "...2020-02-15.png") [ ](/forum/attachment/48745?download=1 "...2020-02-15.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3NzEyOC1hZGRpbmctZGF5cy10by1hdHRhY2gtc2VyaWFsLXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

6 years 8 months ago [\#315740](#315740) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Adding days to attach serial plugin](/forum/15-general-talk-about-hikaserial/877128-adding-days-to-attach-serial-plugin#315740 "-- HikaShop version -- : 2.4.0 -- HikaSerial version -- : 1.9.1 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome  Hello,  I wanted to add a certain number of days to the current date to display on an attached serial.  For example I have developed an image which is the voucher. This voucher will display the serial number, the order&#95;created date and the expiry date. The expiry date should be the order&#95;created date plus a set number of days.  Can someone help me with the syntax to add this date + days to the voucher image.  Thank you.")*

Hello,
Code:

serial.extradata.discount_end

Is the code to access the value ; you can use that string if you do use "dynamic text".
But if you do use "Serial..." then you're already in the "serial" object so you do not need to specify it in the text field.
CF : [ www.hikashop.com/forum/14-hikaserial/892...html?start=20#280180](https://www.hikashop.com/forum/14-hikaserial/892084-serial-pdf-no-image-as-background.html?start=20#280180)

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3NzEyOC1hZGRpbmctZGF5cy10by1hdHRhY2gtc2VyaWFsLXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[mbosah2002](/forum/user/58626-mbosah2002 "View mbosah2002's Profile")**
- [![mbosah2002's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58626-mbosah2002 "View mbosah2002's Profile")
- [ Offline](/forum/user/58626-mbosah2002)

Less More

- Posts: 2
- Thank you received: 0
-
-

6 years 8 months ago [\#315741](#315741) by [mbosah2002](/forum/user/58626-mbosah2002 "View mbosah2002's Profile")  Replied by *[mbosah2002](/forum/user/58626-mbosah2002 "View mbosah2002's Profile")* on topic *[Adding days to attach serial plugin](/forum/15-general-talk-about-hikaserial/877128-adding-days-to-attach-serial-plugin#315741 "-- HikaShop version -- : 2.4.0 -- HikaSerial version -- : 1.9.1 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome  Hello,  I wanted to add a certain number of days to the current date to display on an attached serial.  For example I have developed an image which is the voucher. This voucher will display the serial number, the order&#95;created date and the expiry date. The expiry date should be the order&#95;created date plus a set number of days.  Can someone help me with the syntax to add this date + days to the voucher image.  Thank you.")*

It works. Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE1LWdlbmVyYWwtdGFsay1hYm91dC1oaWthc2VyaWFsLzg3NzEyOC1hZGRpbmctZGF5cy10by1hdHRhY2gtc2VyaWFsLXBsdWdpbj90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.136 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
