Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [external-script]

The tag has no usage guidance.

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

How to stop external JS from being load from specific layout in Magento?

Magento provides a way to include external js or css using following method. <css src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css" src_type="url"...
Vishal Rathod's user avatar
1 vote
0 answers
106 views

Magento 2.4: How to add an external Javascript to a CMS Page or Static Block

I got an external JavaScript which is working fine outside of Magento. But if I want to insert that script into a CMS page of Magento 2.4.x there is nothing displayed. Tried a lot of different things ...
Savan Patel's user avatar
  • 2,358
0 votes
1 answer
148 views

Cannot Load External JS File on HTML file

Decided to use echarts.js for a specific page in my site. Tried to download the package file on my server and then I tried to include it using a script tag. However, when I open the page I get a ...
Eddysanoli's user avatar
0 votes
1 answer
202 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
0 votes
2 answers
837 views

Add Custom Javascript to method-renderer File

I have created a custom payment module, and when I click the Place Order button, I need it to run a set of custom javascript functions. To do this, how do I include a custom function from another ...
MCattaneo's user avatar
1 vote
1 answer
600 views

How to include YouTube iframe API in Magento 2 layout template?

I'm using Magento v2.4.1 and i want to show a youtube video on my storefront home page and control it using youtube iframe API in .phtml file, how can I correctly load this youtube iframe API in my ....
Padawan's user avatar
  • 135
0 votes
1 answer
531 views

Load Magento objectmanager via a class

Having a bit of an issue with this one, I managed to get a working interface to Magento by including the following code, which in turn includes the Magento 2 bootstrap.php use Magento\Framework\App\...
Duncan Wardlaw's user avatar
1 vote
2 answers
1k views

How Reindex and Reset programmatically in magento 2?

I Need to reindex and reset the indexer programmatically using external script from magento root. How can i achieve this.Is there a Way to do this.? I am new in magento. Please help me. Thanks in ...
Dany Cruiz's user avatar
0 votes
2 answers
2k views

Magento 2: How to load my custom js file after footer?

JS File Path: web->js->swap.js default_head_block.xml <referenceContainer name="before.body.end"> <block class="Magento\Framework\View\Element\Text" name="swapjs"> ...
Masud Shaikh's user avatar
  • 1,189
0 votes
1 answer
612 views

Magento 2: EAV Attribute is not showing on catalog page

I've made an EAV attribute using an external script but the attribute is not showing on catalogue page. The database has created. I tried to put value in EAV Database but nothing works. Ext_Script in ...
Izhar Mehdi's user avatar
2 votes
0 answers
72 views

Magento 2.3 how to automatically upload videos to page from youtube channel

I want to get all videos from youtube channel and load it on page. How can I do that? Is there some free plugins or mb I need to use some of JavaScript libraries? I found YouTube Gallery Widget, but I'...
Ashen One's user avatar
  • 433
1 vote
1 answer
636 views

Get the cart contents from an external script, using bootstrap.php and ObjectManager?

Running Magento 2.3.1. I'm having trouble understanding how to get the customer's checkout/cart session data from an external PHP script. The script is hosted and run on the same domain as the ...
WackGet's user avatar
  • 1,188