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

2dmaster

  • Jr. Member
  • **
  • Posts: 83
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: 3458
  • 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

stawebnice

  • Jr. Member
  • **
  • Posts: 230
  • What does not kill you, makes you stronger...
    • StaWEBnice - www stránky, seo optimalizace a copywriting
  • Skype Name: peta_ze_sklepa
  • VirtueMart Version: 3.2.14
Re: Virtuemart.updateChosenDropdownLayout error
« Reply #2 on: August 08, 2018, 23:06:20 pm »
great thanks, that's exactly what I needed when multivariant select of product variant was not working :)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9720
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Virtuemart.updateChosenDropdownLayout error
« Reply #3 on: August 10, 2018, 10:19:32 am »
But it must be something in your template, because the problem is rare. Furthermore the last version is already some months old.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3458
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 &amp; 3.0.x.y
Re: Virtuemart.updateChosenDropdownLayout error
« Reply #4 on: August 10, 2018, 11:28:42 am »
But it must be something in your template, because the problem is rare. Furthermore the last version is already some months old.

I had already the problem, when you install a template demo pack, sometime they disable or do not load VM scripts because they use own select list javascript in product.