The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [script]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
24 views

Export all product using custom script in Magento 1.9 [duplicate]

I have an export my all product with all data in the Magento 1.9, Using the custom script so how can I? Please suggest. Thanks.
0
votes
0answers
12 views

DB script for search and replace a word from entire database

I want to make a DB script for my Magento 2 site. I want it to search a specific word and replace it from another.I have seen other links that show how to replace but those are the queries. I need a ...
1
vote
1answer
28 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
29 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
0answers
10 views

How to set an attribute value for customizable product in child product level in siebel prodiuct configurator

I'm using this scrip however, i doesn't work.. function Cfg_AttributeChanged(ChangedAttribute) { for (var j = 0; j < ChangedAttribute.GetChildCount(); j++) { var attr = ChangedAttribute....
0
votes
0answers
37 views

How to write a condition to show down arrow if the category has sub-category?

I want to show down arrow when if the parent category has a child category. As of now, the code I'm working is showing the down arrow for all the parent categories even though it doesn't has a sub ...
0
votes
0answers
14 views

Amazon affiliate script code not work in magento 1.9.1?

How to show affiliate product on my site. We have add script code from some pages but it's not work. Another wordpress site code is working properly. Script code: Only iframe code is working <...
0
votes
1answer
16 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
18 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
25 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
40 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
76 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
24 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
41 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
25 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
31 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
34 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
27 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
29 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
46 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
24 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
0answers
107 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
154 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
48 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
0answers
18 views

Magento1 website Security patch installation by script then error show

Magento1 website Security patch installation by script and when run url in browser (like http://www.mywebsite.com/applypatch.php)then below error show: ERROR: "/app/etc/" must exist for proper ...
0
votes
1answer
29 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 ...
3
votes
2answers
127 views

Unlink and link product to category

Need a script where current existing products needs to unlink and link to other categories. let me know the process also
1
vote
0answers
43 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
219 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
0answers
79 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\...
0
votes
0answers
47 views

Magento2 How to update product position (number) in specific category by custom script with csv

I would like to set all position sku wise in one specific category using csv here two column data, sku and position. So if anyone has an idea for the custom script kindly reply for me below code ...
0
votes
0answers
56 views

Magento2: custom script for category product sort order position

I need custom script run for specific category products position and use this spreadsheet to change the sort order of the specific category "position" If anyone idea reply me as soon as.
0
votes
1answer
50 views

How to fix error

How to fix error 'Uncaught SyntaxError: Unexpected identifier' var script = document.createElement("script"); script.type="text/javascript"; script.src = 'url'; script.innerHTML="dataLayer = ...
0
votes
0answers
19 views

Magento 2 : Does magento have a standard way of painlessly making and running scripts?

Does magento natively has support for writing scripts, and running them from terminal or cron jobs? Can symphony console component bundled with magento be used to run custom commands to run scripts ...
1
vote
1answer
33 views

Prevent Magento2 display information on script on homepage

I would like to know how can i stop magento2 to printing information about my plugin and script on homepage.If u analyze my code i have got all these script that contain information about all plugin i ...
1
vote
2answers
459 views

php - create csv export file, based on product values

I currently have the following script, that change the producttitle of a product with a specific ID. Now I want to re-write the script, so that it does not update the attributes but generates a .csv ...
0
votes
1answer
19 views

Magento 1.9 save productname using script

I try to save the productname, based on the following script. But I get a TypeError when running the script. What am I missing here? <?php ini_set('display_errors', 'On'); error_reporting(E_ALL);...
1
vote
0answers
59 views

Bash script magento

I created a simple bash script to automate some activities in magento administration. The options that are contained in the script are commands that I execute frequently. Leave your comment if you ...
0
votes
1answer
32 views

Magento2 custom folder php scripts are not being executing 500 error

I have some PHP scripts for creating products using rest api. All the script are under products_create_factory folder and this folder is in magneto2 root. When I execute a script from that folder from ...
0
votes
1answer
106 views

I am not able to reflect the contents added in html head of admin panel in view source code in magento 2

I have added few script tags in the following path of admin panel: content->design->configurations->our theme(edit)-> html head->scripts n style sheets. But it's not reflecting in view page source ...
1
vote
1answer
410 views

How to remove malicious code from the each files of the website magento 2?

I am seeing some malicious code in the website. Each files of every folder is affected by this code. How to remove this code from the website? Is any script to remove or replace this malicious code? ...
0
votes
1answer
35 views

Magento resave all products that are in in price table

We face an issue that not all products with prices are saved in the catalog_product_index_price table. So we want to resave all products that are not in the catalog_product_index_price. How can we ...
1
vote
1answer
71 views

Free Shipping using PHP Script

I have to give free shipping order over 1000 and zipcode range between 600001 to 600010, i am using webshop matrix rate for shipping method, in this case, shopping cart pricing rule not working free ...
1
vote
0answers
45 views

Update label option of attribute

I try to update labels options on my size label in an installer. I use the following code : $attributeId = Mage::getResourceModel('eav/entity_attribute')->getIdByCode('catalog_product', '...
1
vote
1answer
233 views

Magento 2.2.5 shell script PHP Memory size of 2097152 bytes exhausted (tried to allocate 32768 bytes)

I have a magento 2 script which runs through shell so to not have a timeout issue. It uses php multi curl request and it was running fine. But recently asked our hosting server to increase the PHP cli ...
1
vote
3answers
133 views

Magento $product->save() is slower part of script

In my Magento 1.9.1 I am updating the inventory via script. Via this script I update almost 19K products. I have used $product=Mage::getModel('catalog/product')->load($id); to fetch the records ...
0
votes
1answer
27 views

Bootstrap Magento in external script with a second database connection

I use below code to bootstrap Magento in an external script, which works. As an example it gets the name of a specific product. Is it possible to connect to another Magento database (on the same ...
0
votes
1answer
45 views

Magento CE 1.9 Script for setting stock

I need a script that will check all magento products and set them to instock if the qty is greater than 0. The plan is to run this as a scheduled cronjob so that it will be checking for any products ...
2
votes
3answers
623 views

How do I run custom script from magento2 root folder?

Below url throwing Class customScript does not exist error. my test.php and customScript.php are in test folder. Once i run http://127.0.0.1/magento2/test.php, getting "Class customScript does not ...
0
votes
1answer
438 views

Magento 2 import new products with a CSV file and cron job

How to import products with your image and categories from a .csv? I'm using the script: Magento 2 import new and update current products with a CSV file and cron job But I do not work the images or ...