Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [save]

The tag has no usage guidance.

2
votes
1answer
29 views

Product Page 404 - product re-save needed

After updating some products by importing csv file, there are some of them that display 404 error in frontend product view page. Saving these products manually solves the issue. Saving these ...
1
vote
0answers
28 views

Foreign key constraint fails

I update schema newsletter_subscriber, certain I added firstname column which is a foreign key to customer_entity firstname, and when I post data the object with value is sent and in Magento insert ...
2
votes
1answer
27 views

Something went wrong while saving this configuration: Area is already set magento 2.3

I am facing this error in version magento 2.3 while saving header logo. Actually this issue is resolved as per gihub but even it is coming.link
0
votes
0answers
22 views

Magento 2 : How to save custom field from customer edit form to customer_entity table?

We have added "custom_field" in customer_entity table and we're saving the data from customer edit form in account section. And it's not saving. We tried through observer but it doesn't carry request ...
0
votes
2answers
38 views

Fatal error: Uncaught TypeError: Argument 3 passed to Mage_Catalog_Model_Resource_Abstract::_canUpdateAttribute()

I am getting an error while trying to pragmatically remove products from some categories. Error: Fatal error: Uncaught TypeError: Argument 3 passed to Mage_Catalog_Model_Resource_Abstract::...
1
vote
1answer
33 views

Magento 2 - how to upload an image from admin CRUD

I'm new to Magento, created a simple CRUD module, which have a name, description and logo columns, Name and description are saving to the DB without any problems, but I need help on how to upload an ...
1
vote
0answers
24 views

How to select values in parent grid magento 2 from ui component modal?

I have a custom product listing grid, on clicking add products, I have created a (slider) modal, Where I check the products from another grid and click add selected products, then the selected items ...
0
votes
1answer
10 views

Magento 2 Check a customer attribute is changed during save

I have created user Approve module which lets admin to approve user after registration. I want to send a email on activation and deactivation of a user, How can I find that the admin has changed the ...
0
votes
1answer
23 views

How to call save method in collection instance

I was appeared Magento 2 Associate developer certification exam, in that I got the below tricky question, but I don't know the concept and answer of the question. can you have an idea regarding the ...
1
vote
1answer
63 views

PHP 7.2 session_set_save_handler() cannot change save handler

So i'm struggling with updating PHP for my magento from 7.0 to 7.2. Currently running Magento version 1.9.4.0. And i get those errors now on a save event in my ERP system Warning: ...
2
votes
2answers
182 views

Magento 2.3 : How to set qty for multiple sources (Multi source inventory) programmatically

I have a site with 3 inventory sources. I want to add and update product inventory to each source by product sku. Please help me
0
votes
1answer
127 views

“No alive nodes found in your cluster” error in magento 2.1.6 after elasticsearch

Every time I save a new product I get that error "No alive nodes found in your cluster" My version of magento is 2.1.6 and the problem appeared after installing the elasticsearch module What ...
0
votes
0answers
59 views

Magento 2: Create Customer Attribute in Custom Save Controller

I have a custom module with a custom form in admin. On this form save action, I want to create customer attribute programmatically with the data fetched from the custom form. How can I do it. ...
1
vote
2answers
219 views

Unable to save Stock Item

I have installed Magento 2.2.6 in Google cloud VM. It is a fresh install and when I try to save a simple product, I get the following error: "Unable to save Stock Item" My exception log shows the ...
0
votes
0answers
29 views

Admin changes not reflecting after migrating magento 1.9 to magento 2.2

I have migrated my magento 1 site to magento 2.2.X by using the migration tool after done product and configuration all are migrated but when i change anything in admin like product qty or system ...
0
votes
0answers
159 views

How to save data in custom column in sales_order table Magento 2

I need to save a string in a new column I created in the order table but I can not get any positive results, it does not save anything. First I created the column: <?php namespace Vendor\Module\...
2
votes
2answers
85 views

Magento 1.9 Get customer data an products in Observer on invoice save on php 7.1

