View Issue Details

IDProjectCategoryView StatusLast Update
0001739OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2012-12-07 14:15
Reporterschuhe-schuhe Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.2.0 revision 23610 
Fixed in Version4.3.1 revision 27257 
Summary0001739: Changing Currency on manufacturer lists delivers empty pages
DescriptionWhen products are listed by manufacutrer, any change of currency leads do blanc manufacturer lists.
TagsManufacturer
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

Moehlis

2010-04-01 11:23

reporter   ~0002452

Last edited: 2010-04-01 11:32

note: currency links are generated wrong. they dont include which manufacturer should be displayed.
also after changing currency, there are two "cur" parameters in currency links

arvydas_vapsva

2010-04-12 11:22

reporter   ~0002507

old code views/oxcmp_cur.php:

    ...
    reset( $this->aCurrencies );
    while ( list( , $oItem ) = each( $this->aCurrencies ) ) {
        $oItem->link = oxUtilsUrl::getInstance()->processUrl("{$sURL}&cur={$oItem->id}");
    }
    ...

new code:

    ...
    $oUrlUtils = oxUtilsUrl::getInstance();
    $sUrl = $oUrlUtils->cleanUrl( $this->getParent()->getLink(), array( "cur" ) );
    reset( $this->aCurrencies );
    while ( list( , $oItem ) = each( $this->aCurrencies ) ) {
        $oItem->link = $oUrlUtils->processUrl( $sUrl, true, array( "cur" => $oItem->id ) );
    }
    ...

New method (implemented in SVN version, will come with next release) oxUtilsUrl::cleanUrl() removes any passed parameter from given URL. So in this case you must create a code, which removes "cur=X" parameter from url.