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

Dependent options not loading (ajax issue?)

Started by pixelperfectcreative, February 21, 2018, 00:31:27 AM

Previous topic - Next topic

pixelperfectcreative

I have a site that is complete except for one big problem. If you go to a product and select an option from the first box, it should populate the other option boxes. However about half the time it will not... unless you refresh the page.

Watch this video for an example of the problem: https://screencast-o-matic.com/watch/cFn23boKAF

Notice that I go to a product, select the first option and nothing happens (ajax issue?). Then, if I refresh the page, make a selection in that first box, the other options are then loaded.

I am desperate for an answer on this. Thanks in advance to anyone that has any help for me.

Milbo

use in your browser with right click the "examine" or some other method to get the console, then click on js console and try the dropdown. You should now see below in the console how the js is working. and when it does not work, you will see an error there.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Studio 42

This is typical an obsolete template not loading Vm scripts.
You need to add in your template file YOURSHOP/templates/YOURTEMPLATE/html/com_virtuemart/productdetails/default.php
echo vmJsApi::writeJS();
at end of file but before closing </div>

Note that in some case other JavaScripts are not load, but it work with this change 80% of time.