View Issue Details

IDProjectCategoryView StatusLast Update
0002095OXID eShop (all versions)2. ----- eShop backend (admin) -----public2010-09-14 12:51
Reporteravenger Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionunable to reproduce 
Product Version4.4.2 revision 29492 
Summary0002095: A Trusted Shops "EXCELLENCE"-packages can not be initialised in the shop
DescriptionWhen trying to activate the TS-functions in OXID, always a non-existing TS-ID is reported, if the shop owner has booked an "EXECELLENCE"-package with TS.
Steps To ReproduceTry to active OXID's TS-functions for a TS "EXECELLENCE"-package.
Additional InformationReason is, that in oxviews.php the "Trustes Shop"-ID in the following routine only yields a result other then false, if the TS-package type ("$aTsType[$iLangId]") is "CLASSIC".

if ( $sTsActive && $aTrustedShopIds && $aTsType[$iLangId] == 'CLASSIC' ) {

If the TS-package type is "EXCELLENCE", the routine fails.

public function getTrustedShopId()
    {
        if ( $this->_sTrustedShopId == null ) {
            $this->_sTrustedShopId = false;
            $oConfig = $this->getConfig();
            $aTsType = $oConfig->getConfigParam( 'tsSealType' );
            $sTsActive = $oConfig->getConfigParam( 'tsSealActive' );
            $aTrustedShopIds = $oConfig->getConfigParam( 'iShopID_TrustedShops' );
            $iLangId = (int) oxLang::getInstance()->getBaseLanguage();
            if ( $sTsActive && $aTrustedShopIds && $aTsType[$iLangId] == 'CLASSIC' ) {
                // compatibility to old data
                if ( !is_array( $aTrustedShopIds ) && $iLangId == 0 ) {
                    $this->_sTrustedShopId = $aTrustedShopIds;
                }
                if ( is_array( $aTrustedShopIds ) ) {
                    $this->_sTrustedShopId = $aTrustedShopIds[$iLangId];
                }
                if ( strlen( $this->_sTrustedShopId ) != 33 || substr( $this->_sTrustedShopId, 0, 1 ) != 'X' ) {
                    $this->_sTrustedShopId = false;
                }
            }
        }
        return $this->_sTrustedShopId;
    }

TagsNo tags attached.
Theme
BrowserAll
PHP Versionany
Database Versionany

Relationships

related to 0002098 resolvedLinas Kukulskis Trusted Shop Seal should be displayed in start page for Excellence too 

Activities

vilma_liorensaityte

2010-09-10 13:52

reporter   ~0003498

Reminder sent to: avenger

Hi,

This function getTrustedShopId() in oxview.php will be used only for Trusted Shops(TS) Classic package. To activate TS Excellence in frontend, you should use function getTSExcellenceId() in the same oxview.php file. If you have problems with activating TS Id in backend, just check that options "Test mode active" and "Show Trusted Shops seal" are disabled.

Best regards,
Vilma

vilma_liorensaityte

2010-09-10 14:07

reporter   ~0003500

Reminder sent to: avenger

Hi,

Option "Show Trusted Shops seal" must be on!
Sorry for wrong info before.

Regards,
Vilma

avenger

2010-09-10 14:10

reporter   ~0003501

<<Option "Show Trusted Shops seal" must be on!
Sorry for wrong info before.>>

That is exactly what I was doing, but then OXID does not accept the TS-ID in the admin-area because of the a.m. problem...

dainius.bigelis

2010-09-10 16:59

reporter   ~0003503

Reminder sent to: avenger

Hi,

Locally we cannot reproduce it, and have no more ideas about why it cannot work (if you are using getTSExcellenceId() and have "Show Trusted Shops seal" ON).
Would it be possible to debug it somewhere on your (test) system? If yes - we would really appreciate if you would send the access info to our support ([email protected]) with reference to this bug entry.

Best regards,

dainius.bigelis

2010-09-14 12:51

reporter   ~0003511

Closed as cannot reproduce