Product Drop Down List for Virtuemart

It is loosely based upon Ken Wong's "Products in list form" and modified by ourselves to make it SEF friendly and by Max Guglielmino to make it truncate to fit left/right hand columns. This module now works in native mode on Joomla 1.5 & VM 1.1 as well as Joomla 1.0 and VM 1.0. You can get both versions from my download site.
The module only works in conjunction with Artio's JoomSEF to generate human-friendly URLs to make your shop much more search-engine-friendly so please don't raise support queries until you have installed Artio JoomSEF.
The features for the module are : When user selects a product or a category they will be redirected to product or category detail page. Categories and products can be ordered by name, SKU &c. You may choose to show only published products, all products, or products entered by date (from and to date)
See Joomla 1.5 example here: http://www.sugarclothing.co.uk
It will take the width of your widest product name so please bear in mind that it will not fit the left or right hand columns if your product names are long!
IMHO this should be part of core VM.
Download the Joomla 1.5 version by clicking on the usual download button or follow this link:
http://lightquick.co.uk/virtuemart-downloads/virtuemart-drop-down-product-list-sef-joomla-1.5.html
The Joomla 1.0 version is here:
http://lightquick.co.uk/virtuemart-downloads/mod-product-list-sef.html
(sorry those links went off line for a while - fixed now!)
If you are going to use this module on your site then please do so, all we ask is that you give us a little positive feedback here on the JED. It is nice to know we are not working in a vacuum and that our small effort is appreciated!
Yereverluvinunclebert
In the the mod_product_list.php you need to declare the javascript right at then end to be w3c compliant - for the form - , otherwise nice work.
Sorry old chap, I think you are wrong, something else in your site is conflicting and stopping your light box, not the product drop down. See both working here in combination:
http://www.sugarclothing.co.uk/shop/dresses/lilly-allen-style-floral-printed-chiffon-short-dress.html - Don't forget to report any bugs to me for confirmation before incorrectly reviewing here.
Just one problem (my fault), I don't find where to translate the default text "Select Product" in my language...
kawagunax, to change this text is really easy. If you are using the Joomla 1.5 version then edit /public_html/modules/mod_product_list/mod_product_list.php
look for line 311 and modify the text 'Select Product' to your own language, 'Choisissez produit' or 'プロダクトを選びなさい' &c. I will modify the code to add a language file as soon as I have time. Look for the change here soon.
If two are published at once site stops at error.
Is there a possibility to fix the module to allow two or more on the same site?
Thank you! Great work!
Sorry old chap, it's not something that has been requested before or after by anyone else so it is unlikely that I'll have time to implement this.
if anyone is interested, i've implemented a little tweak to shorten the list names. maybe the value it's set to could be made part of the module params?
this is the hack:
before the line outputting the tag html:
$html .= "\n\t" . $t . "";
i've inserted a call to a function:
if (strlen($t) > 20) {
$t = truncstring($t, 20);
$t = $t."...";
}
where 20 is my chosen numbers of characters after which i wanted 3 dots "..."
i've placed the function truncstring() right after the ending of the selectList() function (which reads
" return $html;
}"
):
function truncstring($string, $length){
settype($string, 'string');
settype($length, 'integer');
for($a = 0; $a
Thanks Max, your efforts are appreciated.
I will work on ensuring this has a width control in future - keep an eye out here
Quite right, it is too wide if your products have long names as it takes its width from your longest product name.
Therefore, the best place for it is in a module at the top of your content page rather than in the left hand or right hand columns. See it being used like this here:
http://www.goodwoodantiques.co.uk/
On one site I had to reduce the width of some of my product names to make it fit. As soon as I get the chance I will introduce a width control. Keep an eye open here.
Yereverluvinunclebert








