News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

strange error on VM 2 search engine

Started by fabvincent, September 24, 2013, 11:57:43 AM

Previous topic - Next topic

fabvincent

HI all,
VM2 gives me lately an error in my javascript console

$(".vm-chzn-select").chosen is not a function

concerning, apprently the following javascript code that is automatically implemented onto the site

//<![CDATA[
60 var vm2string ={editImage: 'edit image',select_all_text: 'COM_VIRTUEMART_DRDOWN_SELALL',select_some_options_text: 'COM_VIRTUEMART_DRDOWN_AVA2ALL'} ;
61 jQuery( function($) {
62 $(".vm-chzn-select").chosen({enable_select_all: true,select_all_text : vm2string.select_all_text,select_some_options_text:vm2string.select_some_options_text});
63 });
64//]]>

The code itself would not bother me if it was not for the blocking of further down the code.
If the code is useless because the search engine is finding the articles in the page, is there any way to block it?

Thanks for your help, I really need a solution to that.

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

fabvincent

sorry :
joomla 2.5.11
VM 2.0.22c
PHP Version 5.3.5


jenkinhill

Can you try 2.0.22e as that has some minor fixes. None of my VM2.0.22d/e installations give that error so what other script are you using that can cause conflict. url?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

fabvincent

VM 2.0.22d/e?
my system tells me I have the lastest version and Vm download page only gives me the "latest 2.0.22c" version. Where can I get the d/e?
As far as what other plugins/ modules could create the conflict, the business I'm working for has got me installed a bunch of things like slideshowCK as background image, magicZoom for products, AWO coupons - I also have JCH optimize (not active 'cause it's messing the administration part when active so as I'm working on it it is un active) and tried to solve the problem with jquery easy that took care of a couple of problems but not all.

Still trying...

jenkinhill

http://dev.virtuemart.net/projects/virtuemart/files

Don't use the live updater. Use Joomla's extensions installer to upgrade VM components.  Too many bells & whistles are the usual cause of JavaScript problems.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

claesbas

#6
Im also having a conflict with only this code in the cart:

//<![CDATA[
      var vm2string ={editImage: 'edit image',select_all_text: 'COM_VIRTUEMART_DRDOWN_SELALL',select_some_options_text: 'COM_VIRTUEMART_DRDOWN_AVA2ALL'} ;
       jQuery( function($) {
         $(".vm-chzn-select").chosen({enable_select_all: true,select_all_text : vm2string.select_all_text,select_some_options_text:vm2string.select_some_options_text});
      });
//]]>

We have a special payment module so it might be that one. What exactly is that script? Where does it come from? What file in vm installation is this coming from?

Im using latest 2.0.24

VMuikit - A Virtuemart theme for Yootheme template
https://joomlapro.com/vmuikit

VMonepage - One Page Checkout (Was free - now is €20)
https://joomlapro.com/product/virtuemart-one-page-checkout

VMKCO - Klarna Checkout Enhanced
https://joomlapro.com/product/virtuemart-klarna-checkout

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

kok

I have a similar problem: TypeError: $(...).chosen is not a function
This error is disrupting orderlist.
http://softex.it-klub.ru/index.php?keyword=350&search=true&view=category&limitstart=0&option=com_virtuemart


J2.5.14
VM2.0.24
Joomla! 2.5.27
VirtueMart 2.6.10

kok

#9
Solved.
On the search results page has been deleted library chosen.jquery.min.js
It did plugin "jQuery Easy". After setting it all worked (jQuery Easy - Advanced Site Options (Expert users only) - Ignore Scripts - chosen.jquery.min.js).
In my case - this is the reason for the error.
Joomla! 2.5.27
VirtueMart 2.6.10