Questions tagged [script]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
77 views

How to add cookiebot Cookie Declaration in Magento 2.4.0

How to add cookiebot Cookie Declaration in Magento 2.4.0 <script id="CookieDeclaration" src="https://consent.cookiebot.com/00000000-0000-0000-0000-000000000000/cd.js" type="...
0
votes
0answers
17 views

How can i retrieve order info (sku's of products, price of products, total, etc) from success page in a phtml file to put in a script in <head>

I need to retrive data from an order, on success page, this info is dynamic and i need to create a script for Dynamic Re-marketing Implementation. This is the script that has to be put after tag in ...
0
votes
1answer
18 views

how to setup cronjob in magento 1.9.3

I am trying to set a cronjob for export order to another website in Magento 1.9.3 please, anyone, have an idea then plz share it with me.
1
vote
2answers
34 views

Adding Custom Option For Multiple Products at once . Magento 2

I have an category of Watches and in this category there is more then 2500 Products now I want to add Custom Option on each Product for that I was following This link so when I write script for it. it ...
0
votes
0answers
22 views

How to execute php file from magento admin in Magento 2?

I have created a php file on root folder of magento in Magento 2 and hit a controller on that file. That process is done and i have tested it it running on terminal. How would i run that script from ...
1
vote
0answers
9 views

Magento 1 fetch Order items which has blank/zero product id/price/sku from last one day

Any idea how to create shell script which fetch order items which has blank/zero product id/price/sku from last one day in Magento 1 ?
0
votes
0answers
11 views

custom script (leaflet) in Contact page

I added Leaflet map to contact page like here: Can't add custom script (leaflet) to Contact page I used the solution with success. If you want to put it into an extension (not just in a theme): ...
0
votes
0answers
16 views

How to send custom email with email template from root Magento2.3?

I have created a script on the Root directory to disabled the products which having price below $50 which is working fine. Now I want to send the disabled product information like ID, SKU, Product ...
0
votes
1answer
30 views

Magento 2.3.5 script to change attribute set groups name

We have a lot of attribute sets in our store 100+. And by default the general group name inside a attribute set is called "Product Details" we want to change/translate this text. We already ...
0
votes
1answer
18 views

Where is the js script written for selection of attributes in magento 2

I am unable to find one ajax script . Can any body tell me where is the script written for this page https://prnt.sc/szvwqu On selection of attributes , how the price gets changed ? where can i find ...
0
votes
0answers
12 views

Programmatically massing create bundle products in Magento 1

1) I try to make bundle products throw php in magento 1 and I dont know how to make it to several or more bundle products(in my code only one bundle product) in one script 2) and can u tell me about ...
1
vote
2answers
315 views

Exclude particular <script> tag moving to bottom of the page- Magento 2.3

In my Magento site, we found there was configuration in admin. Admin -> Store -> Configuration -> Advanced -> Developer (Enabled only on Developer mode). JavaScript settings -> Move JS code to the ...
0
votes
0answers
13 views

How to use SRC_TYPE_CONTROLLER available as a src_type in assets in Head.php?

Does any one have used the src_type="controller" as we do the same for src_type="url" in frontend *.xml files? Looking into the below file but nothing found relatively. <magento-root>/vendor/...
0
votes
2answers
113 views

How to migrate from Shopify to Magento 2?

I'm having many clients migrating from Shopify to Magento 2, and the data migration usually happens via ERP, but for some clients, it's not possible. How could I import to my Magento 2 the Shopify ...
0
votes
2answers
47 views

script error composer.json

I want to add 3rd party module from artifacts in my project. required all modules with composer but when I run composer update at the end I have following error Fatal error: Uncaught LogicException: ...
0
votes
1answer
23 views

Script only loading directly after clearing the cache, but cant get found after second reload

I am using the extension Aheadworks_Wbtab. I don't know whats going on. If I flush the cache and reload then the slider shows and works fine. But if I reload again, then the slider dissapears and I ...
0
votes
0answers
57 views

