Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Fancy Product Slider (SKU# FLEX-00004)

TOPIC: It displays stockable child products!

It displays stockable child products! 10 years 11 months ago #5229

I have this slider setup on www.surplus.se/ but it display all the "stockable" child procucts ... like sizes S, M, L and such.

So I get products which is just an L as productname?

Is there an hack (or perhaps and update) to not show these? Only show top level products?
Last Edit: 10 years 11 months ago by Claes Norin.
The administrator has disabled public write access.

It displays stockable child products! 10 years 11 months ago #5252

Hmmm

Our module uses the bog standard VM product listing call

$productModel = VmModel::getModel('Product');

$products = $productModel->getProductListing($Product_group, $totalproducts, $show_price, true, false,$filter_category, $category_id);

this is in administrator/components/com_virtuemart/models/product.php line 1109

it has (surprisingly) no filtering of child products - you can see that in the code..

it passes it on to the function sortSearchListQuery function line 118 - again - no filtering of child products

so I guess this is what they intend...

I guess it either needs hacking there (cos this just returns a list of ids in a category) or add parents to a 2nd cat and target that with the slider or give the children full names..

Cheers
The administrator has disabled public write access.
Time to create page: 0.074 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo