Change Invoice and delivery note in JS 5

09.12.2021 14:23
#1
CCD
Joomshopping forum user no avatar
Name: Frank
31.10.2014
Posts: 58
Quote
Change Invoice and delivery note in JS 5

Hello,
how can I change the invoice form and the delivery note in Joomshopping 5?
In Joomshopping 4 it was still under components \ com_jshopping \ lib \ generate_pdf_order.php and for the delivery note jorderdeliverypdf.php!!

Next Question is to change ther length of the invoice order number from 8 to 3.

Thanks, Frank


Last change: 09.12.2021 14:26
 
09.12.2021 16:19
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 24058
Quote
Aw: Change Invoice and delivery note in JS 5

1. components\com_jshopping\Pdf\Order.php
2. plugins\jshoppingorder\jshop_delivery\...
3. components\com_jshopping\config\default_config.php
$config->ordernumberlength = 8;


Last change: 09.12.2021 16:22
 
12.12.2021 17:15
#3
CCD
Joomshopping forum user no avatar
Name: Frank
31.10.2014
Posts: 58
Quote
Aw: Change Invoice and delivery note in JS 5

Thanks, Frank

 
22.12.2021 14:00
#4
CCD
Joomshopping forum user no avatar
Name: Frank
31.10.2014
Posts: 58
Quote
Aw: Change Invoice and delivery note in JS 5

Hello,

how can I save my changes to the invoice with a user_config.php??

<?php
$config->file_Order = $config->path."Pdf/user_Order.php";
?>

At the moment it doesn't work in Joomla 4!

Thanks for the help, Frank

 
22.12.2021 21:33
#5
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 24058
Quote
Aw: Change Invoice and delivery note in JS 5

1. create
components\com_jshopping\config\user_config.php

2. in components\com_jshopping\config\user_config.php
add row
$config->file_generete_pdf_order = '\\Joomla\\Component\\Jshopping\\Site\\Pdf\\Ordermy';

3. copy
components\com_jshopping\Pdf\Order.php
to
components\com_jshopping\Pdf\Ordermy.php

 
27.12.2021 15:45
#6
CCD
Joomshopping forum user no avatar
Name: Frank
31.10.2014
Posts: 58
Quote
Aw: Change Invoice and delivery note in JS 5

Hello,
I did it according to your description and get the error message in the attachment. Can you please check it again.

Thank you, Frank
Aw: Change Invoice and delivery note in JS 5


Joomla: 4.0.5.
JoomShopping: 5.0.2
PHP: 7.4
MySQL: 5.7.25
Website Url: www.capri-ersatzteile.de
 
27.12.2021 20:12
#7
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 24058
Quote
Aw: Change Invoice and delivery note in JS 5

Ordermy.php

need change class

class Order

to

class Ordermy

 
29.12.2021 17:19
#8
CCD
Joomshopping forum user no avatar
Name: Frank
31.10.2014
Posts: 58
Quote
Aw: Change Invoice and delivery note in JS 5

Thank you so much. It works fine!

All the best for 2022, Frank

 


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.