VirtueMart 1.1.x [ Old version - no longer supported ] > Frontend Modules VM 1.1

[SOLVED]Want to have enter more than 1 category ID

(1/1)

oceanb702:
Hi,

I installed the Latest product module. Under the parameter, there's a textbox for category ID. Can i actually enter more than one ID number?

If not, is there a way to enter a main category ID where by all the sub category product will show too.

oceanb702:
anyone please?

oceanb702:
problem solved.


Quote
find the line:

Code:
$q .= "AND #__{vm}_category.category_id='$category_id'";
and replace with


Code:
$category_id_mod = "'".str_replace(",","','", $category_id)."'";
$q .= "AND #__{vm}_category.category_id IN ($category_id_mod)";


In the Latest Product Module, be sure to separate your category IDs with commas for example:
Code: 1,2

lipes:
some solution to virtuemart 2 but with the random product option?

Navigation

[0] Message Index

Go to full version