Questions tagged [external-script]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
41 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 ...
0
votes
0answers
15 views

Magento 2 | getData("news_from_date") return wrong value

I created a php file external to Magento2 with a foreach that takes the value of the "news_from_date" attribute. On many products the "news_from_date" field is empty but despite ...
0
votes
0answers
25 views

How do I pass JavaScript variables (from jsfile) in to PHPfile in magento 2

How i pass the js varible from custom js file in to my custom module php file, because i create dropdown in header and i need to use that value for adding some condtion in php file and custom js file ...
1
vote
1answer
94 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 ....
0
votes
1answer
135 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\...
1
vote
3answers
355 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 ...
0
votes
2answers
803 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"> ...
0
votes
1answer
250 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 ...
2
votes
0answers
58 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'...
1
vote
1answer
445 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 ...