Results 1 to 5 of 5

Print Order Receipt with oscmax 2.0

This is a discussion on Print Order Receipt with oscmax 2.0 within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; This was previously posted under the oscommerce new module forum, but after looking through the forum I didn't see many ...

      
  1. #1
    Active Member
    Join Date
    Aug 2004
    Posts
    117
    Rep Power
    0


    Default Print Order Receipt with oscmax 2.0

    This was previously posted under the oscommerce new module forum, but after looking through the forum I didn't see many other responses to the posting of new modules, so this is my attempt to move my posting over here into a more appropriate area where someone maybe able to assist me. Thanks.

    *******
    Hi -

    I've installed Print Order receipt on my oscmax 2.0 site. The button works great under account_history_info.php On the checkout_success.php page the "print invoice" works if a customer has an account and places an order. If a customer follows the "Proceed directly to checkout" WITHOUT creating an account the "print invoice" button launches a window with the login.php page showing.

    Does anyone have any suggestions about how I might modify the code, so that if a person doesn't create an account they can still print a reciept from the checkout_success.php page?

    Thank you,
    Barb

  2. #2
    Active Member MindTwist's Avatar
    Join Date
    Jun 2007
    Location
    Barcelona, Spain
    Posts
    408
    Rep Power
    7


    Default Re: Print Order Receipt with oscmax 2.0

    They can't. Otherwise anyone would be able to see everyone else's purchases, receipts/invoices can only be seen by the customer id to whom the order belongs to.

    If someone makes a purchase without registering with PWA (Purchase without account), they won't be able to later see any information related to that purchase. AFter all, they are the ones who decided to make the purchase without registering...

  3. #3
    Active Member
    Join Date
    Aug 2004
    Posts
    117
    Rep Power
    0


    Default Re: Print Order Receipt with oscmax 2.0

    Is there a way to give a person who does a "purchase without an account" an immediate printable receipt from the screen? I know the customer gets an email confirmation, but for some of our customers they are not receiving because of spam filters on their hosts, so I wanted to give them another way to print their receipt.

    Thank you for your reply.
    Barb

  4. #4
    Active Member MindTwist's Avatar
    Join Date
    Jun 2007
    Location
    Barcelona, Spain
    Posts
    408
    Rep Power
    7


    Default Re: Print Order Receipt with oscmax 2.0

    From what I know there are not any already made contributions for that so you would have to modify one of the existing ones.

    You have Print Order receipt, you have PDF Customer Invoice, and probably more, but they all take their data from the DB so they do check that whoever is trying to look at an invoice is the person who placed that order, so they won't work with PWA.

    I would just put a warning when someone wants to use PWA on what they lose if they do not create an account. After all, it is the customer the one who chooses NOT to create an account. What you want might be a security issue if you pull the data from the database, like I can go to example.com/receipt.php?orders_id=123 and see what the order 123 contained even I am not the one that placed it.

  5. #5
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    21


    Default Re: Print Order Receipt with oscmax 2.0

    1) on process of an order place a cookie on the customer called PWA_OID with the OrderID and the customers email in it.
    2) modify Print Order Receipt to look for the cookie if there is no login name
    3) check the e-mail on the order to the order number hen trying to pull the order (if you want to add more security, put the orders zip code in the cookie as well and check for that too)
    4) if all checks are met, print the order.
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

Similar Threads

  1. osCMax Development Update : Order Editor, Manual Order Maker
    By michael_s in forum Announcement Discussions
    Replies: 8
    Last Post: 09-15-2008, 04:46 AM
  2. Print Order receipt
    By michael_s in forum New osCommerce Contributions
    Replies: 1
    Last Post: 08-19-2008, 08:12 AM
  3. Print all shipping label WITHOUT open any order detail page?
    By kepin in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 07-05-2007, 09:48 PM
  4. Print Order receipt
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 06-15-2007, 12:00 PM
  5. Print Order
    By ladyk in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 01-08-2007, 01:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •