OXID Community Forum

> International Forums > Developers > Extending Oxid Shop, adding a table/object like vendor / Erweiterung Oxid, Analog zu Hersteller/Vendor
Login
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread: Extending Oxid Shop, adding a table/object like vendor / Erweiterung Oxid, Analog zu Hersteller/Vendor


Reply
 
Thread Tools Search this Thread Display Modes
#Top   #1  
Old 05-04-2009, 09:30 AM
larryc79 larryc79 is offline
Junior Member
Join Date: Jan 2009
Posts: 25
larryc79 is on a distinguished road
Send a message via Skype™ to larryc79
Default Extending Oxid Shop, adding a table/object like vendor / Erweiterung Oxid, Analog zu Hersteller/Vendor

Hello!

I'm extending the Shop with a table "unit", we need this in the search-function for a wine shop. There's no need to administrateit with oxid, it's automatically imported.

I've already extended many classes and added classes like oxvendor, oxvendorlist, but now I've the problem that in the class "oxcmp_categories_extended" which extends oxcmp_categories in the

function _loadUnitTree the function $this->_oParent->setUnitTree( $oUnitTree );is not found, although I've declared setUnitTree in the class "oxubase_extsearch" which extends oxUBase.

I've seen that "setVendorTree" is declared only in oxUBase, so i extended oxUBase and defined the function"setUnitTree" - but the function is not found (although the extended class is definitely imported).

Is there a need to register this function somewhere so that is is in oxcmp_categories in $this->_oParent??



Thanks for your help!

Chris



---
http://live.w00dy.info @work @ http://www.gugler.at
__________________
-----
Woody @ work @ gugler cross media
Reply With Quote
#Top   #2  
Old 05-04-2009, 05:15 PM
larryc79 larryc79 is offline
Junior Member
Join Date: Jan 2009
Posts: 25
larryc79 is on a distinguished road
Send a message via Skype™ to larryc79
Default Everything allright!

I had to change the file views/oxubase.php and modify the

array _aUserComponentNames

so that it looks like

protected $_aUserComponentNames = array("oxcmp_categories_extended"=>"oxcmp_categori es_extended","oxview_extended"=>"oxview_extended") ;

It works now - after days of studying and searching throught the files ;-)

---
http://live.w00dy.at @work @ http://www.gugler.at
__________________
-----
Woody @ work @ gugler cross media

Last edited by larryc79; 06-29-2009 at 04:43 PM.
Reply With Quote
#Top   #3  
Old 05-05-2009, 02:15 PM
Marco Steinhaeuser's Avatar
Marco Steinhaeuser Marco Steinhaeuser is offline
Community Manager @OXID
Join Date: Oct 2008
Posts: 12,702
Marco Steinhaeuser is on a distinguished road
Default Hey larryc79, thanks for

Hey larryc79,

thanks for your feedback!

__________________
Marco Steinhäuser
Community Guide
OXID eSales AG
http://twitter.com/marcosteinhaeus
__________________
Marco
http://oxidforge.org
http://about.me/marco.steinhaeuser

Will ignore unsolicited support requests via PM, email or IM.
Reply With Quote
#Top   #4  
Old 06-16-2009, 12:49 PM
avenger's Avatar
avenger avenger is offline
Senior Member
Join Date: May 2009
Posts: 2,083
avenger is on a distinguished road
Default AW: Everything allright!

Quote:
Originally Posted by larryc79 View Post
I had to change the file views/oxubase.php and modify the

array _aUserComponentNames

so that it looks like

protected $_aUserComponentNames = array("oxcmp_categories_extended"=>"oxcmp_categori es_extended","oxview_extended"=>"oxview_extended") ;

It works now - after days of studying and searching throught the files ;-)

---
http://live.w00dy.info @work @ http://www.gugler.at
Great Post!

Might help me with a similiar problem I am currently experiencing, will test it tomorrow....

But doesn't this need for modifying this prog blow the concept of being able to modify OXID by extending classes only, and not modifying any shop program?

Wouldn't it make sense to make the protected $_aUserComponentNames atrribute a public attribute, so that it could be set from outside the class code?
__________________


Individuelle und hochwertige OXID 4 Templates und Shop-Erweiterungen gibt es bei http://www.powertemplate.de
  1. Dem Ingeniör ist nichts zu schwör (Daniel Düsentrieb, 1952)
  2. Geht nicht, gibt's nicht.
  3. Was nicht passt, wird passend gemacht
Weitere Informationen zum powertemplate.de Angebotsspektrum unter http://www.shopplaner.de
Reply With Quote
#Top   #5  
Old 06-17-2009, 05:48 AM
avenger's Avatar
avenger avenger is offline
Senior Member
Join Date: May 2009
Posts: 2,083
avenger is on a distinguished road
Default AW: Everything allright!

Quote:
Originally Posted by larryc79 View Post
I had to change the file views/oxubase.php and modify the

array _aUserComponentNames

so that it looks like

protected $_aUserComponentNames = array("oxcmp_categories_extended"=>"oxcmp_categori es_extended","oxview_extended"=>"oxview_extended") ;

It works now - after days of studying and searching throught the files ;-)

---
http://live.w00dy.info @work @ http://www.gugler.at
Shouldn't this rather be

Code:
protected $_aUserComponentNames = array(
"oxcmp_categories_extended"=>1,
"oxview_extended"=>1
) ;
????

Because this array is merged with

Code:
    protected $_aComponentNames = array(
                                    'oxcmp_user'       => 1, // 0 means dont init if cached
                                    'oxcmp_lang'       => 1,
                                    'oxcmp_cur'        => 1,
                                    'oxcmp_shop'       => 1,
                                    'oxcmp_categories' => 0,
                                    'oxcmp_utils'      => 1,
                                    'oxcmp_news'       => 0,
                                    'oxcmp_basket'     => 1
                                  );
__________________


Individuelle und hochwertige OXID 4 Templates und Shop-Erweiterungen gibt es bei http://www.powertemplate.de
  1. Dem Ingeniör ist nichts zu schwör (Daniel Düsentrieb, 1952)
  2. Geht nicht, gibt's nicht.
  3. Was nicht passt, wird passend gemacht
Weitere Informationen zum powertemplate.de Angebotsspektrum unter http://www.shopplaner.de
Reply With Quote
Reply

Bookmarks

Tags
adding, analog, erweiterung, extending, hersteller or vendor, shop, table or object, vendor

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Nicht Sichtbar
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
possibility to enter product seo data for category, vendor (etc.) will be removed Firefax Entwickler 7 05-19-2010 04:10 PM
Question for the OXID developers (superfluous redirect after adding an article to the cart) avenger Developers 1 05-03-2010 07:01 AM
Vendor, Manufactor, Categorie in product.tpl anzeigen lassen jaydee72 Templates und Design 5 01-08-2010 08:41 AM
Hersteller-Seiten: in Oxid oder auf Extra-Seiten rhine_wine Templates und Design 2 03-24-2009 04:28 PM
Bug OXID eShop 4.0.0.2-14967 - Adding multi-lingual Media URLS RicoZM Installation and configuration 2 01-13-2009 08:20 AM

All times are GMT +1. The time now is 09:47 PM.