Announcement

Collapse
No announcement yet.

Redraw INVC screen?

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

    Redraw INVC screen?



    Hey, here's one for the gurus:

    A client has asked for a button on the INVC screen that will call up a
    printer-friendly version (narrower, text only). At first I thought that
    this would be simple; but there's a complication because the user is logged
    out when INVC is displayed. I could just make my button pass the order
    number as a parameter for the alternate screen, but this is a slight
    security risk, since it means that anyone can retrieve the info if they
    know the number.

    I suppose a better solution is to do something with the session ID, after
    retrieving it from the cookie ... anybody done this before? Any other ideas?

    Thanks --

    Kent Multer | /| P.O.Box 701895, Dallas TX 75370
    Magic Metal Productions | / | (214) 824 8937 voice/fax
    | | [email protected]
    * Web designer/developer http://frontpage.dallas.net/~kent
    * Miva Script consultant
    * Author, The Official Miva Web Scripting Book -- available on-line:
    <A HREF ="http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA</A>



    #2
    Redraw INVC screen?



    Hey Kent,

    Sebenza already has something for $24
    http://jmhonline.net/cgi-bin/mivamodules/go.cgi?id=429

    Jason

    >
    > I suppose a better solution is to do something with the session ID, after
    > retrieving it from the cookie ... anybody done this before? Any other
    ideas?
    >
    > Thanks --
    >
    > Kent Multer | /| P.O.Box 701895, Dallas TX 75370
    > Magic Metal Productions | / | (214) 824 8937 voice/fax
    > | | [email protected]
    > * Web designer/developer
    http://frontpage.dallas.net/~kent
    > * Miva Script consultant
    > * Author, The Official Miva Web Scripting Book -- available on-line:
    > <A HREF ="http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA</A>
    >
    >

    Comment


      #3
      Redraw INVC screen?



      Kent wrote:
      > out when INVC is displayed. I could just make my button pass the order
      > number as a parameter for the alternate screen, but this is a slight
      > security risk, since it means that anyone can retrieve the info if they
      > know the number.

      Only if they also know the login and password. If all you needed was an
      order number, there would be no security in a Miva Merchant store.
      Think about it, orders start at 1001 and go to whenever. If someone
      orders something from your store and they know their order number is
      12345, then they have a pretty good idea what the previous recent order
      numbers are. It does them no good, since they won't see the order
      unless they know the login and password. If you want them to see the
      invoice with all the same details except on a narrower screen, you can
      make a link to your special screen with the order number and they can
      login and print it. If you want them to see a "similar" invoice (may
      not include all info from the invoice), there are already modules that
      redraw most of the info.

      --
      Bill Weiland - Emporium Plus <A HREF ="http://www.emporiumplus.com/store.mvc ">http://www.emporiumplus.com/store.mvc </A>
      Modules for eCommerce. Mail Mgr, Coupon, Rate This, Wait List Mgr,
      PayPal, Gift/Wish List, Froogle data feed, Shipping & dozens more
      Online Documentation <A HREF ="http://www.emporiumplus.com/tk3/v3/doc.htm ">http://www.emporiumplus.com/tk3/v3/doc.htm </A>
      Product Question <A HREF ="http://www.emporiumplus.com/store4.mvc?Screen=SPTS ">http://www.emporiumplus.com/store4.mvc?Screen=SPTS </A>
      |


      Comment


        #4
        Redraw INVC screen?



        Kent,

        Just append the time of the order to the URL. This number should be
        sufficiently random that combined with the Order # itself would be
        impossible to guess.

        Darren Ehlers
        OpenUI Developer Consortium
        <A HREF ="http://www.openui.org/ ">http://www.openui.org/ </A>

        > -----Original Message-----
        > From: [email protected]
        > [mailto:[email protected]] On Behalf Of Kent
        > Sent: Friday, June 06, 2003 2:18 AM
        > To: Miva Merchant coders list
        > Subject: [mrc] Redraw INVC screen?
        >
        >
        > Hey, here's one for the gurus:
        >
        > A client has asked for a button on the INVC screen that will
        > call up a
        > printer-friendly version (narrower, text only). At first I
        > thought that
        > this would be simple; but there's a complication because the
        > user is logged
        > out when INVC is displayed. I could just make my button pass
        > the order
        > number as a parameter for the alternate screen, but this is a slight
        > security risk, since it means that anyone can retrieve the
        > info if they
        > know the number.
        >
        > I suppose a better solution is to do something with the
        > session ID, after
        > retrieving it from the cookie ... anybody done this before?
        > Any other ideas?
        >
        > Thanks --
        >
        > Kent Multer | /| P.O.Box 701895,
        > Dallas TX 75370
        > Magic Metal Productions | / | (214) 824 8937 voice/fax
        > | | [email protected]
        > * Web designer/developer
        > http://frontpage.dallas.net/~kent
        > * Miva Script consultant
        >
        > * Author, The Official Miva Web Scripting Book -- available on-line:
        >
        > <A HREF ="http://www.amazon.com/exec/obidos/ISBN=> 0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=> 0966103211/magicmetalproducA</A>
        >
        >

        Comment


          #5
          Redraw INVC screen?



          While there may be modules to do this, since this is the Merchant Coders
          list, maybe a brief discussion on various approaches is in order.

          For example, one approach may be to change the invoice action to also write
          an HTML file containing the simplified layout, link to that HTML file by
          order number. Simple, but not to secure. You could also perhaps, run a
          time-based script to remove these pages after say five minutes or so.
          Another alternative is to actually just write ONE invoice screen using CSS
          Print Media functions, or just more careful HTML, so that, in 99% of the
          cases, it will print on A4 paper.

          -Bruce


          > -----Original Message-----
          > From: [email protected]
          > [mailto:[email protected]]On Behalf Of Jason Henderson
          > Sent: Friday, June 06, 2003 12:59 AM
          > To: Miva Merchant coders list; Kent
          > Subject: Re: [mrc] Redraw INVC screen?
          >
          >
          > Hey Kent,
          >
          > Sebenza already has something for $24

          >
          > Jason
          >
          > >
          > > I suppose a better solution is to do something with the session
          > ID, after
          > > retrieving it from the cookie ... anybody done this before? Any other
          > ideas?
          > >
          > > Thanks --
          > >
          > > Kent Multer | /| P.O.Box 701895,
          > Dallas TX 75370
          > > Magic Metal Productions | / | (214) 824 8937 voice/fax
          > > | | [email protected]
          > > * Web designer/developer
          > http://frontpage.dallas.net/~kent
          > > * Miva Script consultant
          > > * Author, The Official Miva Web Scripting Book -- available on-line:
          > > <A HREF ="http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA</A>
          > >
          > >

          Comment


            #6
            Redraw INVC screen?



            Exactly.

            Scott

            Sebenza Studios
            <A HREF ="http://www.sebenzastudios.com">http://www.sebenzastudios.com</A>
            <A HREF ="http://www.mvcool.com/SS - Miva Modules">http://www.mvcool.com/SS - Miva Modules</A>


            ----- Original Message -----
            From: "Darren Ehlers" <[email protected]>
            To: "'Kent'" <[email protected]>; "'Miva Merchant coders list'"
            <[email protected]>
            Sent: Friday, June 06, 2003 8:02 AM
            Subject: RE: [mrc] Redraw INVC screen?


            > Kent,
            >
            > Just append the time of the order to the URL. This number should be
            > sufficiently random that combined with the Order # itself would be
            > impossible to guess.
            >
            > Darren Ehlers
            > OpenUI Developer Consortium
            > <A HREF ="http://www.openui.org/">http://www.openui.org/</A>
            >
            > > -----Original Message-----
            > > From: [email protected]
            > > [mailto:[email protected]] On Behalf Of Kent
            > > Sent: Friday, June 06, 2003 2:18 AM
            > > To: Miva Merchant coders list
            > > Subject: [mrc] Redraw INVC screen?
            > >
            > >
            > > Hey, here's one for the gurus:
            > >
            > > A client has asked for a button on the INVC screen that will
            > > call up a
            > > printer-friendly version (narrower, text only). At first I
            > > thought that
            > > this would be simple; but there's a complication because the
            > > user is logged
            > > out when INVC is displayed. I could just make my button pass
            > > the order
            > > number as a parameter for the alternate screen, but this is a slight
            > > security risk, since it means that anyone can retrieve the
            > > info if they
            > > know the number.
            > >
            > > I suppose a better solution is to do something with the
            > > session ID, after
            > > retrieving it from the cookie ... anybody done this before?
            > > Any other ideas?
            > >
            > > Thanks --
            > >
            > > Kent Multer | /| P.O.Box 701895,
            > > Dallas TX 75370
            > > Magic Metal Productions | / | (214) 824 8937 voice/fax
            > > | | [email protected]
            > > * Web designer/developer
            > > http://frontpage.dallas.net/~kent
            > > * Miva Script consultant
            > >
            > > * Author, The Official Miva Web Scripting Book -- available on-line:
            > >
            > > <A HREF ="http://www.amazon.com/exec/obidos/ISBN=> 0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=> 0966103211/magicmetalproducA</A>
            > >
            > >

            Comment


              #7
              Redraw INVC screen?



              ------=_NextPart_000_0004_01C32C58.F1FD2830
              Content-Type: text/plain;
              charset="iso-8859-1"
              Content-Transfer-Encoding: 7bit

              You know, if you have a way to customize your INVC screen, a better way
              to
              provide a printable invoice screen is through CSS. This is covered in
              the
              book "Eric Meyer on CSS" starting on page 128. Here's a link to this
              excellent book:

              Eric Meyer on CSS: Mastering the Language of Web Design
              by Eric A. Meyer

              If you want to see a fantastic example of what can be done easily to
              make
              your invoice screen look great with the use of CSS, visit this page:

              http://w6daily.winn.com/000983.html

              You will need to visit the page, then either do a print preview or just
              print out the page. BIG difference! There isn't any magic "printable
              version" -- it's all right there in the page code.

              Anyway, just something to think about.

              HTH
              Tom

              PS, another fantastic book about CSS:
              Cascading Style Sheets: Separating Content from Presentation
              by Owen Briggs, Steve Champeon, Eric Costello, Matthew Patterson



              > -----Original Message-----
              > From: [email protected]
              > [mailto:[email protected]]On Behalf Of Bruce - PHOSPHOR
              > Media
              > Sent: Friday, June 06, 2003 10:14 AM
              > To: Miva Merchant coders list
              > Subject: RE: [mrc] Redraw INVC screen?
              >
              >
              > While there may be modules to do this, since this is the Merchant
              Coders
              > list, maybe a brief discussion on various approaches is in order.
              >
              > For example, one approach may be to change the invoice action to
              > also write
              > an HTML file containing the simplified layout, link to that HTML file
              by
              > order number. Simple, but not to secure. You could also perhaps, run a
              > time-based script to remove these pages after say five minutes or so.
              > Another alternative is to actually just write ONE invoice screen using
              CSS
              > Print Media functions, or just more careful HTML, so that, in 99% of
              the
              > cases, it will print on A4 paper.
              >
              > -Bruce
              >
              >
              > > -----Original Message-----
              > > From: [email protected]
              > > [mailto:[email protected]]On Behalf Of Jason Henderson
              > > Sent: Friday, June 06, 2003 12:59 AM
              > > To: Miva Merchant coders list; Kent
              > > Subject: Re: [mrc] Redraw INVC screen?
              > >
              > >
              > > Hey Kent,
              > >
              > > Sebenza already has something for $24
              >
              > >
              > > Jason
              > >
              > > >
              > > > I suppose a better solution is to do something with the session
              > > ID, after
              > > > retrieving it from the cookie ... anybody done this before? Any
              other
              > > ideas?
              > > >
              > > > Thanks --
              > > >
              > > > Kent Multer | /| P.O.Box 701895,
              > > Dallas TX 75370
              > > > Magic Metal Productions | / | (214) 824 8937 voice/fax
              > > > | | [email protected]
              > > > * Web designer/developer
              > > http://frontpage.dallas.net/~kent
              > > > * Miva Script consultant
              > > > * Author, The Official Miva Web Scripting Book -- available
              on-line:
              > > >
              > <A HREF ="http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA</A>
              > > >
              > > >

              Comment


                #8
                Redraw INVC screen?



                Yes, CSS is much better way to handle printing. If you have Ultra Batch
                installed in your store, you can see the example of using CSS for
                different screen and printed layout directly in the Admin. CSS is used
                for hiding the control header, toolbars, navigation, for setting
                margins, for inserting page-breaks between invoices, etc. The user does
                not need to reload the page to get a printable version - just clicking
                the printing button, that's all.

                Ivo Truxa

                | http://miva.truxoft.com
                | Advanced Miva Merchant modules


                -----Original Message-----
                From: Tom

                You know, if you have a way to customize your INVC screen, a better way
                to
                provide a printable invoice screen is through CSS. This is covered in
                the
                book "Eric Meyer on CSS" starting on page 128. Here's a link to this
                excellent book:

                Eric Meyer on CSS: Mastering the Language of Web Design
                by Eric A. Meyer

                If you want to see a fantastic example of what can be done easily to
                make
                your invoice screen look great with the use of CSS, visit this page:

                http://w6daily.winn.com/000983.html

                You will need to visit the page, then either do a print preview or just
                print out the page. BIG difference! There isn't any magic "printable
                version" -- it's all right there in the page code.

                Anyway, just something to think about.

                HTH
                Tom

                PS, another fantastic book about CSS:
                Cascading Style Sheets: Separating Content from Presentation
                by Owen Briggs, Steve Champeon, Eric Costello, Matthew Patterson





                Comment


                  #9
                  Redraw INVC screen?



                  ------=_NextPart_000_000D_01C32C60.147AF1B0
                  Content-Type: text/plain;
                  charset="iso-8859-1"
                  Content-Transfer-Encoding: 7bit

                  Oops, I guess I should actually provide the links if I say I'm going to
                  provide the links!

                  "Eric Meyer on CSS: Mastering the Language of Web Design"
                  by Eric A. Meyer
                  <A HREF ="http://www.amazon.com/exec/obidos/ASIN/073571245X/tomcatstci-20/">http://www.amazon.com/exec/obidos/ASIN/073571245X/tomcatstci-20/</A>

                  "Cascading Style Sheets: Separating Content from Presentation"
                  by Owen Briggs, Steve Champeon, Eric Costello, Matthew Patterson
                  <A HREF ="http://www.amazon.com/exec/obidos/ASIN/1904151043/tomcatstci-20/">http://www.amazon.com/exec/obidos/ASIN/1904151043/tomcatstci-20/</A>

                  HTH
                  Tom

                  > -----Original Message-----
                  > From: [email protected]
                  > [mailto:[email protected]]On Behalf Of Bruce - PHOSPHOR
                  > Media
                  > Sent: Friday, June 06, 2003 10:14 AM
                  > To: Miva Merchant coders list
                  > Subject: RE: [mrc] Redraw INVC screen?
                  >
                  >
                  > While there may be modules to do this, since this is the Merchant
                  Coders
                  > list, maybe a brief discussion on various approaches is in order.
                  >
                  > For example, one approach may be to change the invoice action to
                  > also write
                  > an HTML file containing the simplified layout, link to that HTML file
                  by
                  > order number. Simple, but not to secure. You could also perhaps, run a
                  > time-based script to remove these pages after say five minutes or so.
                  > Another alternative is to actually just write ONE invoice screen using
                  CSS
                  > Print Media functions, or just more careful HTML, so that, in 99% of
                  the
                  > cases, it will print on A4 paper.
                  >
                  > -Bruce
                  >
                  >
                  > > -----Original Message-----
                  > > From: [email protected]
                  > > [mailto:[email protected]]On Behalf Of Jason Henderson
                  > > Sent: Friday, June 06, 2003 12:59 AM
                  > > To: Miva Merchant coders list; Kent
                  > > Subject: Re: [mrc] Redraw INVC screen?
                  > >
                  > >
                  > > Hey Kent,
                  > >
                  > > Sebenza already has something for $24
                  >
                  > >
                  > > Jason
                  > >
                  > > >
                  > > > I suppose a better solution is to do something with the session
                  > > ID, after
                  > > > retrieving it from the cookie ... anybody done this before? Any
                  other
                  > > ideas?
                  > > >
                  > > > Thanks --
                  > > >
                  > > > Kent Multer | /| P.O.Box 701895,
                  > > Dallas TX 75370
                  > > > Magic Metal Productions | / | (214) 824 8937 voice/fax
                  > > > | | [email protected]
                  > > > * Web designer/developer
                  > > http://frontpage.dallas.net/~kent
                  > > > * Miva Script consultant
                  > > > * Author, The Official Miva Web Scripting Book -- available
                  on-line:
                  > > >
                  > <A HREF ="http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA">http://www.amazon.com/exec/obidos/ISBN=0966103211/magicmetalproducA</A>
                  > > >
                  > > >

                  Comment

                  Working...
                  X