New Zenner
- Join Date:
- Aug 2006
- Location:
- London
- Posts:
- 53
- Plugin Contributions:
- 0
Prefix to ID No.
Hiya
Is it possible to add a prefix to the Invoice Number, say:
M&S07/0001
Thanks
Views: 3,295
New Zenner
Hiya
Is it possible to add a prefix to the Invoice Number, say:
M&S07/0001
Thanks
Obaa-san
Will the prefix be that same always?
Please do not PM for support issues: a private solution doesn't benefit the community.
Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.
New Zenner
Hi, No next year will be M&S08/0001
Thanks
Obaa-san
Only in the Admin for the invoice?
Please do not PM for support issues: a private solution doesn't benefit the community.
Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.
New Zenner
? Admin for invoices? Sorry on't get that.
Sensei
Kim is asking whether you only want to display the "prefix" in the admin when printing invoices for customers. I'm guessing you'll end up answering "no" to that question.
If you feel that it's necessary to have a prefix on your order numbers, you will have to manually inject a prefix in several places in the code.
This post shows the concept, although it is an old entry and you will need to adapt it for the newer version of Zen Cart. You will not be able to reply to that post, since it is locked in the archives.
http://www.zen-cart.com/forum/showthread.php?t=13502
Be sure to use the overrides system when saving your changes.
Your changes will not be automatically retained during an upgrade. You'll have to preserve them manually.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
New Zenner
Thanks - will check it out.
New Zenner
I have zen 125d and can't for the life of me figure out how to add the prefix to this version .
I checked the post on ...
http://www.zen-cart.com/forum/showthread.php?t=13502
I have tried looking for the differences between 124 and 125d to locate where the prefix can be set but I am at a loss :-(
I searched through using the Developers tool kit but the entries seem to be totally different in 125d.. as well as the file structure..
Any help to achieve this would be much welcomed :-)
or even just a few clues :-)
thanks again guys
**Steve
Australia
http://home-business-host.com - Hosting and Design
**
I do it not for you - I do it for the people that did it for me :-)
Sensei
For the post you referenced, the only differences between the posted line numbers and v1.2.5 are:
/includes/classes/order.php
806 = 818
815 = 827
889 = 901
895 = 907
/admin/orders.php
77 = 104
85 = 112
287 = 318
609 = 639
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Zen Follower
Does anyone know how this can be done in 1.3.7 version. I have 2 shops and I want to prefix the invoice number of each shop so the invoice numbers are not duplicated for accounting purposes.
Regards
laurie
Sensei
There's an older archived post based on an older version of Zen Cart, which discusses something similar to what you're after.
Perhaps it might be a starting point for you in making the customizations you'll require:
http://www.zen-cart.com/forum/showthread.php?t=13502
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Tell staff why this post should be reviewed.