Daily Archives: November 16, 2019
We added some extra functionality to an Product inventory grid and now the default actions that were previously there all fail with this error below. Note products are selected with a check in the checkbox. So not sure why it says that “something needs to be selected” Any ideas what […]
What is object manager in magento2? Is it good to avoid use of it in Magento and where shall we make use of object manager ?
I’m trying to set a decimal value to a percentage discount on a tierprice. The problem is that when it’s saved the value is becoming an int instead of a decimal. Example if I set a percentage to 1.23% after save => 1% after saving it Any way that it […]
I want to override MagentoSalesBlockAdminhtmlTotals this block I did but I don’t know what I’m doing wrong. app/code/[Vendor]/[Module]/etc/adminhtml/di.xml < ?xml version="1.0"?> app/code/[Vendor]/[Vendor]/Block/Adminhtml/Totals.php < ?php namespace [Vendor][Vendor]BlockAdminhtml; class Totals extends MagentoSalesBlockAdminhtmlTotals { /** * Initialize order totals array * * @return $this */ protected function _initTotals() { $this->_totals = []; $this->_totals['subtotal'] […]
I have found a lot of examples on how to create an extra attribute for the categories. I want to create a text field for adding a different H1 – instead of using the category name as the headings, on the category pages. But how can I fetch the attribute […]