News:

Looking for documentation? Take a look on our wiki

Main Menu

Probably a bug

Started by daniel__, July 12, 2013, 02:31:03 AM

Previous topic - Next topic

daniel__

i have a shop with two languages. When i switch from PT to EN the $this->category->category_name; will return the name of the shop. If i click in a category then the $this->category->category_name; will return the correct name of the category. This only occurs in the second language, because if i switch to PT the $this->category->category_name; works fine.

So I have Categorias and [name of the shop] where should stay Categories.

daniel__

#1
Well, this issue seems to be ignored

Here is the proof.

EN
object(TableCategories)[303]
  public 'virtuemart_category_id' => int 0
  public 'virtuemart_vendor_id' => int 0
  public 'category_name' => string 'Company' (length=5) //error
  public 'slug' => string '' (length=0)
  public 'category_description' => string '' (length=0)
  public 'category_template' => string 'default' (length=7)
  public 'category_layout' => string '0' (length=1)
  public 'category_product_layout' => null
  public 'products_per_row' => null
  public 'ordering' => int 0

...

PT
object(TableCategories)[302]
  public 'virtuemart_category_id' => int 0
  public 'virtuemart_vendor_id' => int 0
  public 'category_name' => string 'Categorias' (length=10)
  public 'slug' => string '' (length=0)
  public 'category_description' => string '' (length=0)
  public 'category_template' => string 'default' (length=7)
  public 'category_layout' => string '0' (length=1)
  public 'category_product_layout' => null
  public 'products_per_row' => null
  public 'ordering' => int 0

...

My solution is a simple if statement and set the variable to "Categories". But this is a real issue.