Giter Site home page Giter Site logo

eadesgin / magento2-pdf-generator2 Goto Github PK

View Code? Open in Web Editor NEW
66.0 14.0 59.0 286 KB

Invoice PDF Generator For Magento 2

Home Page: https://www.eadesign.ro/magento2-invoice-credit-memo-shipping-and-product-pdf-generator-pro.html

License: Apache License 2.0

PHP 100.00%
magento2 magento-2 pdf-templates invoice magento-2-pdf-invoice pdf-generation magento-invoice-pdf invoice-pdf-generator pdf-template invoice-pdf

magento2-pdf-generator2's Introduction

Magento Invoice PDF Generator CircleCI

Maintainability

Magento 2 Invoice PDF Generator - helps you to customize the pdf templates for Magento 2. If you have an enabled template and a default template for the store you need your template the system will print the pdf template.

B2C Theme demo

How to use the module

Add a new template from the "Add new template" button. This will prompt you with a set of fields.

  • Enable template - you need to enable the template in order to use it;
  • Default template - make the template as default for the current store;
  • Template name - this is for your own information as well as the template description;
  • Template for website - here you select the website you need the template for;
  • The template body, header and footer is where you can add the html that will be transformed into the PDF body;
  • The template CSS filed allows you to create styles for the html like "h1 {color:red;} h2 {color:blue}", do not use the style tag, it is not need. In the body you can also specify html like in the email templates;
  • The template settings are used to shape the template as you need. The "Template file name" can be made from variables as long as they are ok for file naming {{var invoice.increment_id}}-{{var invoice.id}}-file-invoice. The "Template paper orientation" is used to set the pdf as landscape or portrait. If you chose to use the custom format the "Custom height" and "Custom width" in millimeters will be used. The paper orientation and the "Template paper format" will be ignored in this case. If the template has standard format the "Template paper format" will allow you to set the paper in a few formats (A4,A5,A3,Letter and Legal). The other settings are the margins (in millimeters) for the top, right, left and bottom. If the header or footer overlaps over your body increase the top and bottom margins to fix this.

The extension will allow you to harness all the power of the email template system and more. You can add phtml files to your template for very advanced configurations ({Error in template processing} and {Error in template processing}). You can add your own item processing layout so you can output taxes item prices as you want ({{layout area="frontend" handle="sales_email_order_invoice_items" invoice=$invoice order=$order}}).

You can also localize your template using the trans directive.

{{trans "Thank you for your order from %store_name." store_name=$store.getFrontendName()}}{{trans "Once your package ships we will send you a tracking number."}}

Using the extension you are able to change the invoice PDF as you desire. The PDF Generator has multiple features as follows:

  • change the Magento invoice PDF to meet your needs;
  • add custom CSS to your template to further personalize the PDF;
  • add templates for each store with different design and features;
  • change the file name of the PDF file using variables;
  • you can send the invoice as PDF attachment to the invoice mail;
  • you can disable enable the PDF from the system configuration area.

For the variable system you can read the Magento domentation here. We use the exact same system to generate the variables.

Supported Versions

  • Magento 2.1.*
  • Magento 2.2.*
  • Magento 2.3.*

Installation

You can install the module via composer or manually by adding it to the app/code directory. The module is available on packagist.org

Via composer:

composer config repositories.magento2-pdf-generator2 git [email protected]:EaDesgin/magento2-pdf-generator2.git
composer require eadesignro/module-pdfgenerator
php bin/magento setup:upgrade

Requirements

Video install and use

IMAGE ALT TEXT HERE

magento2-pdf-generator2's People

Contributors

catalineadesign avatar davidlambauer avatar eadesignro avatar mardeleanu avatar pavelleonidov avatar snowcore avatar violuke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

magento2-pdf-generator2's Issues

extra templates

Hi,
How did you activate the extra templates? I followed the video pretty close and I only have the 2 templates from the initial install. How do i install the other 12?
Thanks,
Ivan

di.xml error after upgrading to magento 2.2.1

