VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: ahsan.abbasi on February 18, 2016, 14:54:21 PM

Title: Show Child Products
Post by: ahsan.abbasi on February 18, 2016, 14:54:21 PM
Hi,
I am using joomla 3.4 and vm 3.0.
I setup a store and added products,every thing is working fine.
Now i want enhancement in vm like show child products on product detail page.
For example user clicked on shirt,on detail page we have image price,description and addition information of parent product.
I want to show a child product some where on detail page which has image of child product and price and a check box on it.
If user click on check box this child product is in include in cart with parent product.
Now the problem is that i am not able to show the child product on detail page.
Any help will be appreciated.

Regards
Title: Re: Show Child Products
Post by: Milbo on February 19, 2016, 09:27:36 AM
When you mean something like that
https://hawis.ch/de/wg/t-shirts/jn004-james-nicholson-white-ladies-v-t-00449-detail.html

That is part of the membership version and "free" available. http://extensions.virtuemart.net/support/virtuemart-supporter-membership-detail
Title: Re: Show Child Products
Post by: ahsan.abbasi on February 22, 2016, 07:22:48 AM
Hi,
Thanks for Reply.
The link you provided is not working due to some reason.
I am attach an image which will make easy to understand my question above.
Can i have to purchase some sort of membership for this?
Thanks
Title: Re: Show Child Products
Post by: Milbo on February 22, 2016, 11:31:17 AM
it is working that way. Just open the shop again. It takes the first time some seconds.
Title: Re: Show Child Products
Post by: Ghost on February 22, 2016, 12:27:11 PM
Hawis.ch isn't loading for me either, getting infinite redirect loop.

Here's one way to display child products on product details page:

$productModel = VmModel::getModel('product');
$ids = $productModel->getProductChildIds($this->product->virtuemart_product_id);
$ids = array_slice($ids,0,3);
$prods = $productModel->getProducts($ids);
$productModel->addImages($prods);
$products = array();
$products[0] = $prods;
echo shopFunctionsF::renderVmSubLayout('products',array('products'=>$products,'currency'=>$this->currency,'products_per_row'=> 3,'showRating'=> false));


This will show them the way products are shown in categories. You can create a new sublayout and customize it.
Title: Re: Show Child Products
Post by: Milbo on February 22, 2016, 19:22:06 PM
Hmmm works for me, here in germany, where do you come from?
Title: Re: Show Child Products
Post by: Ghost on February 22, 2016, 20:42:27 PM
Various web status tools report it's down. PageSpeed says this:

QuoteFetching the page exceeded the maximum of 10 redirects. The last URL fetched was https://hawis.ch/. This may indicate the page is redirecting to itself, or has a loop of redirects.
Title: Re: Show Child Products
Post by: wanderschaft on February 26, 2016, 06:43:26 AM
The Site was made by my and my partners. Due to wishes of my client, the site is only for German and Swiss Visitors at this time. He is a big wholesale for promotion articles, but only interessted in local clients. This is why you have this behavior at the moment. You can contact me or maybe Max via mail if you need access to the front end to be inspired. markus.
Title: Re: Show Child Products
Post by: Jörgen on February 26, 2016, 09:14:44 AM
Hello

The page works for me from Sweden, even though it loads very slowly.
https://hawis.ch/de/wg/t-shirts/jn004-james-nicholson-white-ladies-v-t-00449-detail.html (https://hawis.ch/de/wg/t-shirts/jn004-james-nicholson-white-ladies-v-t-00449-detail.html)

regards

Jörgen @ Kreativ Fotografi
Title: Re: Show Child Products
Post by: wanderschaft on February 26, 2016, 10:53:24 AM
yes, that is possible, depending on your IP. as I mentioned: The web site is at the moment restricted.
Title: Re: Show Child Products
Post by: ahsan.abbasi on March 02, 2016, 12:16:04 PM
Thanks for reply.
Child products are now showing.
Now i have another question to ask.
Custom Field Group:
I have two custom fields,custom1 and custom2.
I want to display custom1 lets say under the product Title and custom2 under description of the product.
In simple i want two different custom fields in two different locations on the page.
I already try to customized but all custom fields are showing under product Title.

Thanks
Title: Re: Show Child Products
Post by: Ghost on March 02, 2016, 12:17:04 PM
Add custom field position.
Title: Re: Show Child Products
Post by: ahsan.abbasi on March 02, 2016, 13:02:58 PM
Thanks
Now i am able to add custom field to any where on the page by

Can we have the functionality of uploading the image with custom fields from front end.
For example i have shirt shop,i want to add a functionality that user will be able to upload a specific dimension image/logo when he is buying from shop.
We will than print this logo/image on his shirt before delivering the product to the user.

Thanks
Title: Re: Show Child Products
Post by: Milbo on March 04, 2016, 14:45:49 PM
http://extensions.virtuemart.net/products/order-upload-plugin-detail