Announcement

Collapse
No announcement yet.

How to displaying multiple timed promotions?

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

    How to displaying multiple timed promotions?

    Currently use a "timed" Content Sections on CTGY Sale page Header to display sale promotions without a problem. However, we often times have multiple overlapping promotions (running at the same time) but with different start and end dates.

    How would I go about displaying each promotion have some promotions current promotions expires on different dates. How would I individually display all promotions currently running? I thought about nesting Content Sections, but I don't believe that is possible, and/or to complicated.

    Example:
    Code:
    <ul>
    <li>PROMO-A</li> [start 11/21/2019, 4:59:59 PM / end 11/24/2019, 11:59:59 PM] <li>PROMO-B</li> [start 11/22/2019, 4:59:59 PM / end 11/25/2019, 11:59:59 PM] <li>PROMO-C</li> [start 11/22/2019, 4:59:59 PM / end 11/25/2019, 11:59:59 PM] <li>PROMO-D</li> [start 11/23/2019, 4:59:59 PM / end 11/26/2019, 11:59:59 PM] <li>PROMO-E</li> [start 11/23/2019, 4:59:59 PM / end 11/26/2019, 11:59:59 PM]
    <ul>
    Finally, is there a code to dynamically display Price Group field "Not Valid After" value?

    Example:
    Code:
    <ul>
    <li>PROMO-A (Expires [date] Midnight EDT.)</li> <li>PROMO-B (Expires [date] Midnight EDT.)</li> <li>PROMO-C (Expires [date] Midnight EDT.)</li> <li>PROMO-D (Expires [date] Midnight EDT.)</li> <li>PROMO-E (Expires [date] Midnight EDT.)</li>
    <ul>
    Thank you, Bill Davis

    #2
    Since the "timed" Content Sections are not an "out of the box" feature for Miva, have you contacted the Content Wizard module developer?
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    Comment


      #3
      This is pretty easy to do with template coding.
      Code:
      <mvt:assign name="l.today" value="mktime_t(s.tm_year, s.tm_mon, s.tm_mday, 0, 0, 0, timezone())" />
      
      <mvt:if expr="(l.today GE mktime_t(2019, 11, 21, 0, 0, 0, timezone()))
       AND (l.today LE mktime_t(2019, 11, 28, 23, 59, 59, timezone()))">
      
          Happy Thanksgiving!
      
      <mvt:elseif expr="(l.today GE mktime_t(2019, 12, 18, 0, 0, 0, timezone()))
       AND (l.today LE mktime_t(2019, 12, 24, 23, 59, 59, timezone()))">
      
         Merry Christmas!
      
      ... etc. ...
      
      </mvt:if>
      You may have to use a number instead of the timezone() function call, if your store is not in the time zone where your server is hosted.
      Kent Multer
      Magic Metal Productions
      http://TheMagicM.com
      * Web developer/designer
      * E-commerce and Miva
      * Author, The Official Miva Web Scripting Book -- available on-line:
      http://www.amazon.com/exec/obidos/IS...icmetalproducA

      Comment


        #4
        RE: timezone()...interesting...I was today-years-old when I learned about that one. maybe we should create a forum thread called: "Functions I Just Learned About"...
        Bruce Golub
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment


          #5
          Leslie, I have done many conditional timed Price Groups Content Section marketing campaigns, wherein they display a promotion and when the promotion is over it displays something else. What I was hoping for was a suggestion on how to dynamically produce an unordered list of different promotions based on multiple Price Groups promotions.

          Listing (e.g.: <ul><il></il></un>) promotions is not ideal, but it is what I am willing to settle for at least for now. My ultimate goal is a far better while streamlining the entire campaign(s) production process from display to email with minimal to zero coding. Thus significantly reducing the amount of time required to fully execute campaign(s) without added costs. Though I believe I may posses some of the resources required for such endeavor, I lack the Miva coding skills needed to execute same. Unless I am mistaken, I don't believe its a complicated project, but it might be time consuming. I also believe most if not almost all of the work is front-end (e.g.: conditionals, etc...), maybe a module solution, not sure -that's wherein my lack of Miva technical and coding skills impedes my ability to execute my goal.

          As to Kent response, thanks. After I read your solution I realized my first example failed to convey that each promotion displayed is driven by a timed Price Groups.
          Thank you, Bill Davis

          Comment


            #6
            My apologies for "assuming" you are using Scot's ReadyTheme Content Wizard. I know Scot would be interested in adding features to the module, you'd just have to ask him.
            Leslie Kirk
            Miva Certified Developer
            Miva Merchant Specialist since 1997
            Previously of Webs Your Way
            (aka Leslie Nord leslienord)

            Email me: [email protected]
            www.lesliekirk.com

            Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

            Comment


              #7
              Oh, so you want the announcements to be controlled by the start and end dates of various price-group discounts? Sorry I missed that. This also can be done with template coding, but it gets rather complex. A module might be a better way to go, especially if you're going to have a large number of promotions to manage.
              Kent Multer
              Magic Metal Productions
              http://TheMagicM.com
              * Web developer/designer
              * E-commerce and Miva
              * Author, The Official Miva Web Scripting Book -- available on-line:
              http://www.amazon.com/exec/obidos/IS...icmetalproducA

              Comment


                #8
                Originally posted by Kent Multer View Post
                Oh, so you want the announcements to be controlled by the start and end dates of various price-group discounts? Sorry I missed that. This also can be done with template coding, but it gets rather complex. A module might be a better way to go, especially if you're going to have a large number of promotions to manage.
                Truth be told Kent you did not "miss" anything, I had failed to mention it in my rush to write my thoughts down, you are a true gentlemen.

                As to a module vs a front-end solution, I was hoping that was not the case. Modules are great solutions, but sometimes require greater resources than front-end solutions -depending on the nature of the project of course. Though I believe my idea as I envision it would be of great value to any size shop by significantly streamlining the entire digital marketing process (e.g.: Store, eMail and more...).

                Ideally, when a desired Price Group promotion is made it would create a Content Section containing desired template (e.g.: product and/or category display) to be conditionally displayed on any page based on said Price Group settings, and a second Content Section to be conditionally used in a email template. Note, the second Content Section would need the ability to use a different product and/or category display template if so desired.

                The email template would then render the HTML code necessary to be used with any third-party desktop bulk email software (with no recurring costs).
                Thank you, Bill Davis

                Comment

                Working...
                X