VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Anirudh on March 22, 2015, 21:33:57 PM

Title: "Save, Save & Close, Close" buttons for Products no working
Post by: Anirudh on March 22, 2015, 21:33:57 PM
"Save, Save & Close, Close" buttons are working for all over the website except Products.

I guess I started facing this problem after creating a custom field and used it in Product.

My virtuemart version: VirtueMart 3.0.6.2
My Joomla Version: 3.4.1
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: Mike J on March 23, 2015, 05:51:31 AM
Same prob here. A number of others looking for solution also.
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: padalec on March 23, 2015, 10:08:42 AM
I am also facing the same problems.

Save / Save & Close button not working in VM3. In Joomla articles buttons works ok.

UPDATE: I doesn't work only on PRODUCTS. I can save PRODUCT CATEGORIES.

I tried to clear cache, purge cache, clear browser cache and reload browser ...

VirtueMart 3.0.6.2
Joomla: 3.4.1
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: Mike J on March 23, 2015, 10:16:20 AM
Yes padalec... Exactly the same situation here. Hopefully someone is working on a fix...
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: Thomas Huesser on March 23, 2015, 10:20:57 AM
Same problem here. It's only in products.
Using Joomla 3.4.1 and Virtuemart 3.0.6.2

In Firefox the console shows an error from jquery:

Error: Syntax error, unrecognized expression: #mprices[product_price_publish_up][]-lbl

UPDATE: Did update to Virtuemart 3.0.6.3 RC. Update worked, but did not solve this problem.
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: Mike J on March 23, 2015, 10:27:31 AM
Yes Thomas. I get exactly the same error. I read a post somewhere today in which, apparently someone got around it by using Jquery Easy. I installed it but couldn't get it workin. :-\  If someone finds a quick fix please post.
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: Thomas Huesser on March 23, 2015, 11:17:57 AM
Another error maybe related (or not?): changing or adding an image in products (and also in product categories) does not work.
Entering text in the image search field, does nothing.
It also shows an error in the console:
TypeError: invalid 'in' operand a (in jquery.min.js)

Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: lopezalejandro on March 23, 2015, 13:53:38 PM
The problem is jquery of Joomla 3.4.1

You can install previous version, 3.4.0:
https://github.com/joomla/joomla-cms/releases/download/3.4.0/Joomla_3.4.0-Stable-Update_Package.zip

And erase the browser cache
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: Thomas Huesser on March 23, 2015, 15:54:17 PM
Thanks.
Installing the 3.4.0 stable update package solved the problem.
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: Milbo on March 23, 2015, 16:14:20 PM
I worked some hours today on it to find a solution, but it just would mean to copy the js of j3.4 in our core, just to fix this bug. I hope that they fix it next version, else we have to replace the whole jooma js. I try to avoid this extra work
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: Mike J on March 23, 2015, 16:27:12 PM
Appreciated Milbo,

For those of us waiting would you recommend that we sit it out or is a roll back to 3.4 possible?

Updating the Joomla files is one thing but I'm concerned that database will need to be tweaked also.

I saw the update to 3.4.1 and thought why not? (thought no need to run a quick back up first ??? )

Cheers

Woops - Just read your coments: "It seems the solution is to use j3.4.1 with the js of j3.4.0" in another post. Will give it a go.
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: lindapowers on March 23, 2015, 17:36:59 PM
And how you put the js of 3.4.0 in to 3.4.1 thats what I dont understand, what files to move.
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: Mike J on March 23, 2015, 18:11:01 PM
Hi there,

I've been lookin around (like you).

This is the best actual hands on fix so far: https://forum.virtuemart.net/index.php?topic=128981.msg443613#msg443613

It's hard to know if it's worth the hassle but as we don't know how long until a better solution will come along we may have to try.

I just wish I's made a simple back up before installing the update.  :(

Please let me know how you.

All the best
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: huildino on March 23, 2015, 18:12:39 PM
And how you put the js of 3.4.0 in to 3.4.1 thats what I dont understand, what files to move.
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: Mike J on March 23, 2015, 18:19:53 PM
Have you got FTP access or can you get to your installation file manager via cpanel? Make a back up first.

It would be a matter of getting the older version of Joomla and installing it (folders and files) straight over the top of the newer updated version that's causing the problems.

Re: which js files it too hard to know from what I can tell.

The post above: https://forum.virtuemart.net/index.php?topic=128981.msg443613#msg443613 describes a full overwrite I believe. The best info right now on how to roll back...

Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: extromedia on March 24, 2015, 11:56:13 AM
Hi all,

I also had this problem, but i didn't like the idea of doing a complete rollback to J3.4.0 , so this is my workaround:

The problem seems to be that that in J3.4.1 , some changes to the JForm Validator JavaScript file don't seem to work with VM 3.0.6.2 .
So i replaced the J3.4.1 validator js file with the 'old' J3.4.0 one, which solved the problem for me (please backup your Joomla installation first before doing any changes).

This is what to do:

1- get the J3.4.0 full package zip file (joomla.org)
2- open the zip file on your local computer and unzip the file /media/system/js/validate.js
3- FTP to your online Joomla installation
4- browse to the directory /media/system/js and rename the existing validate.js to e.g. 341-validate.js
5- upload the validate.js file you extracted from the J3.4.0 full package to your online Joomla installation (/media/system/js)
6- That's it, you should now be able to save your products again.
Note: you can easily revert the changes, since the original J3.4.1 js file is only renamed.

This is only a workaround, but for now, it should do the trick.

Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: Milbo on March 24, 2015, 12:39:35 PM
Thank you extromedia for this detailed instructions.

Here is the right fix http://forum.virtuemart.net/index.php?topic=128961.msg443712#msg443712
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: hakan26 on March 24, 2015, 13:28:48 PM
Many thanks! Fixed.
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: extromedia on March 24, 2015, 14:26:44 PM
Hi milbo,

thanks for fixing this so quickly!

Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: partesyaccesorios on March 24, 2015, 16:11:57 PM
I feel the same, had joomla 3.3.6 and update to 3.4.1 and stop working the save button Save , Save & Close, Close .

I virtumart 3.0.6.2

Someone already found a solution?
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: jenkinhill on March 24, 2015, 16:17:58 PM
FFS. Look 3 messages up this thread.
Title: Re: "Save, Save & Close, Close" buttons for Products no working
Post by: Milbo on April 20, 2015, 21:52:32 PM
http://forum.virtuemart.net/index.php?topic=129537