Fatal error: Uncaught Magento\Framework\Exception\LocalizedException: Invalid Document Element 'virtualType', attribute 'name': [facet 'pattern'] The value 'Eadesigndev/Pdfgenerator/Model/ResourceModel/Pdfgenerator/Grid/Collection' is not accepted by the pattern '(\\?[a-zA-Z_�-ÿ][a-zA-Z0-9_�-ÿ]*)(\\[a-zA-Z_�-ÿ][a-zA-Z0-9_�-ÿ]*)*'. Line: 74 Element 'virtualType', attribute 'name': 'Eadesigndev/Pdfgenerator/Model/ResourceModel/Pdfgenerator/Grid/Collection' is not a valid value of the atomic type 'phpClassName'. Line: 74 Element 'virtualType', attribute 'name': Warning: No precomputed value available, the value was either invalid or something strange happend. Line: 74 in /var/www/html/vendor/magento/framework/Config/Reader/Filesystem.php on line 163

PHP Errors after migration to Magento 2.2 and PHP7.1

After the migration to Magento 2.2 and PHP 7.1 I got PHP errors in the mpdf library files.
File cssmgr.php method MergeCSS tries to set $attr['ID'] for not initialized variables.
I fixed it locally by changing
if (!isset($attr['ID'])) { $attr['ID'] = ''; }

to

if (!isset($attr['ID'])) { if (!is_array($attr)) { $attr=array("ID"=> ''); } else { $attr['ID'] = ''; } }

File mpdf.php method ConvertSize has an implicit cast from string to float, witch results to the following error message:

Warning: A non-numeric value encountered in /var/www/magento/vendor/eadesignro/mpdf/mpdf.php on line 30648

I fixed it locally by changing
`
}} else {
$size *= (25.4 / $this->dpi); //nothing == px
}

`
to

`
} elseif (is_numeric ($size)) {
$size *= (25.4 / $this->dpi); //nothing == px
} else {
$size = floatval ($size *(25.4 / $this->dpi); //nothing == px
}

`
Is it possible to upgrade EaDesgin/mpdf to the current branch of mpdf/mpdf?

Issue after manual installation

After installing the module manually. And after runing php bin/magento setup:upgrade
I get the following error.

image

Is there any version bug in the last release (1.23) ? I installed the last version from master.

error during installation

Hi,
I am trying to install a pdf generator but I have an error (via composer):
Run command:
composer require eadesignro/module-pdfgenerator

then I generated the github token and typed. I received the information that the token is correct and then the error:

[RuntimeException]
Failed to clone [email protected]:EaDesgin/magento2-pdf-generator2.git, git wa
s not found, check that it is installed and in your PATH env.

sh: git: command not found

anyone know how to solve it ?

Transactional Emails are empty

Hi EADesign-Team,
the Transactional emails are empty with attached pdf. When I switch the extension off, the mails contain their content / layout . Any help would be appreciated.

Magento 2.3

Disabled Modules:
Magento_Analytics // Amazon_Core
Magento_Inventory // Magento_InventoryAdminUi
Magento_InventoryApi // Magento_InventoryBundleProduct
Magento_InventoryBundleProductAdminUi // Magento_InventoryCatalog
Magento_InventorySales // Magento_InventoryCatalogAdminUi
Magento_InventoryCatalogApi // Magento_InventoryCatalogSearch // Magento_InventoryConfigurableProduct
Magento_InventoryConfigurableProductAdminUi // Magento_InventoryConfigurableProductIndexer
Magento_InventoryConfiguration // Magento_InventoryConfigurationApi
Magento_InventoryGroupedProduct // Magento_InventoryGroupedProductAdminUi
Magento_InventoryGroupedProductIndexer // Magento_InventoryImportExport
Magento_InventoryIndexer // Magento_InventoryLowQuantityNotification
Magento_InventoryLowQuantityNotificationAdminUi // Magento_InventoryLowQuantityNotificationApi
Magento_InventoryMultiDimensionalIndexerApi // Magento_InventoryProductAlert
Magento_InventoryReservations // Magento_InventoryReservationsApi
Magento_InventoryCache // Magento_InventorySalesAdminUi
Magento_InventorySalesApi // Magento_InventorySalesFrontendUi
Magento_InventoryShipping // Magento_InventorySourceDeductionApi
Magento_InventorySourceSelection // Magento_InventorySourceSelectionApi
Magento_NewRelicReporting // Magento_Braintree
Klarna_Core // Amazon_Login // Amazon_Payment // Magento_InventoryShippingAdminUi
Magento_Signifyd // Klarna_Ordermanagement // Klarna_Kp // Magento_Weee
Dotdigitalgroup_Email // Temando_Shipping // Vertex_Tax //

