// Add {categories} keyword in product_rule dispatch rule #PSFV-321
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12017 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -116,6 +116,14 @@ class LinkCore
|
||||
if ($dispatcher->hasKeyword('product_rule', 'tags'))
|
||||
$params['tags'] = Tools::str2url($product->getTags($id_lang));
|
||||
|
||||
if ($dispatcher->hasKeyword('product_rule', 'categories'))
|
||||
{
|
||||
$cats = array();
|
||||
foreach ($product->getParentCategories() as $cat)
|
||||
$cats[] = $cat['link_rewrite'];
|
||||
$params['categories'] = implode('/', $cats);
|
||||
}
|
||||
|
||||
if ($ipa)
|
||||
$anchor = $product->getAnchor($ipa);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user