You are customizing the display of product details page. On this page ur customer need to change the url in which the product category name will be appear as http://mystore.com/women/tops-women/helena-hooded-fleece.html, Keeping ,maintainability in mind, How to get product url with category?

Posted by: Pdfprep Category: AD0-E703 Tags: , ,

You are customizing the display of product details page. On this page ur customer need to change the url in which the product category name will be appear as http://mystore.com/women/tops-women/helena-hooded-fleece.html, Keeping ,maintainability in mind, How to get product url with category?
A . Admin -> Stores -> Configuration -> Catalog -> Catalog -> Search Engine Optimization – > "Use Categories Path for Product URLs" set to "Yes"
B . It is not possible to display Categories name on product url
C . $product->setCategoryId($categoryId)->getProductUrl();
D . You Can Build category URL path vendormagentomodule-catalog-url-rewriteModelCategoryUrlPathGenerator.php

Answer: A

Leave a Reply

Your email address will not be published.