Its been a while since I wrote here. Been busy with other projects and the development of the site was set on pause but now I am on it again - and of course I am relying on your support and kind feedback
I got a theme that I really like. But it doesnât come with the feature to display the BRAND together with the PRODUCT in the product listing. Like this:
That video wonât do you any good at all because the infrastructure between Magento 1 and 2 are totally different. Also, bare in mind that Magento Category Pages have a List View and a Grid View. Therefore, view.phtml refers to List View.
Huge Disclaimer
I wouldnât normally try and teach anyone how to do any Frontend/Backend Development as these topics are currently out of scope for what we do here. But what youâre asking for is pretty simple if youâve got the basic grasp of how Magento âworksâ.
Iâm not a developer so my knowledge of things more advanced than this task is limited. For what youâre asking there is a right and a wrong way to pull attribute data - Iâm not sure I know the âbest-practiceâ way but it will get the job done.
Things you should know (or read about) before starting
A basic grasp of HTML/PHP/CSS (I will never attempt to teach these skills on this website)
The changes you make will need to be made inside the child theme (assuming youâre using one already). Otherwise, your changes will eventually be overwritten from a future update. This is standard practice for any setup.
Step 1: Create an override file in your child theme
First create a copy of the list.phtml file from your Theme. Youâll probably find this here:
<VENDER> refers to your Theme Vendor (e.g. Magento) <THEME> refers to your Theme Name (e.g. luma) <THEME_CHILD> refers to your Child Theme Name (e.g. luma_child)
You will then want to âoverrideâ this file by putting a copy of it in your Child Theme. Obviously, youâll need to create the directories that donât already exist: