Questions tagged [save]

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

63 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
578 views

Magento Configurable Product Save Not Working

On configurable product creation, when I hit the save button, I'm getting the error Fatal error: Call to a member function getStoreLabel() on a non-object in /app/code/core/Mage/Catalog/Model/Product/...
4
votes
2answers
443 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 ...
4
votes
0answers
214 views

No ID parameter in model save controller when saving after edit

I've written a model object and I cannot edit and save an existing object, a new object is always created. I can create and delete, but editing doesn't work. I'm pretty sure that this is because the "...
3
votes
1answer
198 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\...
2
votes
1answer
319 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 ...
2
votes
0answers
70 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 ...
2
votes
1answer
83 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
2
votes
0answers
206 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 ...
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/...
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
0answers
39 views

I want to create orders in Magento2. Orders have bundled product

I want to add orders in Magento 2. Orders have bundled products.Is there specific function/parameters we need to use to store bundled product orders ?
2
votes
1answer
2k views

Magento 2 Add extra data to an order

I'm brand new to Magento 2 programming, although I have a number of years of PHP behind me. I need to store an id from an external system alongside an order that that system creates. I've got the ...
1
vote
1answer
27 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\...
1
vote
0answers
194 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 ...
1
vote
1answer
604 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: ...
1
vote
3answers
556 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: ...
1
vote
1answer
268 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 ...
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'; $...
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....
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 ...
1
vote
0answers
533 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 ...
1
vote
0answers
254 views

Product Save button of Magento 2

I am using Magento 2. I am trying to edit a product. But the Product Save button is not working.
1
vote
1answer
1k views

Magento:Save Product image from external url

I want to save a simple product programatically.I have used the following link http://inchoo.net/magento/programming-magento/programatically-manually-creating-simple-magento-product/ All fields are ...
1
vote
0answers
39 views

Backend not loading completely

In magento backend, if I click on save button loads the page but the saving modal dialog newer stop. you see this on the screenshot. Page is not loading but the saving popup is not stopping. Also if ...
1
vote
0answers
1k views

INSERT ON DUPLICATE KEY UPDATE Magento2 Error

When i tried to save the product from Admin i am getting below error SQLSTATE[42S02]: Base table or view not found: 1146 Table 'catalog_product_category_cl' doesn't exist, query was: INSERT INTO ...
1
vote
0answers
311 views

Uncaught exception 'Exception' with message 'User Error some transactions…'

I'm getting this error when i try to save to my db an employee. > Fatal error: Uncaught exception 'Exception' with message 'User Error: > Some trans actions have not been committed or rolled ...
1
vote
0answers
39 views

Need to save all simple products via admin or programatically

I need to be able to re save all simple products in order to update a custom attribute via some custom code, the attribute is only updated when a product is sold or saved or an order is cancelled. The ...
1
vote
1answer
84 views

Singed integers are not saving properly?

I have a custom table with column 'discount_percentage', which is a signed integer. e.g. +5 , -2 likewise I have defined the data type as Varchar for this field. But it's not saving the value ...
0
votes
0answers
12 views

Save grouped product : Requested product doesn't exist

I am getting an error in a external script when I am trying to save a grouped product : something goes wrong with product save method, the exception is "Requested product doesn't exist". Doing unit ...
0
votes
0answers
14 views

Magento2 what save product button (admin) does more than save programmaticaly?

We have recently converted configurable products in grouped product + get all linked simple product moved. All is ok on front. But in the back office, on the product edit page, the listing of simple ...
0
votes
0answers
25 views

Magento 2.3 Save and Duplicate Product

I wanted to make a duplicate product. SO i did save and duplicate and a product was created. For product 1,SEO url is gin-glasses-pasabahce-timeless For product 2 , SEO url is gin-glasses-pasabahce-...
0
votes
0answers
14 views

Issue saving existing products, 2.2.6

We have 5 - 6 products in our catalog of 3005 which are existing products but we can not save them. It provides a 'technical server error' but it produces no logs or entries. Host has tried to ...
0
votes
0answers
108 views

Magento 2 : Class interceptor does not exist

I have a simple module when I save data then this error : Magepow\Importexport\Controller\Adminhtml\Allimports\Save\Interceptor does not exist [] [] here is save file <?php namespace Magepow\...
0
votes
1answer
27 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 ...
0
votes
0answers
89 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
29 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 ...
0
votes
2answers
172 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
0answers
36 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
0answers
271 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
53 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
60 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
1answer
94 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
0answers
72 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. ...
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
543 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\...
0
votes
1answer
58 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
1answer
341 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 ...
0
votes
0answers
424 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
2answers
339 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
538 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.