Author Topic: 2.022 shop config not saving + multilingual issue  (Read 6501 times)

lindapowers

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Los Angeles immigration lawyers
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
2.022 shop config not saving + multilingual issue
« 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

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10451
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: 2.022 shop config not saving + multilingual issue
« Reply #1 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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10451
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: 2.022 shop config not saving + multilingual issue
« Reply #2 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]
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

lindapowers

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Los Angeles immigration lawyers
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: 2.022 shop config not saving + multilingual issue
« Reply #3 on: July 09, 2013, 23:33:55 pm »
Thanks a lot that solved both issues.

Regards


Nibiru7

  • Beginner
  • *
  • Posts: 7
    • FretWork
  • Skype Name: sve-group
  • VirtueMart Version: 3.0.10
2.022 update
« Reply #4 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.

slavik86

  • Beginner
  • *
  • Posts: 9
Re: 2.022 shop config not saving + multilingual issue
« Reply #5 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.


goretex34

  • Beginner
  • *
  • Posts: 37
    • Zeesl web design · diseño web Zeesl
Re: 2.022 shop config not saving + multilingual issue
« Reply #6 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

------------------------------------
www.Zeesl.com  @Zeesl
www.chartconsulting.net @chartcon
@goretex34

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10451
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: 2.022 shop config not saving + multilingual issue
« Reply #7 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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/