// Add {categories} keyword in product_rule dispatch rule #PSFV-321
This commit is contained in:
1 parent
788089b72c
commit
b093216526
3 files changed
+37
-3
No files matched your search
@@ -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