Announcement

Collapse
No announcement yet.

Need "Order within the next X hours and your order ships today" mod.

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

    Need "Order within the next X hours and your order ships today" mod.

    Does anyone know of a mod that will tell customers on the product page how long they have to order an item and have it shipped the same day? We ship all orders if received by 4pm Eastern the same day. So we want to notify the customer that if they order an item let's say within the next 4 hours it will ship today - something like "Order this item within the next 4 hours and your order ships today!". A lot of sites do this, including Amazon.

    Thanks for any help.

    Eric

    #2
    Re: Need "Order within the next X hours and your order ships today" mod.

    Is that really a module or just a countdown on your page?
    Thanks,

    Rick Wilson
    CEO
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: Need "Order within the next X hours and your order ships today" mod.

      Hey Eric -

      This can be done without a custom module using some toolkit logic. It has the ability to read in the current time and display a message to your customers on the product page or basket page (really wherever you want it).

      It is probably 3 to 4 hours of customization to get it working.

      We're happy to point you in the right direction if you're interested in doing it yourself or if you would rather just have someone do it for you feel free to contact us and we can get it implemented for you.
      Brennan Heyde
      VP Product
      Miva, Inc.
      [email protected]
      https://www.miva.com

      Comment


        #4
        Re: Need "Order within the next X hours and your order ships today" mod.

        Hi Brennan,

        Thanks for the info. We have Toolkit, I'll take a look at it. How much would you guys charge to do it?

        Thanks,
        Eric

        Comment


          #5
          Re: Need "Order within the next X hours and your order ships today" mod.

          I believe you already have the tool kit. So take a look at #140 at http://www.emporiumplus.com/1AA00223.html It isn't exactly (it talks about 3 days in the future shipping) what you are looking for but it shows some extensive use of time/date features. The example shows a projection of ship date based on time of day and day of week. You could even get more elaborate and include holidays. You would just adjust the number of hours back to the current day. The example puts the final computation into a product attribute that is included in the basket, emails, and invoice. You can even have some products ship on one day and others shipping with a different time frame.
          Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
          Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
          Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
          Facebook http://www.facebook.com/EmporiumPlus
          Twitter http://twitter.com/emporiumplus

          Comment


            #6
            Re: Need "Order within the next X hours and your order ships today" mod.

            Thanks, Bill. We have version 5.1740 of Tool Kit. Will that version do it?

            Has anyone else already done something like this and want to donate their code for the rest of us? ;)

            Thanks,
            Eric

            Comment


              #7
              Re: Need "Order within the next X hours and your order ships today" mod.

              5.174 will do all of it except insert the attribute in the basket entry. But that is just fluff. You want to show them a message on the screen. Those are time/date functions that have been in the Tool Kit for several years.
              Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
              Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
              Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
              Facebook http://www.facebook.com/EmporiumPlus
              Twitter http://twitter.com/emporiumplus

              Comment


                #8
                Re: Need "Order within the next X hours and your order ships today" mod.

                I'm going to be doing something for this for a free shipping coupon expiration countdown. I'll post what I come up with here when I'm done.
                Last edited by Canexan; 11-21-12, 09:21 AM.

                Comment


                  #9
                  Re: Need "Order within the next X hours and your order ships today" mod.

                  It seems like you can't access system variables directly in store morph code. Is that why those toolkit time functions exist?


                  Edit: At least not all of them. I can get time_t, but I can't get tm_hour, tm_min, tm_sec. Is that normal?
                  Last edited by Canexan; 11-21-12, 09:38 AM.

                  Comment


                    #10
                    Re: Need "Order within the next X hours and your order ships today" mod.

                    Code:
                    <mvt:if expr="s.time_t GT '1353520500' AND s.time_t LT '1353520800'">
                    <mvt:item name="toolkit" param="set_time_zone|our_time|-5" />
                    <mvt:item name="toolkit" param="time_t_hour|cur_hour|our_time" />
                    <mvt:item name="toolkit" param="time_t_minute|cur_min|our_time" />
                    <mvt:item name="toolkit" param="time_t_second|cur_sec|our_time" />
                    <mvt:item name="toolkit" param="sassign|end_hour|23" />
                    <mvt:item name="toolkit" param="sassign|end_min|59" />
                    <mvt:item name="toolkit" param="sassign|end_sec|59" />
                    <mvt:item name="toolkit" param="math_subtract|left_hour|g.end_hour|g.cur_hour" />
                    <mvt:item name="toolkit" param="math_subtract|left_min|g.end_min|g.cur_min" />
                    <mvt:item name="toolkit" param="math_subtract|left_sec|g.end_sec|g.cur_sec" />
                    <mvt:item name="toolkit" param="padl|left_hour|left_hour|2|0" />
                    <mvt:item name="toolkit" param="padl|left_min|left_min|2|0" />
                    <mvt:item name="toolkit" param="padl|left_sec|left_sec|2|0" />
                    &mvt:global:left_hour;:&mvt:global:left_min;:&mvt:global:left_sec;
                    </mvt:if>
                    This turns on about a minute ago and will run for five minutes (that's just to test the outer if statement) and while running displays a countdown to the end of the day in padded hr:mn:sc

                    Note: we're actually in Central time here, but the server is in Eastern time. To make the countdown accurate I set the zone to server time, since midnight server time is when the coupon will expire.

                    Next step: Now that I have the starting point, I wonder if I can make it actually countdown on the page using javascript?
                    Last edited by Canexan; 11-21-12, 09:59 AM.

                    Comment


                      #11
                      Re: Need &quot;Order within the next X hours and your order ships today&quot; mod.

                      Canexan,

                      Thanks for sharing! Hopefully your work will help me and others in the future. :)

                      Eric

                      Comment


                        #12
                        Re: Need &quot;Order within the next X hours and your order ships today&quot; mod.

                        [QUOTE=Canexan;405810]
                        Code:
                        <mvt:if expr="s.time_t GT '1353520500' AND s.time_t LT '1353520800'">
                        <mvt:item name="toolkit" param="set_time_zone|our_time|-5" />
                        <mvt:item name="toolkit" param="time_t_hour|cur_hour|our_time" />
                        <mvt:item name="toolkit" param="time_t_minute|cur_min|our_time" />
                        <mvt:item name="toolkit" param="time_t_second|cur_sec|our_time" />
                        <mvt:item name="toolkit" param="sassign|end_hour|23" />
                        <mvt:item name="toolkit" param="sassign|end_min|59" />
                        <mvt:item name="toolkit" param="sassign|end_sec|59" />
                        <mvt:item name="toolkit" param="math_subtract|left_hour|g.end_hour|g.cur_hour" />
                        <mvt:item name="toolkit" param="math_subtract|left_min|g.end_min|g.cur_min" />
                        <mvt:item name="toolkit" param="math_subtract|left_sec|g.end_sec|g.cur_sec" />
                        <mvt:item name="toolkit" param="padl|left_hour|left_hour|2|0" />
                        <mvt:item name="toolkit" param="padl|left_min|left_min|2|0" />
                        <mvt:item name="toolkit" param="padl|left_sec|left_sec|2|0" />
                        &mvt:global:left_hour;:&mvt:global:left_min;:&mvt:global:left_sec;
                        </mvt:if>
                        Can this code be placed on any page? I tried putting it on one of our pages as a test and nothing displayed (and the Tool Kit item is assigned to that page).

                        Thanks,
                        Eric

                        Comment


                          #13
                          Re: Need &quot;Order within the next X hours and your order ships today&quot; mod.

                          Remove the if statement at the top and bottom and it will display.

                          Comment


                            #14
                            Re: Need &quot;Order within the next X hours and your order ships today&quot; mod.

                            Originally posted by Canexan View Post
                            Remove the if statement at the top and bottom and it will display.
                            Canexan,

                            This was quite a while ago, but I was just wondering if you ever finished the code for this countdown project?

                            I'd still like to implement a "Order within X hours:minutes and your order ships today".

                            Thanks,
                            Eric

                            Comment


                              #15
                              Originally posted by SpeakerRepair.com View Post
                              Does anyone know of a mod that will tell customers on the product page how long they have to order an item and have it shipped the same day? We ship all orders if received by 4pm Eastern the same day. So we want to notify the customer that if they order an item let's say within the next 4 hours it will ship today - something like "Order this item within the next 4 hours and your order ships today!". A lot of sites do this, including Amazon.

                              Thanks for any help.

                              Eric
                              Did you ever figure this out?
                              Thank you, Bill Davis

                              Comment

                              Working...
                              X