public function testGetProductUrlSuffix() { $this->assertEquals('.html', $this->_helper->getProductUrlSuffix()); }
/** * Get product url key path with category * * @param Product $product * @param Category $category * @param int $storeId * @return string */ public function getProductUrlKeyPathWithCategory(Product $product, Category $category, $storeId) { return $product->getUrlModel()->getUrlPath($product, $category) . $this->productHelper->getProductUrlSuffix($storeId); }
/** * Retrieve product rewrite sufix for store * * @param int $storeId * @return string */ public function getProductUrlSuffix($storeId) { return $this->_catalogProduct->getProductUrlSuffix($storeId); }