Questions tagged [save]

Questions related to save action, most commonly used in form submit

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

Get value changed in admin grid SaveButton magento 2

I created a custom magento 2 form. As far as saving, I would like to take the modified value in the save.php of the controller. Is there any method I can use? This is my save.php controller <?php ...
0
votes
1answer
23 views

Magento 2 Error while saving product

I am getting " DateTime::__construct(): Failed to pass time string (17/06/2019) 0(1):Unexpected character error while saving product. See the Screen shot below Image Here What can be the ...
1
vote
1answer
25 views

Programatically Product Save with Image

This is My File Uploader in .phtml file : <input type="file" id="imageUploader" name="imageUploader"> This my PHP file code where form post. <?php namespace VendorName\ExtensionName\...
0
votes
0answers
40 views

Magento 2 add custom tab in customer edit section and save data

I am able to add custom tab customer edit section when they click on it i am showing one form by using protected function _prepareForm() { this function form is showing but when i change data in that ...
0
votes
0answers
26 views

Magento2.3.0 : In admin inside Payment method after save getting error

I am using Magento 2.3.0 I go to admin panel store -> configuration -> sales -> payment methods enable any payment method after save below image display. on this same page showing this error ...
2
votes
0answers
91 views

Magento 2: How to get product old and new data on product save button in admin backend?

I am working on Admin Actions Log Extension. For the reference, I am using the link below https://amasty.com/admin-actions-log-for-magento-2.html I want to get old and new data of products while we ...
1
vote
0answers
69 views

Magento2.3.0 Getting error on admin side when save blog [closed]

I am using third party module mageplaza blog extensions this is an issue when I save in admin side getting error 1 exception(s): Exception #0 (Exception): The file was not uploaded. Exception #0 (...
0
votes
2answers
58 views

Fastest way to load category and save programmatically in Magento 2

I want to load all collection in Magento 2 and save one by one programmatically. is there any faster way to do so. I tried below code for one category use Magento\Framework\App\Bootstrap; include('...
0
votes
2answers
36 views

How to resolve “Model LSD method save() detected in loop” in magento 2?

I am getting a warning as a "Model LSD method save() detected in the loop" when I did MEOP2" The issue is on below the line $model->setData($finalData)->save(); Please anyone can help me to ...
0
votes
1answer
18 views

Magento 2 : Form data not saving

I have an XML form on the backend. It has the save button the code for which is this - class SaveButton implements \Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface { ...
0
votes
0answers
26 views

How to update the stock status after the quantity changed in magento 2.2.4

I wish to update the stock status while saving the product. If the quantity is 0, then I wish to update the stock status as out of stock. If the quantity is 1 and above, I wish to update the stock ...
0
votes
1answer
51 views

Unable to save the product stock status as “Out of stock” in magento 2

I have imported a single product via backend. The product stock status is mentioned as 0 ("is_in_stock => 0") in csv sheet which i imported. The product successfully saved. But while opening the ...
0
votes
1answer
32 views

How to override the GroupInterface by creating extension attributes in magento 2

I wish to override Magento\Customer\Api\Data\GroupInterface to add my custom fields. Custom fields are 1.custom_terms 2.handling_fee I have created the below file in etc/extension_attribues.xml &...
2
votes
0answers
53 views

di.xml ExtensionPool create/read handlers Conflicts

I am creating extensionpool handlers to save data in multiple tables. There are total 3 tables : 1 : Sliders 2 : SliderItems 3 : SliderSelectedItems When I create/update Slider, list of selected ...
0
votes
0answers
194 views

While saving product throws “Unable to save Stock Item” exception in magento 2.2.6

While saving product in backend,throws "Unable to save Stock Item". I have tried after flushed the cache and reindexing but still exception throws. I have reffered below link, but no luck https://...
0
votes
1answer
52 views

Unable to unassign the category of a product in backend magento 2

I wish to unassign the categories of a product in admin end. After unassigned the categories, I have saved the product. But the saved changes is not applied. Please provide me a solution to solve this
0
votes
0answers
50 views

Magento 2.2.4: Could not save product “3395” with position 1 to category 1882

I am using Magento 2.2.4. Assigned a product to two categories. One of the categories is a child of the other. Following error is thrown while saving the parent category after removing the product ...
0
votes
0answers
112 views

Could not save product “” with position 0 to category - Magento 2 [duplicate]

I have gone through all the links as possible..but i don't find any solution for this.. From this Link ..its already fixed in 2.2.4 My current version is 2.2.7 and still i am facing the issue.. ...
1
vote
2answers
58 views

M2 Custom Extension 404 save error

I'm trying to write a fairly simple extension that can save data to an admin grid. I've been using the Magento CMS module as an example of this, I have my grid, I can click new and enter data, but ...
3
votes
1answer
83 views

Magento 2: How to save data in DB from admin through UI component?

I can not save the data in the database when editing the record, the data remains the same as it was before Ronis\Feedback\Api\Feedback\FeedbackInterface.php <?php namespace Ronis\Feedback\Api\...
1
vote
1answer
99 views

UI component save button controller magento 2

I have UI admin form xml file. I've got SaveButton.php block file, but I need to save form in db. As far as I know I need controller. How this controller would look like and in which directory it ...
0
votes
2answers
248 views

Error While Saving Product and doing reindex in Magento2.3

When I run the reindexing command got this error: Fatal error: Uncaught Error: Cannot instantiate interface Magento\InventoryIndexer\Model\StockIndexTableNameResolverInterface in /home/public_html/...
2
votes
1answer
63 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
158 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
68 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
2answers
258 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
210 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
146 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
37 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
44 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
394 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: ...
3
votes
3answers
1k 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
420 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
71 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
575 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
34 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
410 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
164 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
413 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
57 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
329 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
832 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
54 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
85 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
100 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
284 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
460 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
114 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
248 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
247 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 ...