New answers tagged

1 vote
Accepted

Get customer custom attribute value without loading the customer

You can retrieve customer custom attributes from the customer session; there's no need to load the customer every time in Magento. Please check the code below. protected $sessionFactory; public ...
Msquare's user avatar
  • 8,360
0 votes

Fetch products on category page according to product`s custom attribute in magento 2.4.6

Magento 2.4.6 I created a custom attribute from the admin panel with the attribute name 'show_category.' The attribute settings are given below. Once you've created the attribute and configured the ...
Msquare's user avatar
  • 8,360

Top 50 recent answers are included