Questions tagged [product-id]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
54 views

How do I pass the product ID and attribute to Gallery.php block?

How do I get product ID and product attribute at magento/module-catalog/block/product/view/gallery.php? Please help, I need to do some image filtering by product custom attribute with the image ...
0
votes
2answers
93 views

Magento 2 how to get all categories of a product in controller

I am trying to get all categories with their levels of a product through it's ID in my controller which is overriding default magento controller. Can I get product's category path url through it's id ...
1
vote
0answers
41 views

How to get a selected simple product id from configurable option in category product listing in magento 2

How to get a selected simple product id from configurable option in category product listing in magento 2