示例#1
0
 public function testGetProductUrlSuffix()
 {
     $this->assertEquals('.html', $this->_helper->getProductUrlSuffix());
 }
示例#2
0
 /**
  * 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);
 }
示例#3
0
文件: Url.php 项目: aiesh/magento2
 /**
  * Retrieve product rewrite sufix for store
  *
  * @param int $storeId
  * @return string
  */
 public function getProductUrlSuffix($storeId)
 {
     return $this->_catalogProduct->getProductUrlSuffix($storeId);
 }