Announcement

Collapse
No announcement yet.

Hide Offer shown in fragments/products/sections ie. [Expiry date<system date]

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hide Offer shown in fragments/products/sections ie. [Expiry date<system date]

    I wanted to create a method of removing/hiding fragments/products/sections showing discount offers in the event that 'todays date' is after a pre determined date set in the properties.

    How do i get the system date in SellerDeck?

    e.g. in a layout or block statement...

    hide If predetermined date is 2019017< [todays date]

    Any thoughts?

    Phil
    Phil Howell
    Director
    Intuition Un Ltd
    www.turmerlicious.com A range of delicious Turmeric Latte's #veryaddictive

    Also
    Awarding winning publishers of Natal Hypnotherapy™, the UK's leading provider of hypnosis for conception, pregnancy and child birth having helped over 100,000 women through antenatal courses and self hypnosis CDs
    www.natalhypnotherapy.co.uk Hypnobirthing in English
    www.natalhypnotherapy.fr Hypnobirthing in french
    www.hypnobirthingclass.online Online antenatal training

  • #2
    There is something similar in this post - https://community.sellerdeck.com/for...d-on-date-time

    Haven't got time to look at it now but I may get a chance later.
    Elysium:Online - Official Accredited SellerDeck Partner
    SellerDeck Design, Build, Hosting & Promotion
    Based in rural Northants

    Comment


    • #3
      Hi Goz,

      I had spotted that one also but thank you anyway. I am looking at it with a view to tweaking Norman's really helpful post, to fit in with what we would like to do. Thanks,

      PS if anyone has any bright ideas or suggestions, do let me know.

      Phil
      Phil Howell
      Director
      Intuition Un Ltd
      www.turmerlicious.com A range of delicious Turmeric Latte's #veryaddictive

      Also
      Awarding winning publishers of Natal Hypnotherapy™, the UK's leading provider of hypnosis for conception, pregnancy and child birth having helped over 100,000 women through antenatal courses and self hypnosis CDs
      www.natalhypnotherapy.co.uk Hypnobirthing in English
      www.natalhypnotherapy.fr Hypnobirthing in french
      www.hypnobirthingclass.online Online antenatal training

      Comment


      • #4
        There are two quite different ways that this can be done.

        1) On the SellerDeck desktop when a site Upload is being done by using a PHP intrinsic function within a BlockIf.

        E.g. Do different things before and after a certain date (in this case yyyymmdd 20190118):
        Code:
        <actinic:block if="date%28%22Ymd%22%29%20%3e%3d%2020190118" >
            On or after 20190118
        </actinic:block>
        
        <actinic:block if="date%28%22Ymd%22%29%20%3c%2020190118" >
            Before 20190118
        </actinic:block>
        Best not to upload your site just before midnight as the date may be different for some products.

        2) On the web page using JavaScript like my post re delivery cutoff time mentioned above.
        However hiding products via browser JavaScript may be a bad idea as they will still show on the Search, Section Pages, etc.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


        • #5
          Hi Norman,

          The ability to 'Thank you' seems to have gone. I have liked your post instead but please consider yourself very much thanked.

          Phil
          Phil Howell
          Director
          Intuition Un Ltd
          www.turmerlicious.com A range of delicious Turmeric Latte's #veryaddictive

          Also
          Awarding winning publishers of Natal Hypnotherapy™, the UK's leading provider of hypnosis for conception, pregnancy and child birth having helped over 100,000 women through antenatal courses and self hypnosis CDs
          www.natalhypnotherapy.co.uk Hypnobirthing in English
          www.natalhypnotherapy.fr Hypnobirthing in french
          www.hypnobirthingclass.online Online antenatal training

          Comment

          Working...
          X