Merkzettel

Community Edition 4.7.0_51243

Hallo zusammen,

wenn ich etwas zum Merkzettel hinzufüge und diesen Merkzettel dann über
/index.php?cl=account_noticelist aufrufe, werde ich immer zur Startseite geführt.
/index.php?cl=start&redirected=1

Vieleicht hat jemand eine Idee ? Hier mal die account_noticelist.php

class Account_Noticelist extends Account
{
    /**
     * Current class template name.
     * @var string
     */
    protected $_sThisTemplate = 'page/account/noticelist.tpl';

    /**
     * Check if there is an product in the noticelist.
     *
     * @var array
     */
    protected $_aNoticeProductList = null;

    /**
     * return the similar prodcuts from the notice list.
     *
     * @var array
     */
    protected $_aSimilarProductList = null;

    /**
     * return the recommlist
     *
     * @var array
     */
    protected $_aRecommList = null;

    /**
     * Current view search engine indexing state
     *
     * @var int
     */
    protected $_iViewIndexState = VIEW_INDEXSTATE_NOINDEXNOFOLLOW;

    /**
     * Array of id to form recommendation list.
     *
     * @var array
     */
    protected $_aSimilarRecommListIds = null;

    /**
     * If user is not logged in - returns name of template
     * Account_Noticelist::_sThisLoginTemplate, or if user is allready
     * logged in - loads notice list articles (articles may be accessed
     * by oxuser::getBasket()), loads similar articles (if available) for
     * the last article in list oxarticle::GetSimilarProducts() and
     * returns name of template to render account_noticelist::_sThisTemplate
     *
     * @return string current template file name
     */
    public function render()
    {
        parent::render();

        // is logged in ?
        $oUser = $this->getUser();
        if ( !$oUser ) {
            return $this->_sThisTemplate = $this->_sThisLoginTemplate;
        }

        return $this->_sThisTemplate;
    }

    /**
     * Template variable getter. Returns an array if there is something in the list
     *
     * @return array
     */
    public function getNoticeProductList()
    {
        if ( $this->_aNoticeProductList === null ) {
            if ( $oUser = $this->getUser() ) {
                $this->_aNoticeProductList = $oUser->getBasket( 'noticelist' )->getArticles();
            }
        }
        return $this->_aNoticeProductList;
    }

    /**
     * Template variable getter. Returns the products which are in the noticelist
     *
     * @return array
     */
    public function getSimilarProducts()
    {
        // similar products list
        if ( $this->_aSimilarProductList === null && count( $this->getNoticeProductList() ) ) {

            // just ensuring that next call will skip this check
            $this->_aSimilarProductList = false;

            // loading similar products
            if ( $oSimilarProd = current( $this->getNoticeProductList() ) ) {
                $this->_aSimilarProductList = $oSimilarProd->getSimilarProducts();
            }
        }

        return $this->_aSimilarProductList;
    }

    /**
     * Return array of id to form recommend list.
     *
     * @return array
     */
    public function getSimilarRecommListIds()
    {
        if ( $this->_aSimilarRecommListIds === null ) {
            $this->_aSimilarRecommListIds = false;

            $aNoticeProdList = $this->getNoticeProductList();
            if ( is_array( $aNoticeProdList ) && count( $aNoticeProdList ) ) {
                $this->_aSimilarRecommListIds = array_keys( $aNoticeProdList );
            }
        }
        return $this->_aSimilarRecommListIds;
    }

    /**
     * Returns Bread Crumb - you are here page1/page2/page3...
     *
     * @return array
     */
    public function getBreadCrumb()
    {
        $aPaths = array();
        $aPath  = array();

        $aPath['title'] = oxRegistry::getLang()->translateString( 'PAGE_ACCOUNT_MY_ACCOUNT', oxRegistry::getLang()->getBaseLanguage(), false );
        $aPath['link']  =  oxRegistry::get("oxSeoEncoder")->getStaticUrl( $this->getViewConfig()->getSelfLink() . "cl=account" );
        $aPaths[] = $aPath;

        $aPath['title'] = oxRegistry::getLang()->translateString( 'PAGE_ACCOUNT_NOTICELIST_MYWISHLIST', oxRegistry::getLang()->getBaseLanguage(), false );
        $aPath['link']  = $this->getLink();
        $aPaths[] = $aPath;

        return $aPaths;
    }
}

Gruß
Bitsecure

Was ist der neueste Eintrag in exception_log.Txt?

An die exception_log.Txt hab ich gar nicht gedacht. Hab jetzt einen ansatz und komme erst mal weiter.

Danke !

In der listitem_line.tpl steht folgender Block.

[{block name="widget_product_listitem_line_price_value"}]
                        <label id="productPrice_[{$testid}]" class="price">
                            <span>[{ $product->getFPrice() }]</span> [{ $currency->sign}] [{if !($product->hasMdVariants() || ($oViewConf->showSelectListsInList() && $product->getSelections(1)) || $product->getVariantList())}]*[{/if}]
                        </label>
                    [{/block}]

Wenn ich den rausnehme dann funktioniert es.

In der log Datei steht folgendes:

oxSystemComponentException-oxException (time: 2014-07-02 12:58:45): [0]: Function ‘getVariantList’ does not exist or is not accessible! (dwa_variant_oxarticle)

Gruß
Bitsecure