Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

0 votes

How to filter duplicate values in magento array?

array_unique function only works with one-dimensional arrays. Since you have a multidimensional array, you'll need to iterate over the array and create a new array with the unique values. $...
Jigar Karangiya's user avatar
0 votes

Magento2 How to Display Product Custom Attribute Value In List Page

ATTENTION do not use $product->getData(...) The right way to get a custom attribute value is to run getCustomAttribute('attributecode') then getValue() on it. Check the following code: if ($product-...
Gustavo Ulyssea's user avatar
0 votes

Magento 2 : How can I show this custom code in product view page?

To achieve this, Add your desired option to the size attribute. Fetch these option values and create HTML with the input field along with each option that accepts the integer values. (please find ...
Magento TridhyaTech's user avatar

Top 50 recent answers are included