run shell script with dockergento

shell script is written with php bin/magento I modify it to dockergento magento give it execute permission run it and it returns error mysql: [Warning] Using a password on the command line interface ...
0
votes
1answer
59 views

Javascript file wont work

I have a LAMP server running in a VM, which is currently running fine. Now I would like to have a button on the /magento page that toggles a div container for me. I tried different approaches and I ...
0
votes
2answers
46 views

How to run magento 2.3 scripts through cron

I have made one script (addproducts.php) in my Magento root folder for adding products programmatically. For now, I am hitting this script in URL as localhost/addproducts.php. What should I do to ...
2
votes
1answer
395 views

Element 'script', attribute 'crossorigin': The attribute 'crossorigin' is not allowed

After installing customer attribute extension from Bsscommerce they added another addon module. It then broke frontend of site so they disabled all of their modules but the error still persists. I've ...
2
votes
1answer
100 views

How do I execute Magento 2 CLI commands using a custom script?

I had created a custom script which update my database. After completion of database update, I want to execute the Magento CLI commands by adding custom functions in my custom script. The script ...
3
votes
2answers
662 views

How do I get connection to database by entering Database details in Magento 2?

I want to get custom database connection by adding database details in my custom script without using ResourceConnection. In Magento 1 we can do like this $conn = new \mysqli($servername, $username, ...
0
votes
1answer
108 views

How to send email in Magento 2 programmatically without creating custom module?

I need to create a custom script which allows me to send a simple test email with email addresses of Sender, Receiver CC Bcc; Subject line and Body of Email. How could I do this in Magento 2.x? ----- ...
1
vote
1answer
290 views

Magento 1.9 - How to include custom PHP Script into .PHTML file

My magento tracking page: Back-end magento code : How can i add my PHP script into this tracking page. Tracking page code - trackorder.phtml [https://i.stack.imgur.com/ySgMA.png] <?php ...
1
vote
1answer
15 views

Magento 1 php script product in stock sent email

I would like a php script that when specific products, which I define, have a qty of higher than 0. I automatically receive an e-mail from this. Anyone have an idea how I can easily make a script out ...
0
votes
2answers
41 views

How to export all product sku and cateogry id in csv format runing custom script?

I am using Magneto2.3.1 and i need to export all product sku and cateogry id in csv format runing custom script?if anyone know and idea share code please
0
votes
1answer
61 views

How to refresh the cache programatically in magento 1 EE

What is the code for clean or refresh the cache programmatically because I have got lots of snippets but all are not working in Magento 1 enterprise edition. Does anyone know how to solve it? Thanks ...
1
vote
1answer
93 views

I have many spam customer in Magento 1.9 so how can i remove?

Guy's I have a Magento 1.9 site and some days ago I check my admin side so found lot's of spam customer so I can add google Recaptcha at that time. But it already has many customers are in site so ...
1
vote
1answer
352 views

Uncaught Error: Script error for: tinymce in Magento 2 Admin backend

I am facing this error in the admin panel. Due to this error my admin panel menus such as order, customers are not loading. It loading forever. Kindly help me to solve this issue. Uncaught Error: ...
0
votes
3answers
179 views

Attempting to pass access keys into composer create-project for automated install

I am writing a shell script in bash (rewriting) that migrates / deploys our magento2 marketplace. I started off by getting the latest release from github, but that makes it so i cannot use the admin-...
0
votes
1answer
53 views

Create a script to update the SKU and set SKU using CSV

How To Create a script For Update Product SKU Using Custom Script.
0
votes
1answer
74 views

Create the SQL script for the changing the instance_type parameter in the database widgets_instances magento 2

I have to change like this Magento\Cms\Block\Widget\Block to Custom\General\Block\Widget\Block. I am using the Replace function in the SQL , But it is not working.
2
votes
2answers
69 views

How to securely run PHP scripts in Magento 2

I know that we can run php scripts by placing our script in root of magento 2 folder and we can load products, orders etc via object manager and perform our desired functionality. although this method ...
1
vote
1answer
209 views

how to create a cron to execute a script every 1 min magento 2

I have created a script that deletes duplicated option for custom attribute because this attribute product will generate duplicated value after every save or edit of the product so how to proceed to ...
0
votes
1answer
58 views

How to do a dry run in root folder? [closed]

Is there way to do a dry run within your root folder to make sure the line of code works
0
votes
0answers
86 views

How to check if order is reorder or new?

We have a magento 1.9 site. When new order place we want to check this order is reordered or not using a custom PHP file. Anyone help me to create this script.
2
votes
0answers
29 views

Magento2 URL key for specified store already exists. while creating product

I'm creating products using scripts. Product data came from json file. Problem is I'm getting error URL key for specified store already exists. ,when second product has same name but different sku. So,...
1
vote
0answers
53 views

Get data from eav instead of flat table

I am trying to get product collection programmatically and product flat table structure is enabled. I don't want to disable product flat table, this will hurt frontend performance. Just for my script ...
1
vote
1answer
533 views

Magento 2 : Add custom script just after body tag

I am using Magento 2.3 Can anyone please provide appropriate way for How can i add my custom script code after the tag. Thanks
0
votes
1answer
65 views

Magento 1 script to get customers wishlist

I want to create a script to get a list of all customers and their items inside their wishlist. How can we achieve this in our Magento 1.9.4.1 store?
0
votes
0answers
36 views

Magento2 Cron Script error

I'm getting following errors as soon as I connected with the marketplace it's asking me to install 56 extensions and I'm trying to install them and getting the error in the first image. 2nd Image ...
2
votes
0answers
96 views

why deployVeniaSampleData.sh runs out of memory

Trying to run the Venia sample data deploy script bash deployVeniaSampleData.sh --yes but keeps getting mmap() failed: [12] Cannot allocate memory PHP Fatal error: Out of memory (allocated ...
0
votes
1answer
78 views

Magneto 2: How to remove duplicate sku with images in each rows of CSV

I am using magento2x. I need to create custom script for removing duplicate sku's with images with multiple entries of sku's in each rows of csv.if anyone know reply me.
2
votes
1answer
433 views

How to run external script outside of magento 2 root directory?

I have made a few external php scripts to update quantity and tracking numbers,etc Right now, i'm putting them in magento root and set the permission to 640. However, it's still accessible by the ...
2
votes
2answers
478 views

Magento 2 - create custom script on root directory

In Magento 1.9 I simply use below code and Magento's Mage model could be run on the script then include_once 'App.php'; include_once __DIR__.'/../app/Mage.php'; How can I do it in Magento 2? So that ...
0
votes
1answer
722 views

Easiest way of adding a script to the order confirmation page in Magento 1?

I need to add a script that tracks orders on a Magento shop. This script is to be inserted onto the order confirmation page. What is the easiest way of inserting this script onto the order ...
0
votes
1answer
48 views

Magento1 website Security patch installation by script

Magento1 my website i have installing following Security patch: Security patch 10975 Security patch 10415 Security patch 9767 Security patch 8788 Security patch 7405 but i want script in my root ...
1
vote
0answers
111 views

Magento 2.3 checkout page hang up due to knockoutjs or underscore

After Magento 2.2.4 upgraded to Magento 2.3.0 checkout page is not working. Checkout page hang up browser and showing browser warning to stop it. When clicking on stop it is showing some jquery ...
2
votes
2answers
547 views

How to remove modal.js and its related files

I need to remove modal.js and it's related files all over the website. It is available in vendor directory and I need to remove it from DOM. I found similar question, but no one answered it: How to ...
1
vote
1answer
180 views

Magento 2.2.6: Programatically updating product custom options

I am working on custom script to update product custom options. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $_product = $objectManager->create('Magento\Catalog\Api\...