I want to get on event sales_order_invoice_save_after customer data / products to put on external billing sistem: public function factura(Varien_Event_Observer $observer){ $order = $observer-...
1
vote
3answers
130 views

Magento 2.2.5: How to get product id after product saved using plugin

I'm looking for how to get product id after product saved using plugin. I use the plugin to catch after execute() is fired. But I can't get product id no matter how I try. Here is what I've done: ...
0
votes
0answers
28 views

Magento 2.2.4 - After save and duplicating a simple product, different product is loading

We have Magento 2.2.4 store which is migrated from Magento 1. The bug is after saving and duplicating a simple product, expected is that duplicate product has to load for editing, but in our case, a ...
0
votes
1answer
101 views

Change the URL of save button in the admin grid

In Magento 2.2.5, How to change the URL of save button in the admin grid. Note: I am not creating grid through ui_component, I am creating grid using layout. Reference: Ref 1 Ref 2
0
votes
2answers
104 views

New product attributes value cannot be saved in magento 2

I have created nearly 10 new attributes under product attributes. Its added to attribute set as well. But now, when I update the product information, the data is not getting saved. Instead, after the ...
0
votes
1answer
31 views

Magento2:custom module add new form action after not save data

I have create new custom module click add new form after data fill up than save not working but if in existing record edit after save working please let me know hows problem?
0
votes
0answers
53 views

Unset / modify attribute value before save

I have a problem in saving products which I need to unset an attribute value upon saving e.g. url key. I thought catalog_product_save_before would be the solution but it seems dispatchers don't pass ...
2
votes
1answer
38 views

Custom attribut value don't save in editing product from back-end

I've had a custom select option in the product edit in the backend. When I try to save the product, my option is not saved. Here the code : di.xml <config xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
178 views

getting this “Integrity constraint violation: ” while creating custom option

I have create custom module to create custom option with the reference of this "https://meetanshi.com/blog/create-custom-options-programmatically-in-magento-2/" page. I'm getting bellow error for ...
4
votes
2answers
254 views

Magento 225 :Notice: Array to string conversion

When I try to create a new record in my custom module I get the below mentioned error Something went wrong while saving the item.Notice: Array to string conversion in /opt/lampp/htdocs/...
1
vote
3answers
53 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
129 views

Image upload resulting in empty $_FILES array in magento 2

In my custom module I'm trying to upload an image via my save controller, I added the form in my block with this code: protected function _prepareForm() { $model = $this->_coreRegistry->...
2
votes
1answer
99 views

Magento2 make simple afterSave action plugin of custom module

I am trying to create afterSave plugin for my admin form save action controller of my custom module. The purpose of this is to save some data into second table once all data completely save in first ...
0
votes
0answers
42 views

Magento 2 Custom Product Validation

When creating a product I need to make a call to our stock system to make sure that the SKU entered in Magento exists in our stock system. Please, could someone advise the best process for this? I ...
0
votes
2answers
493 views

Magento 2.2.5: Save and Continue Edit Button doesn't work

I'm doing the Save and Continues button in "Slide" page. So what I've done til now: Everything was perfect, but my Save and Continue Edit button doesn't work. After I click the button, it throws a ...
0
votes
0answers
273 views

You need to choose options for your item while adding product to cart

Trying to add configurable product to cart with custom qty with below code but getting You need to choose options for your item error. foreach($optionQty as $key => $qty) { $storeId = ...
0
votes
0answers
123 views

Magento 2 Remove Category from Products programmatically not working

When I save the product it takes some time and after it show me the blank page with below message: Service Unavailable The server is temporarily unable to service your request due to maintenance ...
0
votes
1answer
90 views

Magetno 2 custom module how to Update DB Table row with model

How do I update instead of inserting new row on save using model My code: $question = $this->_objectManager->create('Vendor\HelloWorld\Model\Question'); $question->setTitle('Simple Question'...
0
votes
0answers
289 views

Saving data from custom Checkout input field

I am actually working on customization of the checkout form. I need to add a custom input field such as Fiscal Code inside the form. Via Plugin I added the field, but after Placing Order the ...
1
vote
1answer
41 views

Memory exhausted error coming while creating catalogrule with category

I have around 50 categories. When I save the catalogrule without selecting the categories it gets saved correctly. But when I save along with selecting the category it display memory exhausted error. ...
0
votes
0answers
56 views

Magento2 product Schedule Update creation not working

I have tried to create product schedule update for simple product with custom options, but am getting below error. Please help me to fix this issue
0
votes
0answers
53 views

Empty Customer Vat attribute

Every now and then we get a customer that saves not correctly, they fill in the vat number at there address. But after the checkout we receive an error the customer has no VAT filled in. VAT is good (...
0
votes
0answers
38 views

I am adding a extra tab to product add/edit page in magento 2

I am adding an extra tab to product add/edit page in Magento 2. For upload file/image into a custom database table and copy that image to pub/media folder . What is the way to do so please tell me. ...
1
vote
2answers
1k views

Magento2 : user define customer attribute not save value while create / save from admin

I have created two customer attribute one "abc" and second is "xyz" this two attribute display properly in customer admin. also attributes are created in database table "eav_attribute". But while save ...
0
votes
5answers
101 views

For each loop running only once

In the below code, where I am trying to update a custom attribute called branding. The for loop is running only for one iteration and stopping. It is updating only the first product in the list and ...
0
votes
2answers
208 views

Save method is not working for products

I want to resave all products programmatically. So I am trying to use the below code to achieve it. But the save method is not working in it. I have placed the code in the root directory of my Magento ...
0
votes
1answer
51 views

Magento2: I wanted to save order details to my local database

I wanted to Save Orders from magento 2 to my local database or another database when new order is placed in Magento frontend. I need to Save the order details when the new order is placed in magento ...
1
vote
2answers
717 views

How to solve the error : “Could not save product ”20072“ with position 0 to category 7” in magento 2

While unasign the product from multiple categories to single category and trying to save the product, it thorow the error like below Could not save product "20072" with position 0 to category 7 I ...
1
vote
1answer
322 views

Magento 2 product and customers not saving “No data to save”

I've have the following issue: Customers are not save on Save and Continue Edit and redirect to the Customers overview page with the status code 301 Save Customer is working On Products there is an ...
0
votes
0answers
19 views

How to update the name of the configurable product via script in magento 2

I wish to change the name of the configurable product in magento 2, I have tried below code but it not works $sku = "xxx_1"; $productId = $objectManager->get('Magento\Catalog\Model\...
0
votes
0answers
66 views

how to save shopping cart comment after place order using event in magento 2?

I have create upload module and this module phtml file call in shopping cart page .pfa but i want to save comment in database after place order and showing comment in this order. i have create event ...
0
votes
1answer
220 views

Magento 2 controller values save via model in custom table without load model?

I want to call model in controller and save values via model in controller. protected $pageFactory; protected $quesModelFactory; public function __construct( \Magento\Framework\App\Action\...
0
votes
2answers
202 views

Category save not working

I am trying to update the category using following code. $category = $this->categoryFactory->create()->load($categoryId); foreach($data as $d) { $category->setDataUsingMethod($d['...
1
vote
1answer
78 views

How to create a custom field in Magento 2 user registration?

I want to create a custom input field in Magento 2 user registration page and save this field in database. Can you help me ?