2.2.2 Error

Hi,

We were installing this extension on 2,2,2 and had an error when command 'setip:di:compile'
Here's how to fix:
diff --git a/app/code/Eadesigndev/Pdfgenerator/Model/ResourceModel/Pdfgenerator/Grid/Collection.php
b/app/code/Eadesigndev/Pdfgenerator/Model/ResourceModel/Pdfgenerator/Grid/Collection.php
index b7ddc1d..57aa4df 100644
--- a/app/code/Eadesigndev/Pdfgenerator/Model/ResourceModel/Pdfgenerator/Grid/Collection.php
+++ b/app/code/Eadesigndev/Pdfgenerator/Model/ResourceModel/Pdfgenerator/Grid/Collection.php
@@ -72,7 +72,7 @@ class Collection extends PdfCollection implements SearchResultInterface
$eventObject,
$resourceModel,
$model = 'Magento\Framework\View\Element\UiComponent\DataProvider\Document',

  • $connection = null,
  • \Magento\Framework\DB\Adapter\AdapterInterface $connection = null,
    AbstractDb $resource = null
    ) {
    parent::__construct(

Can you help?

Allow install on Magento 2.3.x?

In composer.json, magento module versions can be specified with '*'

Also, php requirements are now: "php": "~7.1.3||~7.2.0",

"Print" prints normal magento2 invoice

I can successfully intall the module. The db table are there. The admin config is there. But when I click on "print" it creates just the normal magento2 invoice. Any idea?

Specified invalid parent id (Eadesigndev_Eacore::eadesign)

I've installed module on magento version 2.1.12. After enabling, I'm getting below error:

a:4:{i:0;s:58:"Specified invalid parent id (Eadesigndev_Eacore::eadesign)";i:1;s:5672:"#0 /vendor/magento/framework/Interception/Interceptor.php(146): Magento\Backend\Model\Menu\Builder->getResult(Object(Magento\Backend\Model\Menu))

Does anyone have the solution for this?

Cant send New Order Emails etc

Hello, Im getting this error:

[2017-11-07 23:50:53] main.ERROR: Notice: Undefined index: invoice in /is/htdocs/.../vendor/eadesignro/module-pdfgenerator/Model/Email/SenderBuilder.php on line 105 [] []
[2017-11-07 23:52:38] main.ERROR: Unable to send mail. [] []
[2017-11-07 23:53:11] main.ERROR: Unable to send mail. [] []

When a product is ordered no confirmation Email is being sent. However it is possible to send invoice emails + pdf. The Problem ist that other emails are not being sent.
How can this be fixed?

Installed on Magento CE 2.1.7 but not working

Just installed everything without any problems.
eadesignro/mpdf
eadesignro/module-eacore
eadesignro/module-pdfgenerator

php magento setup:upgrade;
php magento setup:static-content:deploy
Removed cache

But nothing is visible in backend. Also not in stores>configuration.

Feature Request - print multiple invoices at once

The current implementation can only print single invoices.
For 40+ invoices you need to navigate into every single order and print the invoices individually.

The default invoice module of magenta as well as postage printing can print via a mass action for a number of selected orders at once. This extension should not be worse then the default module.

support PHP version 7.1.x

Hi,
I suggest adding support php 7.1.x

Error with installation:
eadesignro/module-invoicepdfgenerator 1.1.3 requires php ~5.6.0|~7.0.0 -> your PHP version (7.1.15) does not satisfy that requirement.

(reduction php version is not solution)

Admin Login Error after installing the module

1 exception(s):
Exception #0 (OutOfRangeException): Specified invalid parent id (Eadesigndev_Eacore::eadesign)

Exception #0 (OutOfRangeException): Specified invalid parent id (Eadesigndev_Eacore::eadesign)
#0 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(146): Magento\Backend\Model\Menu\Builder->getResult(Object(Magento\Backend\Model\Menu))
#1 /var/www/html/var/generation/Magento/Backend/Model/Menu/Builder/Interceptor.php(39): Magento\Backend\Model\Menu\Builder\Interceptor->___callPlugins('getResult', Array, Array)
#2 /var/www/html/vendor/magento/module-backend/Model/Menu/Config.php(146): Magento\Backend\Model\Menu\Builder\Interceptor->getResult(Object(Magento\Backend\Model\Menu))
#3 /var/www/html/vendor/magento/module-backend/Model/Menu/Config.php(109): Magento\Backend\Model\Menu\Config->_initMenu()
#4 /var/www/html/vendor/magento/module-backend/Model/Url.php(348): Magento\Backend\Model\Menu\Config->getMenu()
#5 /var/www/html/vendor/magento/module-backend/Model/Url.php(308): Magento\Backend\Model\Url->_getMenu()
#6 /var/www/html/vendor/magento/module-backend/Controller/Adminhtml/Index/Index.php(21): Magento\Backend\Model\Url->getStartupPageUrl()
#7 /var/www/html/var/generation/Magento/Backend/Controller/Adminhtml/Index/Index/Interceptor.php(24): Magento\Backend\Controller\Adminhtml\Index\Index->execute()
#8 /var/www/html/vendor/magento/framework/App/Action/Action.php(102): Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor->execute()
#9 /var/www/html/vendor/magento/module-backend/App/AbstractAction.php(226): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#10 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
#11 /var/www/html/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor->___callParent('dispatch', Array)
#12 /var/www/html/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Backend...', 'dispatch', Object(Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor), Array, 'adminAuthentica...')
#13 /var/www/html/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain{closure}(Object(Magento\Framework\App\Request\Http))
#14 /var/www/html/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#15 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Backend...', 'dispatch', Object(Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor), Array, 'adminMassaction...')
#16 /var/www/html/vendor/magento/module-backend/App/Action/Plugin/MassactionKey.php(33): Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#17 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(142): Magento\Backend\App\Action\Plugin\MassactionKey->aroundDispatch(Object(Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#18 /var/www/html/var/generation/Magento/Backend/Controller/Adminhtml/Index/Index/Interceptor.php(39): Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor->___callPlugins('dispatch', Array, Array)
#19 /var/www/html/vendor/magento/framework/App/FrontController.php(55): Magento\Backend\Controller\Adminhtml\Index\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#20 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#21 /var/www/html/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#22 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install')
#23 /var/www/html/vendor/magento/framework/Module/Plugin/DbStatusValidator.php(69): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#24 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(142): Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#25 /var/www/html/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#26 /var/www/html/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#27 /var/www/html/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#28 /var/www/html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#29 {main}

PDF isn't attached to mail

I installed the module and it works, but the problem is that the invoice PDF isn't getting attached to the emails.
I hope someone can help me with this.

Fatal error: Access level to Eadesigndev\Pdfgenerator\Model\Email\Message::$messageType must be protected (as in class Magento\Framework\Mail\Message) or weaker in

Hi Support,

I have installed your module in my Mageno 2.2.5 store, After the installation My store is Down. Its showing 500 error. I have checked with error.xml file its showing
"Fatal error: Access level to Eadesigndev\Pdfgenerator\Model\Email\Message::$messageType must be protected (as in class Magento\Framework\Mail\Message) or weaker in /home/etfio/public_html/app/code/Eadesigndev/Pdfgenerator/Model/Email/Message.php on line 16"

My Website URL : https://www.etfio.in/

Please check it and let me know,

Thanks
Shihas

Layout XML wrong format or spaces

Hello on Magento 2.2 with Magento 2 PDF Invoice Generator 1.2.2
you have something wrong in layout files for me fixed by just reformating them

exception(s):
Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'body': Character content other than whitespace is not allowed because the content type is 'element-only'.
Line: 131

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'body': Character content other than whitespace is not allowed because the content type is 'element-only'.
Line: 131

Issue after manual installation

After installing the module manually. And after runing php bin/magento setup:upgrade
I get the following error.

image

Is there any version bug in the last release (1.23) ?

The following modules are outdated : "Eadesigndev_Pdfgenerator data : current version - none, required version - 1.2.3

There is some version incompatibility with Eadesigndev_Pdfgenerator. Any hints before closing the issue deliberately?

Incorrect status of an order in Invoice

There's an issue in displaying the Order Status. The order status it displays as Status Code, not a Status Title. Like, I changed the status from Default to but default code doesn't change and remains same as "processing". When an invoice is generated it doesn't display Processed but shows processing while the order status shows correct in the Admin as Status> Processed.
2017-10-13_21-41-16
2017-10-13_21-44-25

Add serveral PDFs to an email

Hi,

is there a way to add several pdf documents from different templates to the email? Would be great to add PDFs for license or something similar...

Best regards, Jan

Language Support

Hi EADesign Team,

I faced this issue in my store which build by Magneto 2.1 - PHP 7.0
The Locale is Arabic
@
screen shot 2018-10-18 at 12 14 37 am

Any idea on how can I fix it?

Thanks

How can we insert new custom variable in pdf

My order has one attribute.How can i insert that new attribute in pdf.I am using EaDesgin Module.What changes i have to add in coding .that custom attribute depends on the customer who ordered the item.

Inserting logo: empty source

I am trying to insert a logo to my custom invoice template but this does not appear to work (as opposed to emails where everything is working nicely):

<img src="{{var logo_url}}"/>

What am I missing?

Thanks in advance.

Admin Language Setting is used for Invoice generation

I set up a new shop and configured it to have a German store. For my admin user, I kept the English language as it makes it much easier to search for help when you have a problem.

After I installed magento2-pdf-generator2, I wondered why I had the English number (and date) format in the invoices while everything else in the shop has the German number format. Even the order confirmation email had the German number format. At first, I thought the extension doesn't support other number formats, but then I tried to change the language of my admin user et voilá: everything looked fine.

In my opinion, this is a bug, and the invoice generator should use the same language setting as the email generator (probably the store locale).

Versions
Magento: 2.1.11
PDF-Generator2: 1.2.3

PS, thank you for sharing this great extension with us.

Extension manager stuck after installing pdf-generator with composer

I first "purchased" the extension from marketplace (v. 1.0.27) but I couln't install it due to compatibility issue.
Then I came her to github where I found the version (1.23) that is compatible with Magento 2.2.2 so could install it with composer.
The problem is now that Extension manager is stuck and complaining about not been able to execute git clone (see below):
Command "show" failed: [RuntimeException] Failed to execute git clone --mirror '[email protected]:EaDesgin/magento2-pdf-generator2.git' '/usr/local/var/www/Magento/var/composer_home/cache/vcs/git-github.com-EaDesgin-magento2-pdf-generator2.git/' show [--all] [-i|--installed] [-p|--platform] [-a|--available] [-s|--self] [-N|--name-only] [-P|--path] [-t|--tree] [-l|--latest] [-o|--outdated] [-m|--minor-only] [-D|--direct] [--strict] [-f|--format FORMAT] [--] [] []
Seems like some kind of sync conflict between installed version through composer and the one I purchased in marketplace.
Marketplace dosn't have any option of removing purchased items so I'm kind of stuck here too :(
I've just reported the issue to the market place but I thought you might want to know and possibly have a solution for this.

SQLSTATE[42S02] error in Manage PDF Templates

Dear developers,

I have followed the installation instruction (https://github.com/EaDesgin/magento2-pdf-generator2) and successfully installed the pdf generator extension in my Magento 2.2.2 website, the problem is when I go to "EADESIGN->Manage PDF Templates", it gives the following error: "SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tomavoxc_mobiparts.eadesign_pdf_templates' doesn't exist, query was: SELECT COUNT(*) FROM eadesign_pdf_templates AS main_table", can you please have a look why it is happening? Did I miss anythig?

Template not used for invoices

The plugin is installed (version "^1.2").

composer config repositories.magento2-pdf-generator2 git [email protected]:EaDesgin/magento2-pdf-generator2.git
composer require eadesignro/module-pdfgenerator --no-update"

The plugin is activated.
Stores->Configuration->EADesign Settings->Invoice PDF Generator shows the plugin as active.
Stores->Configuration->Advanced->Advanced the plugins "Eadesigndev_Eacore" and "Eadesigndev_Pdfgenerator" are enabled.

A template " Invoice Template Portrait!" exists,
is enabled,
is the default template,
is the template for the store view "German" (also tried "English")

I watched the 18 minute video twice (in low resolution because of limited bandwidth) and could not find anything mentioned that I missed.

...still in a newly created order the action "Print Invoices" and "Print" show up PDF files created from the default magento invoice system instead of the mentioned template.

Error when di compile on Magento 2.3.0

When I run setup:di:compile I get following error

Class Magento\Email\Model\Source\Variables does not exist                                             
  Class Eadesigndev\Pdfgenerator\Controller\Adminhtml\Variable\Template\Interceptor generation error:   
  The requested class did not generate properly, because the 'generated' directory permission is read-  
  only. If --- after running the 'bin/magento setup:di:compile' CLI command when the 'generated' direc  
  tory permission is set to write --- the requested class did not generate properly, then you must add  
   the generated class object to the signature of the related construct method, only.

This is because the referred Magento class does not exist. In below class,
/var/www/magento-docker/src/vendor/eadesignro/module-pdfgenerator/Controller/Adminhtml/Variable/Template.php
it tries to use a class which is not available on Magento.

In magento 2.3.0 below class is not available
use Magento\Email\Model\Source\Variables as EmailVariables;

Error after install

Hello I got error after install
Exception #0 (OutOfRangeException): Specified invalid parent id (Eadesigndev_Eacore::eadesign)

How to get it work 2.1?

The extension enabled and appears in admin, but when printing invoice still print old tempates.

What is missing

Filtering template error

Hi,

I am using your extension on few websites and it is very good. I just found issue with this line in template:

{{var order.payment.method_instance.title}}

when this line is in template, I am getting template filter error, so I had to change the code in Helper/Pdf.php in _transport function:

I added this:

$paymentTitle= $order->getPayment()->getMethodInstance()->getTitle();
and then in transport array I added:

'paymentInfo' => $paymentTitle

Then in template I used this:
{{var paymentInfo|raw}}

With this implementation I am getting correct payment method.

Thanks

Magento 2.2 Compatibility

This module has a hard requirement on version 100.1.* of several Magento modules. Magento 2.2 was released today and it would be nice to have compatibility for this new Magento version.

Not working on magento CE 2.1.7

Module is activated from stores->configuration,
Template is activated and set as default.
If i try to print the order i get the magento defult template, the invoice is not sent by email.
No errors. Nothing in logs.

Can you help with this issue please?

Compilation issue

 Total Errors Count: 1
 Errors during compilation:
 Eadesigndev\Pdfgenerator\Controller\Adminhtml\Templates\Edit 
 Incorrect dependency in class Eadesigndev\Pdfgenerator\Controller\Adminhtml\Templates\Edit 
 in /var/www/html/vendor/eadesignro/module-pdfgenerator/Controller/Adminhtml/Templates/Edit.php
 \Magento\Backend\Model\Session already exists in context object

Manual Install clarification

Hello EADesign-Team,

when trying to install with composer, I'm running into the following "fatal error":
Fatal error: Out of memory (allocated 814743552) (tried to allocate 67108864 bytes) in /composer.phar/src/Composer/DependencyResolver/Solver.php on line 220

Now I have decided to install manually and downloaded the package from your website.

Your manual installation instruction is very brief:
You can install the module [...] manually by adding it to the app/code directory.
But when I look at the package folder structure, it looks more like it should be placed into the vendor-folder.

I'm confused as to what exactly shall be placed into the app/code directory.
What would be the proper SSH-commands to execute afterwards? (run upgrade and then deploy??)

In other words, can you be a bit more precise on the manual installation instructions.
Thank you for clarifying!

Best,
Michael

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.