Author Topic: Virtuemart.updateChosenDropdownLayout error  (Read 91 times)

2dmaster

  • Jr. Member
  • **
  • Posts: 105
Virtuemart.updateChosenDropdownLayout error
« on: July 04, 2018, 22:12:58 pm »
this is not good function pls fix it !!!

VM8129:6 Uncaught TypeError: jQuery(...).chosen is not a function
    at Object.Virtuemart.updateChosenDropdownLayout (eval at <anonymous> (jquery.min.js:3), <anonymous>:6:35)
    at HTMLDocument.eval (eval at <anonymous> (jquery.min.js:3), <anonymous>:10:14)
    at c (jquery.min.js:3)
    at Object.add [as done] (jquery.min.js:3)
    at a.fn.init.ready (jquery.min.js:3)
    at eval (eval at <anonymous> (jquery.min.js:3), <anonymous>:9:19)
    at eval (<anonymous>)
    at jquery.min.js:3
    at Function.globalEval (jquery.min.js:3)
    at a.fn.init.domManip (jquery.min.js:4)



!!! worked if i set off in virtuemart cfg dropdowns regions and disable other vm libs !!!

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3152
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 &amp; 3.0.x.y
Re: Virtuemart.updateChosenDropdownLayout error
« Reply #1 on: July 04, 2018, 23:18:28 pm »
Yes, i have same problem.
This is since last releases.
With a light code change, you solve the problem
in JOOMLAROOT/administrator/components/com_virtuemart/helpers/vmjsapi.php
after
Code: [Select]
Virtuemart.updateChosenDropdownLayout = function() {add
Code: [Select]
if( typeof jQuery.chosen === "undefined") return;
It's not heavy tested, but the problem is most case because all Virtuemart changes and template, it's sometime a nightmare when you need to customize the javascripts for a shop