View Issue Details

IDProjectCategoryView StatusLast Update
0000984OXID eShop (all versions)4.07. Source code, Testpublic2012-12-10 13:45
Reportertjungcl Assigned To 
PriorityurgentSeverityblockReproducibilityalways
Status resolvedResolutionunable to reproduce 
Product Version4.1.2 revision 18998 
Fixed in Version4.1.3 revision 19918 
Summary0000984: oxbasket not extendable
DescriptionI searched the bugtracker and already found two reports concerning this matter, nearly a year old. The have status "fixed".

However in version 4.1.2 it seems still (or again) to be impossible to extend oxbasket. There is no crash or error, though. Any module extending oxbasket is just not loaded.
Additional InformationI need to extend oxbasket with a simple dateproperty:
A quickfix/workaround would be very appreciated...

class customBasket extends customBasket _parent
{
    protected $_sPDDate; //preferred delivery date
    public function setPDDate($sPDDate){
        $this->_sPDDate = $sPDDate;
    }
    public function getPDDate(){
        return $this->_sPDDate;
    }
}

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

Activities

sarunas_valaskevicius

2009-06-09 10:31

reporter   ~0001033

Last edited: 2009-06-09 10:33

Reminder sent to: tjungcl

Hi,

used your example as a basis, also added

    public function calculateBasket( $blForceUpdate = false ){
        echo "
  • CUSTOM BASKET";
            return parent::calculateBasket( $blForceUpdate);
        }

    function for debugging. (And changed "customBasket _parent" to customBasket_parent [removed space]).

    1. copy this file to modules/myname/customBasket.php
    2. enable it in admin by adding "oxbasket => myname/customBasket" line
    3. clear cookies in browser you are testing the shop. (or open new browser where no session is yet opened)

    using these steps it loaded custom basket class correctly (browsing through shop and ordering also works)

  • tjungcl

    2009-06-09 11:55

    reporter   ~0001035

    ok, sorry - my fault...

    The space was just a typo in this form, so that wasnt it, but
    i did delete /tmp and reloaded, but did not delete the session.

    Works fine know, thank you