Categories
CMS Magento Mastering Development

productAttributeOptionManagementInterface api not loading attributes

I use \Magento\Catalog\Api\ProductAttributeOptionManagementInterface in my constructor and since Magento 2.3.5 it doesn’t load any attributes.

Categories
CMS Magento Mastering Development

productAttributeOptionManagementInterface api not loading attributes

I use \Magento\Catalog\Api\ProductAttributeOptionManagementInterface in my constructor and since Magento 2.3.5 it doesn’t load any attributes.

Categories
CMS Magento Mastering Development

Magento 2.x.x extension attributes API add object array

Have added custom attribute to order API with following info here: https://www.atwix.com/magento-2/adding-custom-attribute-to-api-response-in-magento-2/ It adds the “customer_feedback”: “this is my feedback” fine to api. How to add an Json object array ? E.G: “my_custom_object”: { “Key1”: “value!”, “Key2”: “value2” } Thanks

Categories
CMS Magento Mastering Development

magento 2 how to get product id from admin

In my requirement, I need product id from the admin product edit page on how to achieve this in Magento 2. I have tried $productId = $this->request->getParam(‘id’); but it is empty Model File:- <?php namespace Vendor\Module\Model\ResourceModel\Collection; use \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection; class Collection extends AbstractCollection { /** * @var string */ protected $_idFieldName = ‘sku’; protected $_isPkAutoIncrement = […]

Categories
CMS Magento Mastering Development

How to Edit Layout Update Xml for CMS Page in Magento 2?

I just migrated from Magento 1.9.3.4 to Magento 2.3.4, I noticed some of the page content is missing when I accessed the page that was created from cms page. Then I look at the cms page edit page, in M1 I can update the Page layout XML like this: But in M2 I can’t find […]

Categories
CMS Magento Mastering Development

How to Edit Layout Update Xml for CMS Page in Magento 2?

I just migrated from Magento 1.9.3.4 to Magento 2.3.4, I noticed some of the page content is missing when I accessed the page that was created from cms page. Then I look at the cms page edit page, in M1 I can update the Page layout XML like this: But in M2 I can’t find […]

Categories
CMS Magento Mastering Development

How to Edit Layout Update Xml for CMS Page in Magento 2?

I just migrated from Magento 1.9.3.4 to Magento 2.3.4, I noticed some of the page content is missing when I accessed the page that was created from cms page. Then I look at the cms page edit page, in M1 I can update the Page layout XML like this: But in M2 I can’t find […]

Categories
CMS Magento Mastering Development

Trying to Save Customer Account Causes 500 Error

Whenever I try to save a particular customer account the screen changes to the following: This page isn’t working www.mywebsite.com is currently unable to handle this request. HTTP ERROR 500 The developer tools shows the following error: POST https://www.mywebsite.com/loginforadmin/customer/index/save/key/d30e331d956b64705194dec98ee5fb818d43ce247c0a8ad563d7184dc1fe846d/back/edit 500 submit @ /pub/static/version1589884676/adminhtml/Magento/backend/en_US/mage/utils/misc.js:149 _save @ /pub/static/version1589884676/adminhtml/Magento/backend/en_US/Magento_Ui/js/form/client.js:128 (anonymous) @ /pub/static/version1589884676/adminhtml/Magento/backend/en_US/jquery.js:3417 fire @ /pub/static/version1589884676/adminhtml/Magento/backend/en_US/jquery.js:3238 fireWith @ /pub/static/version1589884676/adminhtml/Magento/backend/en_US/jquery.js:3368 […]

Categories
CMS Magento Mastering Development

How to Edit Layout Update Xml for CMS Page in Magento 2?

I just migrated from Magento 1.9.3.4 to Magento 2.3.4, I noticed some of the page content is missing when I accessed the page that was created from cms page. Then I look at the cms page edit page, in M1 I can update the Page layout XML like this: But in M2 I can’t find […]

Categories
CMS Magento Mastering Development

Data Migration – EAV Step error – SQL syntax error

Magento v 2.3.5-p1; data Migration Tool v2.3.5 I created a custom module for setting up the config.xml for migration. The migration for settings went ok. At the data migration I encountered the following error: Does anyone have any idea how to fix or what to check in order for the migration to be ok? The […]