Dynamic tags

Discussion in 'Common issues' started by Napoolion, Nov 1, 2016.

  1. Napoolion

    Napoolion Member

    Joined:
    Dec 29, 2014
    Messages:
    91
    Likes Received:
    10
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    2
    Under segment tools there are some dynamic tags like this:
    Tag Description
    [EMPTY] It will be transformed into an empty value
    [DATETIME] It will be transformed into the current date/time in the format of Y-m-d H:i:s (i.e: 2015-01-27 20:30:57)
    [DATE] It will be transformed into the current date in the format of Y-m-d (i.e: 2015-01-27)
    [BIRTHDAY] It requires the birthday field value to be in the format of Y-m-d (i.e: 2015-01-27) in order to work properly

    That is great, but is there any way to change the time format to d-m-yyyy, so it would more european. Just a minor thing and wanted to know if there is a minor hassle free fix for it.
     
  2. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    10,264
    Likes Received:
    2,383
    @Napoolion - It's like so to match the way the date is stored into the database, it's a standard.
     
    Napoolion likes this.
  3. Napoolion

    Napoolion Member

    Joined:
    Dec 29, 2014
    Messages:
    91
    Likes Received:
    10
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    2
    Okay, Thanks! :)
     
  4. Akash Reddy

    Akash Reddy New Member

    Joined:
    May 20, 2019
    Messages:
    10
    Likes Received:
    2
    S.E:
    2019-11-16 20:56:38
    L.T:
    Regular
    L.C:
    1
    @twisted1919 - Hi, Is there a way we can create own custom tags?
    I would like to send Birthday emails, 15 days before their Birthday. So I am looking at something like combining [PAST_DAYS_X] tag and [BIRTHDAY] tag functionality.

    *1*> Create [BIRTHDAY_FUTURE_X] tag, that modifies the Birthday tag to --> current birthday tag + x days

    This dynamic tag can get the subscribers that have their anniversary/birthday X days from now (in my case 15). put them in the segment and add a regular campaign that sends an email daily !!

    Please advise if this can be implemented as a feature request and/or If I can create my own tag, based on the existing ones.
     
    Last edited: May 22, 2019
  5. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    10,264
    Likes Received:
    2,383
    @Akash Reddy - i added today:
    [FUTURE_DAYS_X] - adds days to current date
    [BIRTHDAY_FUTURE_DAYS_X] - adds days to birthday

    So from next release (no eta) you'll be able to use those, for example if you want to send to someone where his birthday is from days on from now, you'd use [BIRTHDAY_FUTURE_DAYS_10] as comparison against the birthdate field.
     
  6. Akash Reddy

    Akash Reddy New Member

    Joined:
    May 20, 2019
    Messages:
    10
    Likes Received:
    2
    S.E:
    2019-11-16 20:56:38
    L.T:
    Regular
    L.C:
    1
    @twisted1919 Awesome !! Thank you for the quick response and updates.
    Please let me know if it is a simple code (copy paste !!?), so I can update the tags and use them from now. I run a fashion store so this would help my store a lot.
     
  7. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    10,264
    Likes Received:
    2,383
    Take attached file, unzip it, and place it instead of /apps/common/models/ListSegmentCondition.php
     

    Attached Files:

  8. Akash Reddy

    Akash Reddy New Member

    Joined:
    May 20, 2019
    Messages:
    10
    Likes Received:
    2
    S.E:
    2019-11-16 20:56:38
    L.T:
    Regular
    L.C:
    1
    @twisted1919
    Dude, You're amazing Man !! Thank you very much.
     
    twisted1919 likes this.
  9. Akash Reddy

    Akash Reddy New Member

    Joined:
    May 20, 2019
    Messages:
    10
    Likes Received:
    2
    S.E:
    2019-11-16 20:56:38
    L.T:
    Regular
    L.C:
    1
    I am new to the servers thing, Please advise.
    I replaced the files using Winscp. But the value tags don't seem to appear. Do I have to reboot the server?
     
  10. laurentiu

    laurentiu Active Member Staff Member

    Joined:
    Mar 13, 2018
    Messages:
    242
    Likes Received:
    30
    @Akash Reddy - on Create new segment list if you click on info button you don't see this tags?

    Screen Shot 2019-05-30 at 9.37.03 AM.png
     
  11. Akash Reddy

    Akash Reddy New Member

    Joined:
    May 20, 2019
    Messages:
    10
    Likes Received:
    2
    S.E:
    2019-11-16 20:56:38
    L.T:
    Regular
    L.C:
    1
    No. I just see the regular tags.
    upload_2019-5-30_10-3-42.png

    Edit :: Never mind, I sftp'd it in the mailwizz/update/.... folder !! so it wasn't showing up

    I updated it in the var/www/html/.... and it seems to work like a charm !! Thank you again @laurentiu and @twisted1919 :)
     
    Last edited: May 30, 2019
    twisted1919 likes this.

Share This Page