Questions tagged [3rd-party-library]

Questions about Magento 3rd party libraries

Filter by
Sorted by
Tagged with
0 votes
1 answer
190 views

Magento 2.4.0 external JS not loading

one external js library has this kind of code and full library of code at bottom !(function (o, e, t, _) { ........... ....... .......... })(jQuery, window, document); ...
Niraj Patel's user avatar
1 vote
0 answers
177 views

Override PHP-sdk file in vendor

I want to override the (PHP sdk)file which is found in the vendor path the path is vendor/tamara-solution/php-sdk/src/Tamara/Model/Order/Order.php I am attaching my that specific php sdk composer....
Muhammad Abdullah's user avatar
1 vote
0 answers
87 views

Is it acceptable to put lib folder inside module folder structure?

Before I used this code to include some packages: require_once($this->dir->getPath('lib_internal') . '/vendor/module/nuevomailer/api.php'); Now Magento doesn't allow to use require_once ...
JohnyFree's user avatar
  • 1,529
2 votes
1 answer
124 views

how to use highcharts.js in magento frontend?

I have followed require js config to include highchats.js in the cms page app/design/frontend/Namesapce/Theme/Magento_Theme/requirejs-config.js Code var config = { paths: { 'owl':'...
Victor 's user avatar
0 votes
0 answers
128 views

Magento 2 : How connect Magento with Neo4j Graphical Database

Does any one know how to connect Magento 2 with Neo4j Graphical Database ? There is a PHP client library (composer require graphaware/neo4j-php-client:^4.0) which i have updated in Magento project, ...
Softec's user avatar
  • 2,055
2 votes
0 answers
163 views

How can I add a 3rd party dependency in a custom module?

I'm building a module which requires a 3rd party library, how can I make the 3rd party library available to the module without without adding it to the composer.json magento root file? I added it ...
Luigi T.'s user avatar
  • 332
1 vote
1 answer
924 views

Copy files from /vendor/* to another server? Mailchimp installation without composer

My shared hosting doesn't allow me to use composer install (php memory limit error). So I had to install to my clone magento2 on xampp server. http://wiki.ebizmarts.com/installation-guide-m4m2 below ...
Mage Explorer's user avatar
3 votes
2 answers
4k views

Magento 2 | How to include third party library by adding at 'lib/'?

This is not about adding by composer. This is about downloading and then using it. For Example: I download TCPDF Library and follows these steps it should be installed and usable but it doesn't works ...
Ajwad Syed's user avatar
  • 1,591
0 votes
1 answer
4k views

How to install TCPDF lib without composer in Magento 2?

Followed these steps: Download TCPDF from https://github.com/tecnickcom/tcpdf Change the name of the file root directory after extraction to TCPDF Inside this directory, there is a tcpdf.php file, ...
Ajwad Syed's user avatar
  • 1,591
0 votes
2 answers
68 views

setup:di:compile ignores third party type definition (Monolog)

I have a DI configuration for a custom exception handler: <type name="My\Logger\Handler\ExceptionHandler"> <arguments> <argument name="formatter" xsi:type="object">My\...
Fabian Schmengler's user avatar
0 votes
2 answers
239 views

how-to-include-library-using-helper

how to include library in magento 2 using helper as below is the class for magento 1 that is Mage::getBaseDir , <?php namespace vendor\Module\Model; require_once(Mage::getBaseDir('lib') '/...
sheraz khan's user avatar
5 votes
3 answers
751 views

How to use lib classes in controller

I have a controller Callback.php in folder app/code/Dots/Socialfeeds/Controller/Social in custom module Dots_Socialfeeds. I am also using an third party library file Linkedin.php which I have placed ...
Shashank Kumrawat's user avatar
0 votes
3 answers
575 views

Magento 1.9 - problem with librabries conflict - nouislider.js and prototype.js

I have in code following libraries: <script type="text/javascript" src="http://localhost/js/lib/jquery/jquery-3.3.1.min.js"></script> <script type="text/javascript" src="http://...
Michał Górniak's user avatar
4 votes
1 answer
4k views

How to add JS library to Magento 2?

I need to add the jsPDF library to my Magento 2 Luma theme, so I can use it on the checkout success page.
Vlade's user avatar
  • 81
0 votes
1 answer
578 views

How to include third party library files to custom module without composer

I need to include Youtube API library files for my custom module. Without composer, it should be done. Any suggestions?
vinothavn's user avatar
  • 1,349
0 votes
1 answer
2k views

How to use a library using composer in a Magento 2 module

At the moment I'm developing a module for Magento 2. I'm using a third party library ("twizo/lib-api-php") and installed it using composer. When I use a class from this library, Magento gives me the ...
Djesse's user avatar
  • 1
0 votes
1 answer
3k views

How to use Dompdf for Magento2 step by step

I want to convert my html file to pdf using Dompdf in my custom module, right now i already update my module composer.json like this: "require" : { "dompdf/dompdf": "0.8.1" }, "autoload": { "...
Shell Suite's user avatar
  • 1,702
0 votes
1 answer
665 views

Magento 2.2 Add custom library file TCPDF

I need to tcpdf (http://tcpdf.org/) library in magento2.2. I have added this library in Magento2.1.9 in lib/internal/TCPDF folder. In that, I have rename tcpdf.php class to TCPDF.php and tcpdf class ...
Ajay's user avatar
  • 909
2 votes
0 answers
86 views

How to include external .inc file in Magento 2 Custom Module

I am trying to integrate magento 2 with an ERP system. I want to include one .inc file in my module. Can anyone guide me, which is the best place to include this file and how to achieve it.
Gaurav Agrawal's user avatar
0 votes
2 answers
288 views

Plugin for Magento 2 site using TaxJar API in a drop ship model to address sales tax

Is there a plugin that will work with the TaxJar API to support a drop ship model where we can set our site to collect tax or not based on if a manufacture requires us to collect sales tax? We are ...
michael's user avatar
  • 11
1 vote
1 answer
246 views

How to add js libraries to Magento 2 extension via composer?

I'm wondering is there a way to add third-party js libraries to Magento 2 via Composer? The main idea of this is to separate our modules from those dependencies and to have them required via Composer ...
Roman Glushko's user avatar
0 votes
1 answer
250 views

Best place for 3rd party libraries

I'm developing very small modules and would like to put all javascript 3rd party libraries in one place to better maintain/update them and to avoid duplicating across modules. According to the ...
Laor's user avatar
  • 33
1 vote
1 answer
181 views

Failed to load 3rd party library in Magento 2

I have a 3rd party library and i put it inside lib/internal folder like this : but when i call the function in my custom module helper/data.php , i got an error undefined function, here's the helper/...
simple guy's user avatar
  • 2,474
15 votes
4 answers
3k views

How to use ComponentRegistrar::LIBRARY in Magento 2

We have 4 types of components in Magento 2, as I have been using three of them, but my question is how to use const LIBRARY = 'library'; component. As name implies, this is something to include third ...
Krishna ijjada's user avatar
1 vote
1 answer
316 views

3rd party jQuery JS and custom JS together

I read many many stackechange threads and internet pages, and still do not get how to do such a simple task as using Javascript. I try my luck... I use 3rd party jQuery Plugins (bxslider, modaal) I ...
Pol Ravalitera's user avatar
1 vote
0 answers
146 views

Magento 2 include xmlToArrayParser php library and use it in module

I want to include below php library in my custom module https://github.com/Robhub/trocutc/blob/master/incl/xmlToArrayParser.class.php and want to use the same in controller or helper. I have ...
Nitz's user avatar
  • 449
2 votes
0 answers
30 views

Magento 2 Extension - lib folder or through composer [duplicate]

I am using a third party module for Mailchimp. I've been able to install it through composer and also used it through directory lib in the magento 2 root. As installing through composer is quite ...
MAK's user avatar
  • 85
1 vote
0 answers
101 views

Magento - PDF preflight

I need to programm a extension that checks a PDF our customer uploads for things like the right format (in terms of size for example 210 x 297 mm) or if there is 3 mm bleed on the PDF. I really dont ...
TrytoFly's user avatar
  • 624
1 vote
1 answer
7k views

Magento 2 external library folder

I am trying to keep the google library files but confused on the destination folder. In magento 1.9 we can kept in lib folder. Can any one please give the solution for that
Allamsetti's user avatar
6 votes
2 answers
2k views

installing & using reactjs in magento 1.9

Im trying to run reactjs library in my magento 1.9 website. reactjs can be run in php server using v8js-php consequently it could work. many reactjs components are installed using composer: a- its ...
s_h's user avatar
  • 989
7 votes
1 answer
301 views

Impact of Google Chrome blocking Flash at the end of the year

As some of you may know Google Chrome will start blocking Flash in December I know that the backend uploaded of M1 is using Flash. What is the impact of no flash for Magento ? What other features ...
Raphael at Digital Pianism's user avatar
2 votes
1 answer
276 views

Add files to core or to local? (Not override)

I am installing the RedSys module http://www.redsys.es following their guide. At some point of their guide they say the following: 4.Se deben colocar los ficheros de la carpeta “Source”, incluido ...
Adrian Gallego Castellanos's user avatar
3 votes
2 answers
2k views

Magento - include multiple external libraries to Admin Controller actions

I am working on import price of products using xls, xlsx, ods and csv files. For that i need to read these file, i had use seperate external library files to read those files. It works well in my ...
Priya Ponnusamy's user avatar
0 votes
1 answer
234 views

Include Authorizenet library into Magento 2

I have been trying for a long time on how to include this library into my custom module. I have tried this answer but no use. May be I have put it wrong. { "name": "Vendor/module-name", "...
Joel's user avatar
  • 175
2 votes
1 answer
60 views

Getting Error login via Linkedin in Magento 1.9 [closed]

Hi I am using Social Login plugin in my site. I have added LinkedIn App id and Secret Key but Getting Below Error. Any one help me, which link I have to set to Authorized Redirect URLs: in LinkedIn ...
Nikul's user avatar
  • 1,306
0 votes
1 answer
1k views

How to use dompdf in magento

I am trying to use dompdf in magento for printing invoice. So I am trying to include dompdf in magento but its not working. I used following code in Mage.php before include_once "Varien/Autoload.php"...
Jatin Raikwar's user avatar
2 votes
3 answers
11k views

Include external PHP library in Magento 2 module

I am trying to include an external PHP library inside my Magento 2 module, specifically the eKomi PHP library (https://github.com/ekomi-dev/ekomi-api). I have added the PHP files into the module so ...
Alex's user avatar
  • 540
3 votes
0 answers
77 views

Magento 2 install and ship 3rd party (php)library with custom module [duplicate]

I am creating a magento 2 module that requires a 3rd party library, but have no idea how do I install it with the module. This is my module's composer.json file. { "name": "namespace/name", "...
Taral Patoliya's user avatar