ComicWisdom Posted October 11, 2006 Posted October 11, 2006 Could someone tell me what I don't understand? I am trying to cob a storelocation module out of the payment module. In the payment module are the following lines which I have used as a template: // load all enabled payment modules require(DIR_WS_CLASSES . 'payment.php'); $payment_modules = new payment; and later $selection = $payment_modules->selection(); I have converted them into this for my storelocation module: // load all enabled storelocation modules require(DIR_WS_CLASSES . 'storelocation.php'); $storelocation_modules = new storelocation; and later $selection = $storelocation_modules->selection(); In the payment module they run fine. In the store location module the line "$selection = $storelocation_modules->selection(); " gives me a: "Fatal error: Call to undefined function: selection() in catalog/checkout_storelocation.php on line 223" Is there someone who can just tell me "why??" Just between us, remember there are only 10 kinds of people in the world; those who understand binary and those who don't!! Remember, learning is a "do-it-yourself" experience; although, not necessarily a "do-it-BY-yourself" experience. The quickest way to learn is to forget to BACKUP!
Guest Posted October 11, 2006 Posted October 11, 2006 You must've have created a selection() method for your new storelocation class. Have a look in the payment class definition (in classes/payment.php) for an idea of how to do this.
ComicWisdom Posted October 11, 2006 Author Posted October 11, 2006 You must've have created a selection() method for your new storelocation class. Have a look in the payment class definition (in classes/payment.php) for an idea of how to do this. Tnak you. I'm at work on it now!!!!! :D Just between us, remember there are only 10 kinds of people in the world; those who understand binary and those who don't!! Remember, learning is a "do-it-yourself" experience; although, not necessarily a "do-it-BY-yourself" experience. The quickest way to learn is to forget to BACKUP!
Guest Posted October 11, 2006 Posted October 11, 2006 You must've have created a selection() method for your new storelocation class. Oops, "must've" = "mustn't have" :blush: :)
squeekit Posted October 11, 2006 Posted October 11, 2006 ComicWisdom, just to clarify... before i jump in to examine: you actually want a customer to be able to "select" a store location?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.