VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: fkang on February 25, 2018, 14:41:38 PM

Title: VM products module
Post by: fkang on February 25, 2018, 14:41:38 PM
HI,

I am trying to set the VM products module so it can show for instance last product from a specific  category.
I first selected the category from the settings, but the module is displaying last products from all categories, despite my selection.
Then I notice that the category filter was set to "no". So i set to "yes", but now the module is not displayed in the front end.

Any suggestions ?

Thanks

My technical info:
Title: Re: VM products module
Post by: Studio 42 on February 25, 2018, 14:50:10 PM
See https://shop.st42.fr/en/products/products-any-ways.htm, it certainly do what you want and have other filters.
Title: Re: VM products module
Post by: fkang on February 25, 2018, 16:36:10 PM
thx for the quick feedback.
But what does that mean ? The VM modules are buggy ?
Title: Re: VM products module
Post by: jenkinhill on February 25, 2018, 17:07:29 PM
Check your publishing settings. The category filter works OK in all my sites when used.  Maybe also try featured products in case you have no valid products to show.
Title: Re: VM products module
Post by: Studio 42 on February 25, 2018, 22:52:23 PM
@fkang : Virtuemart show only last from a certain date(if i remember right). My module have no limit on date for last products, the core module is not bugged but have some limitations.
Title: Re: VM products module
Post by: jenkinhill on February 26, 2018, 11:15:00 AM
There is a "Latest Products - Number of days to display" setting in VM Configuration/Shopfront. I don't know if that affects the module's display.
Title: Re: VM products module
Post by: fkang on February 26, 2018, 21:06:18 PM
so you are saying that the output doesn't select a specific VM category to show items from ?
Because that is actually my concern. I select a specific category and want to display items from only that category.

I just tested another VM instance locally. Every time I set the category filter to "yes", the module is just not displayed on the frontend
Title: Re: VM products module
Post by: jenkinhill on February 27, 2018, 00:08:10 AM
The module should display products just from whatever category is selected in the module configuration.  Works OK for me.
Title: Re: VM products module
Post by: fkang on February 28, 2018, 22:44:08 PM
turns out it works, but not when I have subcategories below the selected one...
Title: Re: VM products module
Post by: fkang on March 04, 2018, 16:23:57 PM
@Studio 42
Quote from: Studio 42 on February 25, 2018, 22:52:23 PM
@fkang : Virtuemart show only last from a certain date(if i remember right). My module have no limit on date for last products, the core module is not bugged but have some limitations.

Does your module allows to get items from subcategories too ?
I find out that the problem was because I had subcategories. The VM product module do not show subcategories items
Title: Re: VM products module
Post by: jenkinhill on March 04, 2018, 17:03:57 PM
The category filter works fine for me in the default VirtueMart product module, presence of subcategories makes no difference, it always shows a product within the selected category if there is one with the correct criteria, eg featured or recently added. I am using the latest VM3.2.13.9772
Title: Re: VM products module
Post by: Studio 42 on March 04, 2018, 17:25:28 PM
YOu can select all categories you need, see screenshot
Title: Re: VM products module
Post by: fkang on March 04, 2018, 22:48:28 PM
Quote from: jenkinhill on March 04, 2018, 17:03:57 PM
The category filter works fine for me in the default VirtueMart product module, presence of subcategories makes no difference, it always shows a product within the selected category if there is one with the correct criteria, eg featured or recently added. I am using the latest VM3.2.13.9772

Well, I have the treeview below :
Books -> Novel
Books -> Comics

Both categories (Novel and Comics) have 2 items

In the settings, when I select the category "Novel", I have the 2 items in the frontend. The same when I select the category "Comics"
But when I select the category "Books", the frontend shows nothing... I was expecting to see 4 items (from "Novel" and "Comics") in the frontend.

Btw way, the version you are using, is an RC. Right ?
Title: Re: VM products module
Post by: Studio 42 on March 04, 2018, 23:07:46 PM
No, Virtuemart product module display product from 1 category, my can display any.
Title: Re: VM products module
Post by: jenkinhill on March 05, 2018, 10:29:51 AM
This is the VM version I use:  http://forum.virtuemart.net/index.php?topic=139652.0

The VM module does not display products in subcategories of the chosen category. Studio's module can have eg Books + Novels + Comics selected to show your 4 products.