php - Joomla Virtuemart search -
i trying edit joomla search. public_html/templates/template/html/com_search/
when search founds product, want set same view in category view.
and trying understand this->tutorial: https://docs.virtuemart.net/tutorials/templating-layouts/199-sublayouts.html
code exaple turorial:
echo shopfunctionsf::rendervmsublayout('prices',array('product'=>$this->product,'currency'=>$this->currency));
if want same layout price have pass 2 variables function rendervmsublayout in class shopfunctionsf:
$this->product
$this->currency
all variables product/currency/title/addtocart on /components/com_virtuemart/sublayouts/products.php set $viewdata.
i trying find how vm constructs variable $viewdata without luck. maybe virtuemart expert can guide how can construct same var $viewdata if got array of products ids.
wiki
Comments
Post a Comment