News:

Looking for documentation? Take a look on our wiki

Main Menu

Saving functionality doesn't work

Started by vladast, October 06, 2018, 15:01:21 PM

Previous topic - Next topic

vladast

Hi all,
after the upgrade to 3.4 and later to 3.4.1 I have experienced that "Save and close" and "Save" buttons doesn't work in VM backend? All other buttons works fine, but for some reason this doesn't?
Has anyone experienced similar thing?

After debugging found some errors... attached.

J3.8.12
VM3.4 or 3.4.1


GJC Web Design

cleared your browser cache?

Checked for JS errors ?
GJC Web Design
VirtueMart and Joomla Developers - php developers [url="https://www.gjcwebdesign.com"]https://www.gjcwebdesign.com[/url]
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
[url="https://extensions.joomla.org/profile/profile/details/67210"]https://extensions.joomla.org/profile/profile/details/67210[/url]
Contact for any VirtueMart or Joomla development & customisation

vladast

Yes of course, cache cleared few times. JS error, shown in my first post.

GJC Web Design

myValidator isn't being found

      if(!$done[$validate]){
         if($validate){
            vmJsApi::vmValidator();
            $form = "if( (a=='apply' || a=='save') && myValidator(form,false)){
            form.submit();
         } else if(a!='apply' && a!='save'){
            form.submit();
         }";

is vmJsApi::vmValidator();  working?

http://x.com/media/system/js/validate.js?e2ad1d21f7ea812dad5dc0f6d0b8dc9a  loaded?

GJC Web Design
VirtueMart and Joomla Developers - php developers [url="https://www.gjcwebdesign.com"]https://www.gjcwebdesign.com[/url]
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
[url="https://extensions.joomla.org/profile/profile/details/67210"]https://extensions.joomla.org/profile/profile/details/67210[/url]
Contact for any VirtueMart or Joomla development & customisation

vladast

I think I have resolved this now...
as I'm using template override, there is a folder templates/site/com_virtuemart/assets/js which contains all files from previous version. Now I have copied fresh new JS files from components/com_virtuemart/assets/js folder into my template folder and everything works fine.
I'll check if I can delete JS folder from my template folder. Hopefully, all scripts will be pulled from coponents/com_virtuemart folder.