Minor Bug in VM rev5868 when adding items to the cart

Started by patrik60, April 13, 2012, 17:52:28 PM

Previous topic - Next topic

patrik60

Hello

There is a minor bug with the new possibility enabling or disabling popup.

When enabled, cart changes into default site language after adding items. When disabled, the message appears twice.

[attachment cleanup by admin]

patrik60


patrik60

I have attached now three pics to demonstrate the problem in an multiligual shop when "Display modal popup upon 'Add to cart' " is enabled:

Starting in English when adding an item to the cart, the cart-modul content changes into German. After refreshing the browser it changes back into english. Also the content of the popup changes into German (see pic in my first post).

[attachment cleanup by admin]

Milbo

There is a new option in the vmconfig tab cart "language Javascript Fix"
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

patrik60

When selecting this option I can't add any item to the cart in the non default language.

patrik60

To me it seems not to be a language problem. I have also made a template override of the cart modul. There I have deleted item prices and cart attributes. They appear again after adding something to the cart. Only after refreshing it looks correctly.



[attachment cleanup by admin]

patrik60

QuoteStarting in English when adding an item to the cart, the cart-modul content changes into German. After refreshing the browser it changes back into english. Also the content of the popup changes into German

It's a SEO problem. When disabling SEO in Joomla configuration it works. When disabling it only in VM configuration the problem remains.

patrik60

Finally I have found the problem:

There is an option in plugin System - Language Filter: Remove URL Language Code. As soon as this option is set to YES, the behaviour of the popup is going wrong as I tried to describe im my posts. When the setting is set to NO the popup is working correctly.


patrik60


Milbo

You told the solution for the issue. It is a joomla thing. People must choose the right option. Thx for digging in and finding it. Now is the question, where to place it? Which part of the manual? Maybe a special "multilanguage manual" would be good.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

patrik60

QuoteYou told the solution for the issue.

I don't agree with you. I didn't tell the solution but I told the problem. It can't be a solution to disable a part of the Joomla functions to make working a component properly.
Someone of the dev team was telling me also some time ago, that I haven't understood the multilanguage function of Joomla because the language suffix in the default language of my site was missing. Believe me, it's hard to be taken as a dummy, because I'm using (or in case of VM try to use) a new offered option of Joomla.

Did you know about this option before? Is it hard to consider this option in VM? Yes, this is the part where I don't have any idea, because I'm a user and not a developer. I would appreciate it very much if there could be a way to include this option into VM.

Regards
Patrik

Milbo

Quote from: patbe60 on May 02, 2012, 16:15:32 PM
Finally I have found the problem:
There is an option in plugin System - Language Filter: Remove URL Language Code. As soon as this option is set to YES, the behaviour of the popup is going wrong as I tried to describe im my posts. When the setting is set to NO the popup is working correctly.

Quote from: patbe60 on June 04, 2012, 16:50:09 PM
I don't agree with you. I didn't tell the solution but I told the problem. It can't be a solution to disable a part of the Joomla functions to make working a component properly.

This is contrary what you say. You describe above, when you let the feature ENABLED, then it works. So in my eyes you are like someone saying, HEy they ABS of my car isnt working, when I disable it.

Yes that is absolutly correct, when you disable the URL language code, of course it will fail.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

patrik60

#12
QuoteThis is contrary what you say. You describe above, when you let the feature ENABLED, then it works.

That's not what I said.

QuoteAs soon as this option is set to YES, the behaviour of the popup is going wrong as I tried to describe im my posts.
Thats what I told you. (I should have said: It is not working) And I mean the popup

So whats the difference between ENABLED and YES?

I'm not talking about disabling the system language filter plugin but enabling the new option which you can see in the attached pic. This is a complete new feature which was implemented into Joomla 2.5 between version 2.5.2 and 2.5.4. And when enabling this option all sites in VM, all sites from any compatible component with Joomla 2.5 work fine except the popup "add to cart".

So, to say it in your words: I have now ABS (VM popup), but it is working only properly when I turn out the light (disabling the option).

You may check it here (The option is enabled) Just put something in the cart.

http://www.panmusic.ch/virtuemart/en/shop/testkategorie/testproduct-detail

[attachment cleanup by admin]