Remove # from Order ID

Hey, Does anyone know how I can remove the hash from Order ID



At the moment I see:



Order: #1234



This is what I see when looking at invoice etc. It’s quite confusing giving the customer the Order ID with a hash because it doesn’t work in the tracking box, unless they remove the hash.



thanks

In skins/basic/mail/orders/invoice.tpl



Change:


{$lang.order} #{$order_info.order_id}





To:


{$lang.order}{$order_info.order_id}





Basically all I did was remove the:


#



I haven’t actually tried this, but it should work.



Brandon

I’m not sure about version 2 but in version 1.3.5 the hash is found in the templates under the Orders folder (i.e. invoice.tpl, order_notification_subj.tpl and probably a few other places). You need to find the template for the item you want to change and look for it in there.

After following all the steps below I have almost resolved it. The only trouble now is that I still have some hashes in the admin panel (refer to hash_problem.png). Sorry if the steps below are not great, i’m just very tired as i’ve been up all night and it’s 9.31am here now OUCH. The steps below allowed me to rename the labels, and remove the hashes from print invoice, print invoice (pdf), packing slip & some of the admin panel.



I hope it helps someone as I struggled finding out how to resolve this by doing a search on the forum (haha I bet you will all provide me with a forum link for sorting this problem out now).


[QUOTE]The steps below are how I changed my View orders page & customer pages/invoices to display all the labels as Order ID, and also how I removed # from the Order number.



Step 1 - Firstly I changed the label in the packing slip from “packing slip for order #01” to packing

slip for order ID: #01". To do this you go to the language section and search for “for order”. You then

replace this variable contents with “for Order ID”. The hash will be removed in Step 2.



I also searched for any other variables that had view order in them. I found text_track_view_order. I

changed the contents of this to "To view Order ID [order] please open this link:). Note there was a hash here you should remove.



=======================================================



[COLOR=“Red”]Note: [/COLOR]For the sake of argument my custom template is called my_template. This is the location of the



files I used to proceed to the next step.



Step 2 - I copied all the files from /skins/my_template/mail/orders to my desktop. I then proceeded to



do the following:



I repaced # with : in the invoice.tpl

I repaced # with : in the packing_slip.tpl

I repaced # with : in the order_notification_subj.tpl

I repaced # with : in the edp_access_subj.tpl



Step 3 - I then went into translation mode and opened the View Orders page. I then changed the ID



heading in the table to ORDER ID.



Step 4 - Whilst still in translation mode I then clicked the view link on an order, and changed the



Viewing order heading to Viewing Order ID, and I changed the label under this to Order ID as well.[/QUOTE]

hash_problem.png

And if I enter the number in the tracking box on the store front it also shows the order number with a #



Am I missing something here or should CS Cart have not included the #?..It’s very american…no offence but it’s just something I see americans using a lot…instead of the word ‘number’



In the circumstances of using it for the tracking, it’s just a nightmare. If the customer or even the store admin see the hash bolted to the number, they could easily copy and paste the tracking number with the hash.



And computer will say NO and display a 404 because the tracking uses just the number, not the hash. I suppose the tracking block could be modified to exclude the leading hash…but I have no idea.

All of this type of thing should be done with language variables. Something like order_prefix_symbol or something. While many things are setup to be language independent, there are many that are hard-coded.

Yes, and it should be possible to drop this prefix, if you don’t want it at all. I think a solution like the currencies are mananged in admin would do best.



My own favorite would be

instead of Order: #1234



Order No. 1234 or

Order: 1234



Is there already an “idea” for this? I’d like to vote for it.

Language variable called order_number_prefix? Not sure if language variables can have an empty value or not.

They can :smiley: - I just tested it with the variable “welcome”.

Sorry but where can this variable be located?

Administration/Languages

Search for a variable name

[quote name=‘Miss Marple’]They can :smiley: - I just tested it with the variable “welcome”.[/QUOTE]



Miss Marple,



Have you tried this in 2.1.1?:confused:

[quote name=‘sellon’]Miss Marple,



Have you tried this in 2.1.1?:confused:[/quote]



Yes. Empty variables are possible.