beso Posted April 3, 2016 Share Posted April 3, 2016 I'm not a pro in the "php" and I cann't find class "PaymentModule" (BankWire extends PaymentModule). "PaymentModule" and "PaymentModulecore"(clsses/PaymentModule.php) is the same? Link to comment Share on other sites More sharing options...
selectshop.at Posted April 3, 2016 Share Posted April 3, 2016 If there is an extend, than you should find the file on folder /overrides/classes core files you will find in /classes/ Link to comment Share on other sites More sharing options...
beso Posted April 4, 2016 Author Share Posted April 4, 2016 than you selectshop.at than you ndiaga but i still can't find class "PaymentModule". is It somehow interrelated with "cache/class_index.php" and "PrestaShopAutoload::load($classname)"(/classes/PrestaShopAutoload.php)? Link to comment Share on other sites More sharing options...
selectshop.at Posted April 4, 2016 Share Posted April 4, 2016 What exactly are you trying to do ? It is a bug showing on top of page? /cache are cached pages. There are several /cache folders on Prestashop (also on /classes folder). Please write the complete message you are having or take a look into your themes folder /themes/yourtheme/cache (but I think there you will not find it). Link to comment Share on other sites More sharing options...
beso Posted April 4, 2016 Author Share Posted April 4, 2016 I want to to remake the the bankwir module under my own way and trying to find the classes and methods used in this module. I'm doing right? is there an easier way? Link to comment Share on other sites More sharing options...
bellini13 Posted April 4, 2016 Share Posted April 4, 2016 well it depends on what you mean by 'remake'. What are you trying to do? Link to comment Share on other sites More sharing options...
beso Posted April 4, 2016 Author Share Posted April 4, 2016 (edited) 'remake' change ./override only many empty index.php files nothing special Edited April 4, 2016 by beso (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted April 6, 2016 Share Posted April 6, 2016 well until you can provide more details on what you are trying to accomplish, I don't think you are going to get the support you are looking for. you are being to vague in what you are doing. The PaymentModule class is located in a file named PaymentModule.php. PaymentModule.php is located in the classes folder Link to comment Share on other sites More sharing options...
beso Posted April 8, 2016 Author Share Posted April 8, 2016 (edited) I want to create a very simple module, an interface that will be displayed where "bankwire" and "cash on delivery" in the front office. from this module some data (id product, price ...) will sent to another page, for example a commercial bank payment page. I made a "template module" with the help of https://validator.prestashop.com/auth/login and began to investigate. I stumbled upon a class "PaymentModul" this class is "parrent" class for "bankwire" and for my template module, but I can not find it in the Root / class / paymentModule.php. instead of class "PaymentModule" there is class "PaymentModuleCore"; Edited April 8, 2016 by beso (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted April 8, 2016 Share Posted April 8, 2016 they are the same. what exactly is your question 1 Link to comment Share on other sites More sharing options...
beso Posted April 9, 2016 Author Share Posted April 9, 2016 bellini13 thank you! that was my question Link to comment Share on other sites More sharing options...
bellini13 Posted April 9, 2016 Share Posted April 9, 2016 In order to support the class/controller override feature in Prestashop, they decided to add Core to the end of the class names. So the PaymentModule core class is actually named PaymentModuleCore. Then if this class were to be extended as an override, the overriden class name would be PaymentModule. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now