# Oxarticle erweitern||Session

**URL:** <https://forum.oxid-esales.com/t/oxarticle-erweitern-session/38321>\
**Category:** Deutsches Forum\
**Tags:** development\
**Created:** [July 28, 2009, 3:26pm UTC](https://forum.oxid-esales.com/t/oxarticle-erweitern-session/38321 "2009-07-28T15:26:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MBa](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/m/4491bb/32.png) [@MBa](https://forum.oxid-esales.com/u/MBa)\
**Post date:** [July 28, 2009, 3:26pm UTC](https://forum.oxid-esales.com/t/oxarticle-erweitern-session/38321/1 "2009-07-28T15:26:53Z")

</div>

Hallo,

ich versuche die Klasse oxbasket zu erweitern.

Derzeit habe ich nur eine Testklasse, die nichts anderes beinhaltet als

```auto

class test extends test_parent{
}

```

Wei auch immer, mit Methoden habe ich den gleichen Effekt.

Nachdem ich die Cookies gelöscht habe, da die oxbasket in der Session liegt, wird diese Klasse auch angesprochen…  
…nur leider bekomme ich folgenden Fehler sobald ich einmal irgendetwas mit den Warenkorb gemacht habe (ZB: Artikel in den WK gelegt)

> mod\_rewrite\_off  
> Fatal error: oxcmp\_lang::init() [oxcmp-lang.init]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition “test” of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a \_\_autoload() function to load the class definition in /kunden/149720\_47839/webseiten/sub\_oxid/views/oxcmp\_lang.php on line 79

Ich bin soweit gekommen, dass ich festgestellt habe, dass die (geerbte)Klasse test (wahrscheinlich) nicht richtig [geladen](http://www.google.com/search?q=__PHP_Incomplete_Class&btnG=Suche&lr=lang_de) wird.

Weiterhin habe ich mod\_rewrite auf on und die Ausgabe von ‘mod\_rewrite\_off’ passiert mit folgenden Befehl (oxsession Zeile 501)

```auto
$oBasket=unserialize($sBasket).

```

Warum PHP dort eine Ausgabe macht, ist mit total unklar.

Folgendes steht in der Variable $oBasket:

```auto

__PHP_Incomplete_Class Object
(
    [__PHP_Incomplete_Class_Name] => test
    [_aBasketContents:protected] => Array
        (
            [72d2fd3f4c18171b4b6821f756c232e8] => oxBasketItem Object
                (
                    [_sProductId:protected] => irgendeine_id
                    [_sTitle:protected] => eintitle
                    [_sVarSelect:protected] => 
                    [_sIcon:protected] => icon/imagescover880918005621_ico.jpg
                    [_sLink:protected] => http://eineurl
                    [_oPrice:protected] => 
                    [_oUnitPrice:protected] => 
                    [_dAmount:protected] => 1
                    [_dWeight:protected] => 150
                    [_aSelList:protected] => 
                    [_sShopId:protected] => oxbaseshop
                    [_sNativeShopId:protected] => oxbaseshop
                    [_blSkipDiscounts:protected] => 
                    [_aPersistentParameters:protected] => 
                    [_blBundle:protected] => 
                    [_blIsDiscountArticle:protected] => 
                    [_oArticle:protected] => 
                    [_sDimageDirNoSsl:protected] => eine url
                    [_sDimageDirSsl:protected] => out/pictures/
                    [_aChosenSelectlist:protected] => Array
                        (
                        )

                    [_sWrappingId:protected] => 
                    [_sWishId:protected] => 
                    [_sWishArticleId:protected] => 
                    [_blCheckArticleStock:protected] => 1
                )

        )

    [_iProductsCnt:protected] => 0
    [_dItemsCnt:protected] => 0
    [_dWeight:protected] => 0
    [_oPrice:protected] => 
    [_oProductsPriceList:protected] => 
    [_aDiscounts:protected] => Array
        (
        )

    [_aItemDiscounts:protected] => Array
        (
        )

    [_sOrderId:protected] => 
    [_aVouchers:protected] => Array
        (
        )

    [_aCosts:protected] => Array
        (
        )

    [_oDiscountProductsPriceList:protected] => 
    [_oNotDiscountedProductsPriceList:protected] => 
    [_blUpdateNeeded:protected] => 1
    [_aBasketSummary:protected] => oxStdClass Object
        (
            [aArticles] => Array
                (
                )

            [aCategories] => Array
                (
                )

            [iArticleCount] => 0
            [dArticlePrice] => 0
        )

    [_blBasketMerged:protected] => 
    [_sPaymentId:protected] => 
    [_sShippingSetId:protected] => 
    [_oUser:protected] => 
    [_oTotalDiscount:protected] => 
    [_oVoucherDiscount:protected] => 
    [_oCurrency:protected] => 
    [_blSkipVouchersAvailabilityChecking:protected] => 
    [_dDiscountedProductNettoPrice:protected] => 
    [_aDiscountedVats:protected] => 
    [_blSkipDiscounts:protected] => 
    [_oDeliveryPrice:protected] => 
    [_blCheckStock:protected] => 1
)

```

Währe echt toll, wenn jemand mir dies bestätigen kann oder das Gegenteil und ggf. eine Idee hat.  
…oder ein freies Modul kennt, was die oxbasket erweitert.

---

<div class="post-metadata">

**Author:** ![MBa](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/m/4491bb/32.png) [@MBa](https://forum.oxid-esales.com/u/MBa)\
**Post date:** [July 28, 2009, 4:39pm UTC](https://forum.oxid-esales.com/t/oxarticle-erweitern-session/38321/2 "2009-07-28T16:39:22Z")

</div>

Warum auch immer 😕 😕  
… jetzt geht’s

---

<div class="post-metadata">

**Author:** ![SubNet-One](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/s/4491bb/32.png) [@SubNet-One](https://forum.oxid-esales.com/u/SubNet-One)\
**Post date:** [March 16, 2011, 10:45am UTC](https://forum.oxid-esales.com/t/oxarticle-erweitern-session/38321/3 "2011-03-16T10:45:30Z")

</div>

Die Lösung ist folgende:

oxbasket muss offensichtlich vor einigen anderen Klassen in der Modul-Liste im Backend eingetragen sein. In meinem Fall war der Übeltäter oxbasketitem. Sobald ich ocbasket =\> … in einer Zeile VOR oxbasketitem =\> … liste, funktioniert die Geschichte.

Also, merke: oxbasket in der ersten Zeile der Module eintragen und alles ist gut 🙂

Ich recherchiere noch, warum das so ist. Wenn ich es herausfinde, füge ich es hier noch als Erklärung hinzu …

---

<div class="post-metadata">

**Author:** ![olg\_2011](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/o/278dde/32.png) [@olg\_2011](https://forum.oxid-esales.com/u/olg_2011)\
**Post date:** [February 21, 2012, 4:14pm UTC](https://forum.oxid-esales.com/t/oxarticle-erweitern-session/38321/4 "2012-02-21T16:14:07Z")

</div>

hallo,

ich versuche auch gerade für ein Modul, welches den Preis verändert, werte über die PersParams mit in den Warenkorb zu geben. Das klappt auch soweit.

Problem ist aber, diese Werte im Warenkorb wieder auszulesen!  
Die Variable ist doch:

```php
[_aPersistentParameters:protected] => Array ( [details] 

```

Wie greife ich im Modul darauf zu?  
Das hier klappt leider nicht:

```php
$aPersParam = oxConfig::getParameter("persparam"); 
$meineVariable = ($aPersParam["details"]);

```

Hat evtl jemand einen Tip?

😃  
[B]habs raus:  
[/B]

```php
$ol_anzahl = $this->getPersparams();
        $ol_preis = $olg_anzahl['details'];

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/system/32/4245_2.png) [@system](https://forum.oxid-esales.com/u/system)\
**Post date:** [July 13, 2026, 7:45pm UTC](https://forum.oxid-esales.com/t/oxarticle-erweitern-session/38321/5 "2026-07-13T19:45:32Z")

</div>


