I’m trying to access logged in customer data in an “after” plugin. The plugin is working, but I need some logic based on a custom customer attribute. I try to do this but I get an error Fatal error: Uncaught Error: Call to a member function get() on null in […]
Magento1
I created a customer attribute called “new_customer” with a value of 1 YES. Once an order is successfully placed by the customer, I want update the customer’s custom_attribute “new_customer” to 0(NO) { "id": 28, "group_id": 1, "created_at": "2021-07-21 18:39:00", "updated_at": "2021-07-21 19:16:44", "created_in": "Default Store View", "email": "jane@gmail.com", "firstname": "NewMitchell2", […]
I’m trying to do some simple modify to my theme, but I can’t understand why there are 2 differente default.xml, one under vendormagentomodule-themeviewfrontendlayout and the other under vendormagentotheme-frontend-lumaMagento_Themelayout If I add my default.xml under appdesignfrontendvendorthemeMagento_Themelayout and the header.links block disappear. This is my last try after dozen of it <?xml […]
I have a rather strange issue on Magento 2 (2.3.3) where product images are not loading. Grid and List view show an error 500 for (some) product images, which seem to have additional slugs versus what most Google search results show for a Magento 2 install. Some main product images […]
I am able to set and get config data in a field under General table with the test code. The Magento backend displays the field as the screenshot below shows. The issue is this field is blank, but supposed to display the value from the table. Please help me find […]
I want to add a cc to all sales emails based on a custom customer condition. My plugin isn’t currently adding a cc to the email at all. I have a Magento plugin with an /etc/adminhtml/di.xml with the following code <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="MagentoFrameworkMailTemplateTransportBuilder"> <plugin name="<name>_<name>_send_order_copy" type="<name><name>PluginsSendOrderCopy" […]
Is it possible to switch our store back to single store mode? Is this possible now? It says, “This setting will not be taken into account if system has more than one store view.” We have two stores on Magento2.3.5. However, we are wanting to remove one of these stores […]
First of all I’m new to Magento, so I may be missing something. I have some categories, as example: -> Clothes and Accessories But on the website it’s displaying as Clothes And Accessories, with a capitalized A, which I don’t understand why. I checked the Magento admin and it’s registered […]