Try the Demo

Magento Forum

   
Custom Model? 
 
kla0005
Member
 
Total Posts:  40
Joined:  2011-10-05
 

Hey Guys,

I need to make somekind-of-custom Class that I can use on ANYPAGES! Total in cart, on frontpage, view file in Categories/Products, and so on.

How can I make such a model? And how should I initialite it?

Its a kind of static one I need, with some simple functions like: loadProduct($prodId), and getShipmentPrice() and stuff.

Very simple kinda, but is it simple to make it?

Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Siggi_Schmitz
Guru
 
Avatar
Total Posts:  515
Joined:  2011-07-03
 

Sure, make an own extension with an own model...and on every site you can call your model, for example with

Mage::getModel(’youmodule/modelname)->getStuff()

 Signature 

Magento Freelancer.

Need an extension? Feel free to contact me!

Web: http://www.sig-tec.de
E-Mail:
Skype: sig-tec
Xing: https://www.xing.com/profile/Siegfried_Schmitz2
Profil auf freelance.de
Profil auf freelancermap.de

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top