razman Posted April 21, 2017 Share Posted April 21, 2017 (edited) Hello! I have some problems with getModuleLink() in smarty template. {assign var=params value=[ 'module_action' => 'list', 'product_rewrite' => $product->link_rewrite, 'id_product' => $smarty.get.id_product, 'current_page' => 1 ]} <a href="{$link->getModuleLink('mancomments', 'comments', $params)}">{l s='comment' mod='mancomments'}</a> I have this code in smarty and It works. But it doesn't give me the link which I need. So, I have this link www.myshop.com/en/module/mancomments/comments?module_action=list&product_rewrite=blouse&id_product=2¤t_page=1 and I need this link www.myshop.com/en/product-comments/list/blouse/2/page/1 The second link work too but I need getModuleLink to return the second link. Thanks Edited April 21, 2017 by razman (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now