Hi, this is the scenario.
- 1 parent product, named "parent product"
- 3 childs products, named "child 1", "child 2" and "child 3".
all childs products with image, parent product no image.
I modify my override template,
my-template/html/com_virtuemart/productdetails/default.phpTo get the child product list, and build my custom HTML with child product image, add this code:
$model = new VirtueMartModelProduct();
$test = $model->getProductChildIds($this->product->product_parent_id);
$test2 = $model->getProducts($test);
var_dump($test2);
I load product detail page, to a "child 1", and in var_dump I can see only file_url and file_url_thumb in "child 1" data, in "child 2" doen's appear.
If I load product detail page, "child 2", in var_dump, only appears file_url and file_url_thumb in "child 2" data.
If I load product detail page, "child 3", in var_dump, only appears file_url and file_url_thumb in "child 3" data.
I tried others functions like this, but not solve the problem:
$model = new VirtueMartModelProduct();
$test = $model->getProductChildIds($this->product->product_parent_id);
foreach($test as $testproduct){
$test2 = $model->getProduct($testproduct, false);
var_dump($test2);
}
is a bug? any idea to solve it?
Enviroment
Joomla 2.5.15
Virtuemart 2.0.24c