VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: lindapowers on July 09, 2013, 22:02:49 PM

Title: 2.022 shop config not saving + multilingual issue
Post by: lindapowers on July 09, 2013, 22:02:49 PM
Hi first of all thanks a lot for releasing this great version.

2 things I noticed when updating from 2.021E to 2.022, I intalled the core, then the AIO, updated tables too.

1 -At the VM config - tab shop/vendor won't save any parameters, you change something click save and it shows 2 messages as if the new settings are saved but they aren't.

2 -All my products and categories are shown in a different language from the main spanish language we use.

Actually it seems is taking the order set in the global config, as they are showing names of products and categories in catalán instead of spanish:

Multilingual configuration:

    Catalan (català)
    English (United Kingdom)
    Spanish (español)
    Français (FR)

If I remove catalan, they show in english, if I then I remove english is shown in spanish.

So product names and categories are shown in the first language set there, however I see no way of reordering it.

The payment method at the order list view also shows in catalan. So there's something weird going on with languages. The options and most of VM itself shows in spanish.

Regards
Title: Re: 2.022 shop config not saving + multilingual issue
Post by: Milbo on July 09, 2013, 22:40:23 PM
The problem with the shop config. Hmmm I cannot reproduce it. Which value do you change? For html/php all tabs are one form. So either it works everywhere or nowhere. Or some values do not work, like all multidropdowns.

The language, hmm. I just added fallback. the strange thing is that you do not pass this test

if(!in_array($siteLang, $langs)) {

$siteLang is selected one and $langs are the configured ones in VM. So it seems like that if you connect to your store, you do not have the spain language Tag automatically set.
Title: Re: 2.022 shop config not saving + multilingual issue
Post by: Milbo on July 09, 2013, 23:05:36 PM
The file is for /administrators/components/com_virtuemart/helpers.

Looks like the language switcher does not set a standard and vm is checking if the requested language exists in vm, and if not takes the first.
The new file gets the site default if the language string is still empty and is then doing the check if the requested language appears in vm.

[attachment cleanup by admin]
Title: Re: 2.022 shop config not saving + multilingual issue
Post by: lindapowers on July 09, 2013, 23:33:55 PM
Thanks a lot that solved both issues.

Regards

Title: 2.022 update
Post by: Nibiru7 on July 13, 2013, 23:47:13 PM
Hello! VM updated to version 2.0.22 and in the admin lost all products and categories, and the site's okay. In what could be the problem? Thank you.
Title: Re: 2.022 shop config not saving + multilingual issue
Post by: slavik86 on July 14, 2013, 17:07:29 PM
Hello! VM updated to version 2.0.22 and when I start click a category and then manufacturer I see not all manufactured products, but see a before clicked category product.
my site is www.powerbody.lv

For example I click category and link looks this
http://powerbody.lv/shop-store/aminoskabes

than I click a manufacturer and link looks this
http://powerbody.lv/shop-store/aminoskabes/manufacturer/universal-nutrition

Befored VM 2.0.20b  manufacturer link looks this and i  well see all manufactured products. (without aminoskabes)

http://powerbody.lv/shop-store/manufacturer/universal-nutrition

Whats the problem ? I would like to have all the products.

Title: Re: 2.022 shop config not saving + multilingual issue
Post by: goretex34 on July 18, 2013, 12:36:21 PM
Wow Milbo, thanks for your solution!
Now I can breathe!  8)
I updated from 2.20b - 2.22a  and thought I lost my Spanish categories!  :o
Let's hope the bug is fixed in future updates  ;D

Title: Re: 2.022 shop config not saving + multilingual issue
Post by: Milbo on July 22, 2013, 15:21:58 PM
I just used the default language switcher which provides a default tag, there seems to be another switcher not setting the default.