View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000984 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2009-06-08 13:51 | 2012-12-10 13:45 |
Reporter | tjungcl | Assigned To | |||
Priority | urgent | Severity | block | Reproducibility | always |
Status | resolved | Resolution | unable to reproduce | ||
Product Version | 4.1.2 revision 18998 | ||||
Fixed in Version | 4.1.3 revision 19918 | ||||
Summary | 0000984: oxbasket not extendable | ||||
Description | I 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 Information | I 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; } } | ||||
Tags | No tags attached. | ||||
Theme | |||||
Browser | All | ||||
PHP Version | 5.2.6 | ||||
Database Version | 5.0.33 | ||||
|
Reminder sent to: tjungcl Hi, used your example as a basis, also added public function calculateBasket( $blForceUpdate = false ){ echo " 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) |
|
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 |