Commit d2e30a02 by lmf

恢复joshine站URL生成规则

parent cfb76481
...@@ -113,10 +113,7 @@ class CategoryUrlPathGenerator ...@@ -113,10 +113,7 @@ class CategoryUrlPathGenerator
if ($storeId === null) { if ($storeId === null) {
$storeId = $category->getStoreId(); $storeId = $category->getStoreId();
} }
//return $this->getUrlPath($category) . $this->getCategoryUrlSuffix($storeId); return $this->getUrlPath($category) . $this->getCategoryUrlSuffix($storeId);
$name = $this->getUrlPath($category);
$names = explode("/",$name);
return "collections/".array_pop($names) . $this->getCategoryUrlSuffix($storeId);
} }
/** /**
......
...@@ -110,10 +110,7 @@ class ProductUrlPathGenerator ...@@ -110,10 +110,7 @@ class ProductUrlPathGenerator
*/ */
public function getUrlPathWithSuffix($product, $storeId, $category = null) public function getUrlPathWithSuffix($product, $storeId, $category = null)
{ {
//return $this->getUrlPath($product, $category) . $this->getProductUrlSuffix($storeId); return $this->getUrlPath($product, $category) . $this->getProductUrlSuffix($storeId);
$name = $this->getUrlPath($product, $category);
$names = explode("/",$name);
return "products/".array_pop($names) . $this->getProductUrlSuffix($storeId);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment