Announcement

Collapse
No announcement yet.

Delivery Dates

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

    Delivery Dates

    Hi,

    Whilst I was another website i noticed they had a cool "When to post option":

    4b - When should we post your order? (Optional)
    Post On Date: <SELECT BOX HERE>

    You may delay the sending of this box for up to 4 weeks.
    IMPORTANT: This is NOT the date of arrival! You should allow at least 1-2 working days for first class post.
    “ASAP” - As soon as possible - usually either today, or the next working day.
    “Xmas” - We will post your order to arrive a few days before Christmas.
    Please note: Your credit / debit card will be charged when you place your order, not on dispatch.
    I really like this idea and wondered how I could implement it? Any ideas so that I can use php to add 30 days onto the current date and then fill a select box, Defaulting to ASAP.?

    How would I then grab that selection?

    Thanks,
    Paul.

    #2
    The way to do this would be to convert the 'Shipping User Definable' field into a drop down list.

    To do this, go to 'Design | Library | Layouts' and expand the 'CHeckout Prompts' group. Towards the bottom you will find 'Shipping User Definable Prompt'.

    Replace

    <input type="text" name="SHIPUSERDEFINED" size="20" maxlength="255" value="<Actinic:Variable Name="ShipUserDefined"/>" />

    with something like...

    <select name="SHIPUSERDEFINED">
    <option value="ASAP" selected>ASAP</option>
    <option value="1 week">1 week</option>
    <option value="2 weeks">2 week</option>
    <option value="3 weeks">3 week</option>
    </select>

    Can't help you with the clever PHP though.

    Comment


      #3
      Never thought of this!

      I have already put it on one site works a treat, maybe one for the AUG Chris

      Cheers
      Darren

      Comment


        #4
        Hi Darren - did you use the example above or program php so that it has actual post dates on it?

        Thanks,
        Paul.

        Comment


          #5
          Just the example, PH What?

          Sorry a mere noice with scripts

          Darren

          Comment

          Working...
          X