I want to customize product listing page with unqiue code (label) same like shown in below picture. add filter by that code of product. Note : if Product is assigning to multiple category then code will be different for both category. How can we implement this? Thanks in Advance
- Make one Text type Attribute of Catalog_Product Using Catalog Adding Attribute or you can use script ,Make sure your Attribute is Filterable With Layred Navigation.
Then Adding Attribute assign in Your all your Category Products.
Now Open Your
And Show Your Custom Attribute Value in This File:- (Make Sure you check your layout condition of Grid View And List View)
And Show Your Attribute in like:-
<?php echo $_product->getAttributeName(); ?>
Thanks, Hope This Will Work :-)
Thanks for response, but as i mentioned that if Product is assigning to multiple category then code will be show different for each category. May 8, 2018 at 12:42
But One Product has fixed values means one product assigns one values @ni3solanki– DivyeshMay 8, 2018 at 12:44
i want to show label (unique code) category wise. so for exam : if product is assigned to 2 category. then code need to show different for 1 category and different for 2th category. @divyesh May 8, 2018 at 13:02
This is not Possible @ni3solanki– DivyeshMay 8, 2018 at 13:04
ibb.co/jp5RUS please check this image.can you tell me how to get entity id from that table. you can see product id = 9 assigned to three category. i can use entity id as label code. May 8, 2018 at 13:06