Commit 565acc9b by lmf

改造产品链接地址

parent f53fb08b
......@@ -113,7 +113,10 @@ class CategoryUrlPathGenerator
if ($storeId === null) {
$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,7 +110,10 @@ class ProductUrlPathGenerator
*/
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);
}
/**
......
......@@ -224,7 +224,10 @@
display: block;
}
.product-addto-links{
display: none;
display: block;
float: right;
margin-left: 92%;
margin-top: -18%;
}
.lis{
display: block !important;
......
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