There are a few problems with the combination of VirtueMart/VirtueUpload and most RocketTheme templates.
Most RT templates (except eg Mynxx, which is special for VirtueMart) give terrible javascript errors on Internet Explorer, and disable the gototop function and other Roktools in the template.
I got the solution for this from one of the users:
The IE mootools issue was fixed. Turns out the problem was that mootools was loaded by the RocketTheme and then a second time by VM. Deleting it from administrator\components\com_virtuemart\classes\htmlTools.class.php fixed it.
| Code: |
line 794 - $vm_mainframe->addScript( $mosConfig_live_site .'/components/'. VM_COMPONENT_NAME .'/js/mootools/'.$version );
|
This is a great solution for working with VM and RT!
The second problem, is that RT has it's own addtocart scripts for VirtueMart. Since VirtueUpload also attaches a script to the addtocart action, they conflict.
The VirtueUpload scripts only checks if the upload is done. That way the user can be prompted when the upload is required and missing.
To use VirtueUpload in RT templates, the upload-required option should be switched off, and this patch needs to be applied to the modules/mod_virtueupload/mod_virtueupload.php file.