Skip to main content
replaced http://magento.stackexchange.com/ with https://magento.stackexchange.com/
Source Link

I have a multi-language store and try to choose the best URL key for categories. Also note that it can be set only for all store views, for a multi-language store it is a problematic point because the URL key for categories is a global value.

Also I try to add the main key word in the URL path because the store sells just one type of products - paintings. I can use this key word in the URL key in all store languages, but maybe it is not such a good deal - for example painting-painture. Or should I add the key word in the end of the URL key for each product? Another solution is to keep it language independent and don't use at all the main key word in the path but just the artist name instead. What do you think about?

Edit: Take a look to this questionthis question for an alternative method.

I have a multi-language store and try to choose the best URL key for categories. Also note that it can be set only for all store views, for a multi-language store it is a problematic point because the URL key for categories is a global value.

Also I try to add the main key word in the URL path because the store sells just one type of products - paintings. I can use this key word in the URL key in all store languages, but maybe it is not such a good deal - for example painting-painture. Or should I add the key word in the end of the URL key for each product? Another solution is to keep it language independent and don't use at all the main key word in the path but just the artist name instead. What do you think about?

Edit: Take a look to this question for an alternative method.

I have a multi-language store and try to choose the best URL key for categories. Also note that it can be set only for all store views, for a multi-language store it is a problematic point because the URL key for categories is a global value.

Also I try to add the main key word in the URL path because the store sells just one type of products - paintings. I can use this key word in the URL key in all store languages, but maybe it is not such a good deal - for example painting-painture. Or should I add the key word in the end of the URL key for each product? Another solution is to keep it language independent and don't use at all the main key word in the path but just the artist name instead. What do you think about?

Edit: Take a look to this question for an alternative method.

Tweeted twitter.com/#!/StackMagento/status/442656746142961664
deleted 699 characters in body
Source Link
capola
  • 123
  • 1
  • 9

I have a multi-language store and try to choose the best URL key for categories. Also note that it can be set only for all store views, for a multi-language store it is a problematic point because the URL key for categories is a global value.

Also I try to add the main key word in the URL path because the store sells just one type of products - paintings. I can use this key word in the URL key in all store languages, but maybe it is not such a good deal - for example painting-painture. Or should I add the key word in the end of the URL key for each product? Another solution is to keep it language independent and don't use at all the main key word in the path but just the artist name instead. What do you think about?

Edit: Maybe I found another interesting solution. Here you can read about a method for addingTake a Prefix to Product URL’s in Magento. My question is can I modify somehow the codelook to add a condition for using a specific Prefixthis question for each store view?an alternative method.

< if ($category->getLevel() > 1) {
        // To ensure, that category has path either from attribute or generated now
        $this->_addCategoryUrlPath($category);
        $categoryUrl = Mage::helper('catalog/category')->getCategoryUrlPath($category->getUrlPath(),
            false, $storeId);
        $requestPath = 'product-p/' .$categoryUrl . '/' . $urlKey;;
    } else {
        $requestPath = 'product-p/' .$urlKey;
    }
}

I have a multi-language store and try to choose the best URL key for categories. Also note that it can be set only for all store views, for a multi-language store it is a problematic point because the URL key for categories is a global value.

Also I try to add the main key word in the URL path because the store sells just one type of products - paintings. I can use this key word in the URL key in all store languages, but maybe it is not such a good deal - for example painting-painture. Or should I add the key word in the end of the URL key for each product? Another solution is to keep it language independent and don't use at all the main key word in the path but just the artist name instead. What do you think about?

Edit: Maybe I found another interesting solution. Here you can read about a method for adding a Prefix to Product URL’s in Magento. My question is can I modify somehow the code to add a condition for using a specific Prefix for each store view?

< if ($category->getLevel() > 1) {
        // To ensure, that category has path either from attribute or generated now
        $this->_addCategoryUrlPath($category);
        $categoryUrl = Mage::helper('catalog/category')->getCategoryUrlPath($category->getUrlPath(),
            false, $storeId);
        $requestPath = 'product-p/' .$categoryUrl . '/' . $urlKey;;
    } else {
        $requestPath = 'product-p/' .$urlKey;
    }
}

