pdf name of order

28.05.2013 17:40
#1
kotik
Joomshopping forum user no avatar
Name: elena
30.01.2013
Posts: 51
Quote
pdf name of order

Hello,

how could i give a name to a pdf in order mail.

Now it it only somethinl like this : 3878276skdhkfjsnku38768s.pdf

and i would like that pdf name is the number of order.

How is it possible?

 
29.05.2013 07:24
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25919
Quote
Aw: pdf name of order

components\com_jshopping\lib\generete_pdf_order.php

row
$name_pdf = $order->order_id."_".md5(uniqid(rand(0,100))).".pdf";

 
31.05.2013 13:20
#3
kotik
Joomshopping forum user no avatar
Name: elena
30.01.2013
Posts: 51
Quote
Aw: pdf name of order

Hi,

i found it, but i dont know what schould i add and where exectly.
Could you help, please?

 
01.06.2013 18:18
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25919
Quote
Aw: pdf name of order

$name_pdf = $order->order_id.".pdf";

 
10.11.2013 16:18
#5
ff-photoart
Joomshopping forum user no avatar
Name: Frauke
22.10.2013
Posts: 20
Quote
pdf name of order - reopen the topic

I use that as well.

After testing and playing arround the no. is 33.pdf, but the invoice and order-no is 05.
I use the field in configuration to start numbering from xyz.

As I have no clue from php.
Question1:
How to add a word like "invoice-no." in front of the number "10.pdf"
Should look like this Invoice-no.10.pdf and the no. should be the invoice no ;-)

Question 2:
Where to reset the count of the ordernumbers.

Thanks for your help.


Letzte Änderung: 14.11.2013 15:25
 
14.11.2013 15:07
#6
ff-photoart
Joomshopping forum user no avatar
Name: Frauke
22.10.2013
Posts: 20
Quote
Aw: pdf name of order

Hello Supportteam,
may I kindly ask for help and answer.

Thanks and KR

 
14.11.2013 21:18
#7
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25919
Quote
Aw: pdf name of order

Try
$name_pdf = $order->order_number.".pdf";

 
15.11.2013 08:02
#8
ff-photoart
Joomshopping forum user no avatar
Name: Frauke
22.10.2013
Posts: 20
Quote
Aw: pdf name of order

Okay the number itself is now correct.
Thanks for that.

But how to add the word "Rechnungsnr." in front of the number 0000007

Thanks for help

 
15.11.2013 08:03
#9
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25919
Quote
Aw: pdf name of order

$name_pdf = "Rechnungsnr".$order->order_number.".pdf";

 
15.11.2013 09:08
#10
ff-photoart
Joomshopping forum user no avatar
Name: Frauke
22.10.2013
Posts: 20
Quote
Aw: pdf name of order

Great: Thanks a lot.
Problem is solved and I learned a lot.

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.