Invoice No.

Problems installing or using the NOP Design Free Shopping Cart. **ARCHIVE** Please post new topics to one of the groups below.

Moderator: scott

Invoice No.

Postby bernie » Mon Jan 20, 2003 2:12 pm

I was hoping the answer given to wploong would have done for me but sadly, no.

I need an invoice number each time an order is made.
My setup is that I am only using managecart and checkout.html as this info is handled by a secure server to where I go and read the order.

Is there somewhere in the checkout that a number generator can be called up each time it is sent to the form handler?

PS
or in the nopcart.js ?
Winners aren't Quitters
Quitters aren't Winners
bernie
 
Posts: 24
Joined: Sat Oct 12, 2002 4:00 pm

Postby scott » Mon Jan 20, 2003 11:28 pm

See my other threads in this forum. You can do the 'date trick' I used in Javascript as well. Just have it write your form element like that. BEFORE the call to checkoutcart within your script tag, add the line to write your hidden field. Read the other posts, and some JS boards -- you should be able to figure it out. If you are still really stuck, post as much as you figured out, and I'll try to help.

_Scott
scott
Site Admin
 
Posts: 558
Joined: Sun Jul 14, 2002 7:00 pm
Location: Phoenix, AZ

Postby bernie » Tue Jan 21, 2003 12:52 pm

Thank you both very much, I will give this a go.
Winners aren't Quitters
Quitters aren't Winners
bernie
 
Posts: 24
Joined: Sat Oct 12, 2002 4:00 pm

Postby BadHabit » Tue Jan 21, 2003 1:22 pm

This is excellent and thanks for the example code. The only item that might be missing is adding the invoice number to the CSV file for that order.
BadHabit
WebMaster
 
Posts: 19
Joined: Thu Jan 16, 2003 12:25 pm
Location: Atlanta, Georgia

that can be done as well

Postby winkphoto » Thu Jan 23, 2003 6:57 pm

That can be done as well.

In the checkout.pl file, add this:

Code: Select all
print CSVF "\",\"";
   print CSVF "$this_Nbr";


Just place that wherever you want the order number to appear.

It can also be added to the Emails as well:

Code: Select all
 open (MAIL,"|$mailprogram");
   print MAIL "To: $youremail\n";
   print MAIL "From: $b_email\n";
   print MAIL "Subject: New Online Order\n";
   print MAIL "\n\n";
   print MAIL "A new order has been received.  A summary of this order appears below.\n";
   print MAIL "\n";
   print MAIL "Order Number: $this_Nbr, Dated: $months[$month] $day, $year $hour:$min:$sec\n";
   print MAIL " \n";


Regards,


Marc
winkphoto
Guru
 
Posts: 176
Joined: Fri Nov 15, 2002 9:21 pm
Location: Nashua, NH

Willthis work with checkout.php?

Postby g » Wed Jan 29, 2003 4:56 pm

Will this work with the checkout.php also?
g
 

Invoice into serial and membership numbers

Postby Michael » Mon Apr 07, 2003 8:25 pm

I like the idea of automating invoice numbering; but I have another application for the same idea - creating membership numbers for sign-up pages.

However, I have my own slant on this and I wonder if anyone has any thoughts on whether it would work before I go ahead and make a fool of myself.

:roll:

The idea is to have two or three separate membership sign-on pages, for basic, intermediate and agent members. Each will have its own modified checkout.pl cgi, but all will refer to a single member.dat file for the incrementing serial number. This way I can automatically give everyone a single unique sequential membership number but deal with them through separate database entries (modified e-mail responses and database scripts for different information on applications forms, etc.).

Obviously with three checkout.pl scripts using a single *.dat file there is every chance of a conflict. Is this likely to occur or would my web server, and the scripts, be able to handle the load and any conflicts?

:lol:
http://www.sterling-bond.com - Escrow merchant accounts. Creating A World Of Trust.
"/" Stroke, what you do to make a woman happy.
"\" Backstroke, what you do to a woman after you've made her happy.
Michael
 
Posts: 80
Joined: Fri Aug 09, 2002 10:18 pm
Location: UK


Return to Installation and Setup Problems

Who is online

Users browsing this forum: No registered users and 1 guest