VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: AzMandius on August 24, 2017, 21:55:17 PM

Title: Hide child products from category view and modules but display in search results
Post by: AzMandius on August 24, 2017, 21:55:17 PM
Hello,
VirtueMart 3.0.2 and Joomla! 3.3.6 (ToolStore template) here.

I am using child products feature to offer products variants with different prices:
ATTACHMENT 1

And of course i need those child products displayed in search results, so i have enabled the "Show uncategorised child products in search results and modules" option, and it works.

But, unfortunately those child products are displayed in shop front, shop category view, Popular products module, Recommended products module, Latest products module, etc. view as well:
ATTACHMENT 2
ATTACHMENT 3

I know it is possible to hide those child products from category view and modules via some code modification, and hope someone could guide me.

Thanks a lot.
Title: Re: Hide child products from category view and modules but display in search results
Post by: Milbo on August 25, 2017, 09:47:08 AM
The childs have categories?
Title: Re: Hide child products from category view and modules but display in search results
Post by: AzMandius on August 25, 2017, 14:41:51 PM
Nope, that's the point, i thought if they don't have categories hey should not be displayed :)
Title: Re: Hide child products from category view and modules but display in search results
Post by: jenkinhill on August 25, 2017, 15:37:06 PM
Quote from: AzMandius on August 24, 2017, 21:55:17 PM
VirtueMart 3.0.2 and Joomla! 3.3.6 (ToolStore template) here.

Those versions are very old and known to be insecure.  (VM3.0.2 is nearly 3 years old). See http://forum.virtuemart.net/index.php?topic=118683.0

Almost certainly your template will need updating, too.
Title: Re: Hide child products from category view and modules but display in search results
Post by: AzMandius on August 25, 2017, 15:46:42 PM
I was like "wow! a reply! cool! now i will probably solve my issue, let me quickly read the reply..." why is it so complicated to ask for help on a board without getting obvious suggestions about updates, i mean i am fully aware of outdated software, and as soon as i will finish my list of tasks i will proceed with updates, but thanks for pointing that out.
Title: Re: Hide child products from category view and modules but display in search results
Post by: jenkinhill on August 25, 2017, 16:02:15 PM
You may find that your issue is fixed as part of the update..............   
Title: Re: Hide child products from category view and modules but display in search results
Post by: davi7852@yahoo.com on July 25, 2019, 00:33:51 AM
AZ Mandius: Did you ever get a reply to this topic?  I'm trying to figure out the same thing, Joomla 3.9.10 VM 3.4.2
Title: Re: Hide child products from category view and modules but display in search results
Post by: AzMandius on July 25, 2019, 10:39:06 AM
Unfortunately not, i could not force child product disappear from these modules. Kinda just live with it. You might try kindly ask the support of your template about this, as on this VM forum you won't get much help as you see :)
Title: Re: Hide child products from category view and modules but display in search results
Post by: kaiserdom on August 14, 2019, 17:08:41 PM
I've attached a pdf guide which contains all the steps in order to accomplish that.

Have a nice day
Title: Re: Hide child products from category view and modules but display in search results
Post by: AzMandius on August 14, 2019, 23:19:44 PM
Very kind of you to make that guide! Thanks!
Title: Re: Hide child products from category view and modules but display in search results
Post by: kaiserdom on August 15, 2019, 13:40:46 PM
Thank you. I don't know if it works for you, but for me it gets the job done. I hope that eventually VM Developers will listen to so many webshop designers asking for a clean solution.