Questions tagged [save]

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

Filter by
Sorted by
Tagged with
2
votes
2answers
205 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-...
2
votes
1answer
151 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
489 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
350 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
2answers
3k views

How to create Magento editable grid?

I couldn't find a better tutorial for creating an admin grid which is editable. And the grid column contains dropdown boxes. And there's only one save button for the entire grid. (Means there's no ...
1
vote
1answer
1k views

The table 'catalog_product_index_price_tmp' is full error

I faced one strange issue with product saving on Magento EE 1.14.2.4. This issue appears only when I save exactly one product, I'm able to save other products without any problems. Here is screenshot ...
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 ?
1
vote
1answer
2k views

Magento 1 - Save Collection Without Foreach

I am currently going through and optimizing our codebase for our custom modules. I am using PHP Codesniffer along with the Magento Coding Standard rules to scan our code. In many of our files I see a ...
1
vote
1answer
201 views

Save Form data to database Gives error: Call to a member function addData() on boolean

Have the following fields in my from: protected function _prepareForm() { $form = new Varien_Data_Form(array( 'id' => 'edit_form', 'action' => $this->getUrl('*/*/save'...
1
vote
1answer
950 views

billing.save(); not firing as guest

I'm using the rwd theme that came with Magento 1.9. I just modified the styling a bit. The problem is now, if I want to buy a product the checkout is working fine. But if I want to order something as ...
1
vote
2answers
3k views

Overriding Magento Save method

We have a attribute 'short-description' in our product listing page. We want to escape html characters e.g. "&" => "&amp;" , and append information to it when our admin hit 'save' in product ...
1
vote
2answers
284 views

How to save XML code snippet in customer session?

I want to save a piece of XML code in the customer session. So far I tried with the following code. // Get customer session. $customerSession = Mage::getSingleton('customer/session'); // $xml ...
1
vote
1answer
186 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 ...
1
vote
1answer
269 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
1answer
147 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
3answers
165 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 ...
1
vote
1answer
492 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 ...
1
vote
1answer
764 views

On adminform save gives an error : Call to a member function load() on boolean

Here is the form that i am using in admin form: protected function _prepareForm() { $form = new Varien_Data_Form(array( 'id' => 'edit_form', 'action' => $this->getUrl('*/*...
1
vote
1answer
50 views

custom email logic

What have i done wrong here? If someone saves a product or updates a product attribute but the product is disabled it shouldn't send an email. If a product is enabled and they disable it whether ...
1
vote
1answer
360 views

Transactions - need id from saved objects

I have a transaction which saves 2 order objects. The benefit of which is obviously that if any fail then it is all rolled back. However, there are associated objects which need to reference the ids ...
1
vote
1answer
50 views

Getting current data after calling save()

I'm experiencing some trouble with saving data to some of my custom columns in the sales_flat_order_payment table. After quite some time I realized that when I call $this->payment->save(), the ...
1
vote
1answer
38 views

How can I programmatically save selected products? - url key is empty after csv import

I imported some non-visible simple products (from csv) with an empty url key field. If I save one of these manually in the back end the url key is generated OK. If I bulk update an attribute 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
167 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 (...
1
vote
2answers
105 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 ...
1
vote
0answers
198 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
687 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
763 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 ...
1
vote
3answers
586 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
60 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. ...
1
vote
1answer
270 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
679 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
211 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
536 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
2answers
78 views

Proceeding to an exception page after save new category

When I save new category, I proceed to exception page. exception 'Magento\Framework\Exception\LocalizedException' with message 'Can't create directory /var/www/html/var/generation/Magento/...
1
vote
0answers
326 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
1answer
318 views

Register customer region to State/Province table

I'm fairly new to Magento and I'm not quite sure how to add a State/Province field to the register.phtml form. I read somewhere that it's not a good idea to edit this file since it gets wiped whenever ...
1
vote
1answer
83 views

Assign Website Id without calling save();

I am doing a custom function for magento Admin. The function is when author finished setup a product and save, the product will automatically assigned to certain websiteId when the conditions is met. ...
1
vote
2answers
2k views

Magento not saving CMS page [closed]

I've been running into this issue lately where I cannot save content in a CMS page if it contains the word 'Select' or any variant of the page. Whenever I try and save a page with the word 'Select in ...
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
85 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
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 ...
0
votes
2answers
2k views

How to save the PDF file into Magento root folder

$pdf = Mage::getModel('sales/order_pdf_invoice')->getPdf($invoicesSet); $this->_prepareDownloadResponse('invoice'.Mage::getSingleton('core/date')->date('Y-m-d_H-i-s'). '.pdf', ...