0

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

Product Listing with unique code

1
  • which patter of format you are using to assign the unique-code to product based on categor? May 8, 2018 at 12:15

1 Answer 1

0
  • 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.

Use Link:- https://www.templatemonster.com/help/magento-how-to-create-an-attribute-and-apply-it-to-products.html

  • Then Adding Attribute assign in Your all your Category Products.

  • Now Open Your app/design/package/theme/catalog/product/template/catalog/product/list.phtml

  • 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 :-)

7
  • Thanks for response, but as i mentioned that if Product is assigning to multiple category then code will be show different for each category.
    – ni3solanki
    May 8, 2018 at 12:42
  • But One Product has fixed values means one product assigns one values @ni3solanki
    – Divyesh
    May 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
    – ni3solanki
    May 8, 2018 at 13:02
  • This is not Possible @ni3solanki
    – Divyesh
    May 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.
    – ni3solanki
    May 8, 2018 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.