Instruction PDF Invoice to Order for Magento2.4

Download and install


  1. Download the plugin archive from the Shop Pinta store and save it on your computer.

  2. Connect via FTP to your website and copy the contents of the Pinta folder from the pdf-invoice-magento archive (1) to the plugins storage folder (2).

 


 

Be sure to use such commands as php bin/magento setup:upgrade and php bin/magento setup:di:compile in the web console to activate the plugin.

 

 

 

Plugin page


To configure the plugin, go to the main menu of the admin panel Pinta PDFinvoice (1) > Pinta pdfinvoice config (2), which appears after installation.



 

The Pinta PDFinvoice plugin settings page consists of 3 tabs:

 

  1. General (1).

  2. Event (2).

  3. Variables (3).

 


 

The General tab consists of fields:

 

  1. Status (1) - to enable / disable the plugin (position Enabled / Disabled). 

  2. Number in PDF file (2) - to display the page numbering in the PDF file (position Enabled / Disabled).

  3. Page number in PDF file (3) - to select the location of the page numbering in the PDF file.

 

 


 

The Event tab is designed to select the conditions for sending a PDF file and contains:

 

  1. Fields for creating an invoice template, which will be sent to the mail specified by the client when placing an order:

  • Standard pdf template for invoice (1.1) - to select the default template you want.

  • Invoice for (1.2) - to select the order conditions under which the PDF file will be sent. If you do not want the PDF document to be sent by mail, select the position OFF. Also the field can be displayed as one of the blocks:

  • Payment,

  • Customer,

  • Status.


For each of these blocks, you can select needed templates to use for different types of events. If the fields are left blank, they will be assigned to the default template selected from the Standard pdf template for invoice field (1.1).


  1. Fields for configuring the event for which the PDF file of the waybill will be sent to the mail:

  • Standard pdf template for shipping-invoice (2.1) - to select the default template you want.

  • Shipping-invoice for (2.2) - to select the order conditions under which the PDF file will be sent. If you do not want the PDF document to be sent by mail, select the position OFF. Also the field can be displayed as one of the blocks:

  • Payment,

  • Customer,

  • Status.


For each of these blocks, you can select needed templates to use for different types of events. If the fields are left blank, they will be assigned to the default template selected from the Standard pdf template for shipping-invoice field (2.1).



 

The Variables tab includes a list of variables used in the template and their description.

 



To configure the PDF templates, go to the main menu of the admin panel Pinta PDFinvoice (1) > PDFinvoice Templates (2).




The Templates tab includes all the templates you have created and the Add new template button (1) for creating a new PDF template.

 

Each template you can edit (button Edit (2)), open as a PDF document (button Preview (3)), delete (button Delete (4)).




When editing a template, the following tabs become available - General, Content, Barcode and Watermark, CSS:

 

  • The General tab. Includes template settings, such as: sheet orientation (1), sheet format (2), RTL option (3) (template inversion - “for Arabic spelling”) and a margin block (4).

 


 

  • The Content tab - for template formatting. Includes such features as: enabling / disabling the display of header, footer, logo loading, template formatting blocks and product list.

 


 

  • The Barcode and Watermark tab - for selecting the needed type of watermark (1) and barcode (2) and elements for formatting them: dimensions, transparency, orientation.

 



  • The CSS tab - for using custom CSS styles that differ from the standard ones.

 

To finish formatting the template and save settings, click the Save button (1).

If you want to go to the formatting of other templates without saving the changes, press the Back button (2).

 



After placing an order in your online store, an email is sent to the specified email address with an order description and pdf files corresponding to the plugin settings.

 


 




VIDEO INSTRUCTION