View Issue Details

IDProjectCategoryView StatusLast Update
0000831OXID eShop (all versions)3.1. Design, GUI, UXpublic2009-05-08 10:31
Reportersimply because Assigned To 
Status resolvedResolutionfixed 
Product Version4.1.1 revision 18442 
Fixed in Version4.2.0 revision 23610 
Summary0000831: Sorting by ...
DescriptionIt is not possible to put a blank, dash or dot in the sorting title.
I am trying to use a sorting by oxartnum beside the sorting by price. The function in itself works fine but when I write Artikel-Nr. in the cust_lang.php I am getting an error message:

Parse error: syntax error, unexpected ',' in /xxx/yyy/pe4/core/smarty/plugins/function.assign_adv.php(95) : eval()'d code on line 1

So you have to write everything in one word: Artikelnummer - which is too long.

In version PE 3xy it works.

TagsNo tags attached.
PHP Version5.2.6
Database Version5.0.33



2009-05-07 15:49

reporter   ~0000872

Reproduced the same problem by changing the name "Title" (one of sorting options in View) in lang.php file.

Also strange is that when I put the title "Arti.kel", then drop was removed and title displayed as "Artikel" (dot should not be removed).
When title inserted "Artikel.Nr." - then the described error message occured.
When title inserted "Arti-kel" - then the title "oxtitle" was displayed.
Please check these cases also - it should display the title exactly as it is written in the lang.php or cust_lang.php files.


2009-05-08 10:31

reporter   ~0000880

Problems in sort_guestbook.snippet.tpl & sort.snippet.tpl templates:

sort_guestbook.snippet.tpl was:

  [{assign_adv var="columnnames" value="array
    'oxgbentries.oxcreate' => $columnnames_oxtitle,
    'oxuser.oxusername' => $columnnames_oxprice

should be:

  [{assign_adv var="columnnames" value="array
    'oxgbentries.oxcreate' => '$columnnames_oxtitle',
    'oxuser.oxusername' => '$columnnames_oxprice'

sort.snippet.tpl was:

  [{assign_adv var="columnnames" value="array
    'oxtitle' => $columnnames_oxtitle,
    'oxprice' => $columnnames_oxprice,
    'oxvarminprice' => $columnnames_oxprice

should be:

  [{assign_adv var="columnnames" value="array
    'oxtitle' => '$columnnames_oxtitle',
    'oxprice' => '$columnnames_oxprice',
    'oxvarminprice' => '$columnnames_oxprice'

NOTICE: this template change comes with next major release, so if you need fix ASAP, please fix it by your own according given example