We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [save]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
139 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
339 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
560 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
155 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
295 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
295 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
2answers
923 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
422 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
1answer
442 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'...
1
vote
1answer
59 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. ...
5
votes
2answers
3k 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
144 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
336 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
72 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 ...
0
votes
3answers
2k views

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

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
475 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
1answer
499 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
317 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
85 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 ?
2
votes
1answer
471 views

Overwrite Customer EditPost controller not working Magento 2

I am trying to overwrite the customer save controller but it is not working. This is my di.xml file app/code/Mp/Accountmanager/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www....
2
votes
1answer
2k views

Insert multiple rows without calling model save inside loop

Following code is working fine. $data = $this->_customDataSave->create(); $data->setUsername($this->getUsername()); $data->setFullname($this->getFullname()); $data->setEmail($...
0
votes
2answers
523 views

Magento 1.9 Save action for Catalog Product custom tab

I created the custom tab in Catalog Product. It is my layout/labels.xml <adminhtml_catalog_product_edit> <reference name="product_tabs"> <action method="addTab"><...
0
votes
1answer
537 views

While saving getting error and product is not saved In Magento 2

While creating the new product, entering all the values trying to save the product below error is displayed not saving the product. https://prnt.sc/ireqyg. Any Help would be appreciated.
0
votes
1answer
245 views

Magento 2 - Save data to multiple tables not working

I have created a custom module having two tables named helloworld_post and helloworld_tag and from front-end side I want to save fields values to these 2 tables. However I have created two respective ...
4
votes
2answers
440 views

Magento 2. Catalog product edit save button not working

admin/catalog/product/save button is not working anymore. I'm unable to edit/save product. No output whatsoever in var/log/* No output whatsoever in browser console No activity in browser network ...
0
votes
0answers
17 views

Overidding product saveAction() - reindex issues

I have created a custom module in which I'm overriding the standard core product saveAction() function (located in app/code/core/Mage/Adminihtml/controllers/Catalog/ProductController.php). Even if ...
2
votes
1answer
426 views

How to save additional column field in core table in magento 2

I have created custom module for product review. I have added additional coloumn in review_detail table in DB. I got all submitted values from form including my custom column value in Controller. But ...
2
votes
1answer
2k views

How to add save and continue button in ui-form in Magento 2?

I have created admin grid and form using ui component. Now I need to add save and continue button, How do I add it? Please provide me a solution
0
votes
1answer
149 views

Added a product as configurable but is is showing as simple? Can I change it?

Using Magento 2. Definitely not an expert but I added a product and selected add configurable, however, once I clicked saved, it was listed as a simple product?
0
votes
1answer
122 views

Magento2. Customer repository change attribute does not work

Everything is simple as an egg, but it does not work. Please help to figure out why. If you need more details - please let me know. /** * @param int $customerId * @param int $addressId * * @...
2
votes
2answers
1k views

Magento 2.2.2 On product save i get error ''Invalid Form Key. Please refresh the page'

I add some custom option in sample product. I save this product and add changes in custom option. But I can not save the product. and get this error, Invalid Form Key. Please refresh the page.
0
votes
1answer
38 views

Magento 2 - Which function / controller has triggered my plugin?

I have setup a plugin which runs after a customer is saved. This means that the plugin runs on the following situations Frontend When a customer register When a customer updates their name Backend ...
0
votes
1answer
2k views

Magento 2 - Sales Orders afterSave plugin not working

I have created a plugin so that I can process the order and send to a 3rd party after it has been placed. I have hooked into the afterSave functionality and my plugin code looks like this di.xml <...
1
vote
1answer
267 views

Magento 2 on save configurable product from admin show product in frontend list, indexing removes

I've got configurable product and simple product associated to it. when I save configurable in admin it shows in the the product listing but when I reindex e.g bin/magento indexer:reindexit removes ...
0
votes
0answers
339 views

Fast way to resave all products

I need a fast way to resave all 75.000 products in my Magento 1.9 store. Currently I use the following code, but that is not very fast. Is there a better and faster way to resave all products? CODE: ...
1
vote
1answer
332 views

Magento2. More information about the Entity Manager?

A part from this question Magento 2.1: using the entity manager that was asked and answered a year ago, a lot can change in an year, I can't seem to find anything about the Entity Manager. Should I ...
1
vote
0answers
675 views

Magento 1: update custom option price value programmatically

I'm trying to update the option values of an existing product custom option. This is the code I've developed: $product = Mage::getModel("catalog/product")->load($productId); $titolo = 'Test'; $...
0
votes
1answer
171 views

Saving a value without triggering aftersave()

I'm not going in detail about what i'm exactly saving because this question is regards all the possible thing you can save with the ->save() function in each repository. Anyways , when importing data ...
0
votes
1answer
873 views

Magento 2: how to save a new instance of a custom model to the database (INSERT INTO instead of UPDATE)

I have created a model and a repository to save the model, the only functions I can find in the model->getResource() are save, load and delete. The save function always uses an UPDATE statement, so ...
1
vote
1answer
1k views

Magento 2: How to Set custom product attribute value on product save

i have created an observer, event on before product save to set custom product attribute value, here is my code. etc/adminhtml/events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www....
0
votes
1answer
33 views

Extra actions after order saved

I am new to Magento, but what I need to do is: after the order is saved, I have to call an external webservice and pass some order data to this service. Where or what is the best place to do so? ...
5
votes
1answer
534 views

Category with 20000 product not save

I have a category with 20000 products and 50 subcategories, while I tried to save that category at that time Magento go into infinite loop and after 10-15 min getting 500 error. I have set 18000 max ...
0
votes
1answer
2k views

Magento2: Category Select Attribute Not Saving?

I've registered a custom select option to my categories using the files below in my module. The select option appears in the backend with my custom options however it doesn't save the selected option ...
3
votes
1answer
665 views

Difference between catalog_product_prepare_save and catalog_product_save_before

What is the difference between catalog_product_prepare_save and catalog_product_save_before? I have an observer that updates some attributes when a product is saved. It works great when I save a ...
1
vote
0answers
210 views

Saving form data in configuration observer in Magento 2

I have a field in store configuration that has a select per store that contains a language setting. I've also written an observer that fires when this section of store configuration is saved. However ...
0
votes
1answer
685 views

Magento2 : How to save system config programmatically [duplicate]

I made a module to add configuration fields to system (system.xml). Some of these fields are dynamic arrays (cf here) which are generated using an extend of \Magento\Config\Model\Config\Backend\...
0
votes
0answers
338 views

Checkout page custom filed value not save in magento 1.9.2

I have to add a custom field called "Mobile number" in Customer registration page and checkout registration the code working perfectly in customer registration but in checkout registration the value ...
1
vote
0answers
532 views

Magento 2 save custom order status in custom table using custom module

I have created a custom module for show the custom order status in the admin. It's working fine and displaying the static. Now, I want to save the status value in the custom table with the current ...
0
votes
1answer
3k views

How to save upload image file to a folder on product edit page in backend in Magento 2

I have added a custom tab on admin product edit page. And in that custom tab added a image upload field. I need to save the image while saveing the product. Is it possible to do it via ajax and a ...
0
votes
1answer
3k views

How to save a image upload to a folder in magento2? [duplicate]

Created a custom tab on admin product edit page. Here added a image upload section. I need to save the uploaded image to a folder.