tomatocart / TomatoCart-v1

TomatoCart v1.x respository
http://www.tomatocart.com
Other
22 stars 30 forks source link

[BUG] [product info page] Attribute values output language is not correct. #253

Open dart-com-ua opened 9 years ago

dart-com-ua commented 9 years ago

Description:

  1. In multilanguage shop in any template (including bootstrap) TC1 out only first language values for pull_down_menu attributes. It's not correct behavior.
  2. Also the same problem exists in admin panel: when I try to set attributes for a product I can only select Language1 even if I switched admin panel interface to Language2.

    Example:

I have 2 languages and I add attribute language definitions for drop-down menu

  1. Lang1_Value1,Lang1_Value2, Lang1_Value3, Lang1_Value4
  2. Lang2_Value1,Lang2_Value2, Lang2_Value3, Lang2_Value4

No matter which language is used in admin panel or on the site ALL pull_down_menu values always showed as the Language1 is set.

Solution:

$attributes = $osC_Product->getAttributes(); shall always consider which language is active now for the site.

The same fixes shall be done for admin panel in Product -> Attributes Tab

dart-com-ua commented 9 years ago

This bug is very problematic, because if user doesn't speak main language he will not be able to make his choice!