VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Mister Paul on December 18, 2018, 15:02:17 PM

Title: Products missing from the Product Details Layout Menu list
Post by: Mister Paul on December 18, 2018, 15:02:17 PM
Hi,

I am trying to create an Joomla menu element linked to a Virtuemart product.

So I created a Joomla Menu item and in "Menu Item Type" I have selected "Virtuemart : Product Details Layout"
But then, I can't find my product in the "Select a Product" list...
:o

What could be the reason?
How could I make it appear ?...

Thanks for your help
Paul
Title: Re: Product missing from the Product Details Layout Menu list
Post by: Jörgen on December 18, 2018, 15:18:57 PM
Is the product published ?

Jörgen @ Kreativ Fotografi
Title: Re: Product missing from the Product Details Layout Menu list
Post by: Mister Paul on December 18, 2018, 15:31:37 PM
Yes Jörgen,
the Father and its 2 Children are published
Title: Re: Product missing from the Product Details Layout Menu list
Post by: GJC Web Design on December 18, 2018, 15:42:47 PM
is it in a category? or if not the show uncategorised prods checked?
Title: Re: Product missing from the Product Details Layout Menu list
Post by: Mister Paul on December 18, 2018, 16:11:37 PM
Yes GJC,
also a good idea. Thank you.

They are categorized (Father + Children) and the category is published.
In case of, I tried to check "Show uncategorised parent products in search results and modules" and "Show uncategorised child products in search results and modules".

Still not working...
Title: Re: Product missing from the Product Details Layout Menu list
Post by: GJC Web Design on December 18, 2018, 16:20:41 PM
he he .. running out of ideas ..  have never had trouble with this

has a price? stock?

shows up if u manually link it by

index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=67&virtuemart_category_id=5  ?
Title: Re: Product missing from the Product Details Layout Menu list
Post by: Mister Paul on December 18, 2018, 16:24:55 PM
Yes Price and Stock...
:-[
Title: Re: Products missing from the Product Details Layout Menu list
Post by: Mister Paul on December 18, 2018, 17:03:26 PM
Well... strange thing:
- in the "Select a Product" scroll down menu code I found 701 "<option value". So 701 VM products listed.
- in my VM backend I have ± 950 products published, and with a valid price.

So ± 250 products seem to be missing...
I didn't checked stock there, but no need:

I tried to find a missing product in the list. And rapidly got one. But this product is published, and is available to be bought normally on frontend site...
It is published, has category (distinct from the product of my first post), price and stock.

What could be the problem?...
Title: Re: Products missing from the Product Details Layout Menu list
Post by: Mister Paul on December 18, 2018, 23:10:58 PM
Well sorry for these naïve questions but I am still seeking:
- is there a way to manage (= filter) the products from the the "Select a Product" list?
- as I am migrating from an old 1.5 Joomla site with VirtueMart 1.1.4, could it be the reason of my problem?
But le product I wanted to show in the initial post was a newly created one (from Joomla 3 and VirtueMart 3.4.0)
Title: Re: Products missing from the Product Details Layout Menu list
Post by: GJC Web Design on December 19, 2018, 09:34:31 AM
Perhaps some sort of JSON limit thing?
In the short term u could just make the link manually as above
Title: Re: Products missing from the Product Details Layout Menu list
Post by: Milbo on December 19, 2018, 09:46:10 AM
The problem is the hardcoded limit of 700 products. Usually only shops with less than 10 products use that (imho)
Title: Re: Products missing from the Product Details Layout Menu list
Post by: Mister Paul on December 19, 2018, 15:18:02 PM
Thanks for clarification.

I need that menu link for some special products (I don't understand why creating a hard coded limitation)
As the link text field is not writable, the only way I see now to solve the problem is to modify the database...
Or expand the 700 limit. But where?
Title: Re: Products missing from the Product Details Layout Menu list
Post by: GJC Web Design on December 19, 2018, 15:58:31 PM
I assume because to return a huge JSON call of +700 prods is a big ask..

Why not just make a std Joomla url menu like index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=67&virtuemart_category_id=5

this is all the dialog is doing
Title: Re: Products missing from the Product Details Layout Menu list
Post by: Mister Paul on December 20, 2018, 10:45:14 AM
Yes sure that's a better solution.
Thank you!
;)