I have a multi-language store and try to choose the best URL key for categories. Also note that it can be set only for all store views, for a multi-language store it is a problematic point because the URL key for categories is a global value.

Also I try to add the main key word in the URL path because the store sells just one type of products - paintings. I can use this key word in the URL key in all store languages, but maybe it is not such a good deal - for example painting-painture. Or should I add the key word in the end of the URL key for each product? Another solution is to keep it language independent and don't use at all the main key word in the path but just the artist name instead. What do you think about?

Edit: Take a look to this question for an alternative method.

deleted 12 characters in body
Source Link
capola
  • 123
  • 1
  • 9

I have a multi-language store and try to choose the best URL key for categories. Also note that it can be set only for all store views, for a multi-language store it is a problematic point because the URL key for categories is a global value.

Also I try to add the main key word in the URL path because the store sells just one type of products - paintings. I can use this key word in the URL key in all store languages, but maybe it is not such a good deal - for example painting-painture. Or should I add the key word in the end of the URL key for each product? Another solution is to keep it language independent and don't use at all the main key word in the path but just the artist name instead. What do you think about?

Added after editEdit: Maybe I found another interesting solution. Here you can read aboudabout a method for adding a Prefix to Product URL’s in Magento. My question is can I modify somehow the code to add a condition for using a specific Prefix for each store view?

< if ($category->getLevel() > 1) {
        // To ensure, that category has path either from attribute or generated now
        $this->_addCategoryUrlPath($category);
        $categoryUrl = Mage::helper('catalog/category')->getCategoryUrlPath($category->getUrlPath(),
            false, $storeId);
        $requestPath = 'product-p/' .$categoryUrl . '/' . $urlKey;;
    } else {
        $requestPath = 'product-p/' .$urlKey;
    }
}

I have a multi-language store and try to choose the best URL key for categories. Also note that it can be set only for all store views, for a multi-language store it is a problematic point because the URL key for categories is a global value.

Also I try to add the main key word in the URL path because the store sells just one type of products - paintings. I can use this key word in the URL key in all store languages, but maybe it is not such a good deal - for example painting-painture. Or should I add the key word in the end of the URL key for each product? Another solution is to keep it language independent and don't use at all the main key word in the path but just the artist name instead. What do you think about?

Added after edit: Maybe I found another interesting solution. Here you can read aboud a method for adding a Prefix to Product URL’s in Magento. My question is can I modify somehow the code to add a condition for using a specific Prefix for each store view?

< if ($category->getLevel() > 1) {
        // To ensure, that category has path either from attribute or generated now
        $this->_addCategoryUrlPath($category);
        $categoryUrl = Mage::helper('catalog/category')->getCategoryUrlPath($category->getUrlPath(),
            false, $storeId);
        $requestPath = 'product-p/' .$categoryUrl . '/' . $urlKey;;
    } else {
        $requestPath = 'product-p/' .$urlKey;
    }
}

I have a multi-language store and try to choose the best URL key for categories. Also note that it can be set only for all store views, for a multi-language store it is a problematic point because the URL key for categories is a global value.

Also I try to add the main key word in the URL path because the store sells just one type of products - paintings. I can use this key word in the URL key in all store languages, but maybe it is not such a good deal - for example painting-painture. Or should I add the key word in the end of the URL key for each product? Another solution is to keep it language independent and don't use at all the main key word in the path but just the artist name instead. What do you think about?

Edit: Maybe I found another interesting solution. Here you can read about a method for adding a Prefix to Product URL’s in Magento. My question is can I modify somehow the code to add a condition for using a specific Prefix for each store view?

< if ($category->getLevel() > 1) {
        // To ensure, that category has path either from attribute or generated now
        $this->_addCategoryUrlPath($category);
        $categoryUrl = Mage::helper('catalog/category')->getCategoryUrlPath($category->getUrlPath(),
            false, $storeId);
        $requestPath = 'product-p/' .$categoryUrl . '/' . $urlKey;;
    } else {
        $requestPath = 'product-p/' .$urlKey;
    }
}
added 840 characters in body; edited tags
Source Link
capola
  • 123
  • 1
  • 9
Loading
Source Link
capola
  • 123
  • 1
  • 9
Loading