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

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -