php - How to get the current url in a OpenCart .tpl file? -
i'd current url in .tpl file in opencart.
i've seen answer works in php file.
i have way:
_my_array.push(['_productname',"<?php echo $heading_title; ?>"]); **_my_array.push(['_producturl', ["how can url ?"]]);**
thanks
to full url
<?php $url = "http://$_server[http_host]$_server[request_uri]"; ?>
and btw answers work on tpl files because tpl files sort of php files only
Comments
Post a Comment