Er.Ritesh Posted January 25, 2022 Share Posted January 25, 2022 I am using two different module (kbstorelocatorpickup and DPD France ) for pickup for store location and home delivery. but wenn we enable the DPD France Carriers the kbstorelocatorpickup Carriers store located options is not showing on the checkout page. Please help me how can we resolved this issue. I have moved the both Carrier module into same hook displayBeforeCarrier but it's still not working both on the checkout page so, please help me and share how we will enable both module on checkout page. At a time only one Carrier is Showing on checkout page . Link to comment Share on other sites More sharing options...
ps8modules Posted January 25, 2022 Share Posted January 25, 2022 The second module must be registered as a carrier module. The hook cannot be used. https://devdocs.prestashop.com/1.7/modules/carrier/ Link to comment Share on other sites More sharing options...
Er.Ritesh Posted January 25, 2022 Author Share Posted January 25, 2022 (edited) Thank you for the reply but if we set kbstorelocatorpickup into displayBeforeCarrier and DPD France into displayAfterCarrier then it's also not working is there is any solution for it to enable both modules on the checkout page as a carrier. Edited January 25, 2022 by Er.Ritesh (see edit history) Link to comment Share on other sites More sharing options...
ps8modules Posted January 25, 2022 Share Posted January 25, 2022 I wrote it to you. One module is registered as a carrier and the other is not. I also gave you a link to the explanation. Open both modules (PHP) and look at the class. What you think will not work !!! Link to comment Share on other sites More sharing options...
Er.Ritesh Posted January 25, 2022 Author Share Posted January 25, 2022 Ok got it. Kbstorelocatorpickup : class Kbstorelocatorpickup extends Module { } DPDFrance : class DPDFrance extends CarrierModule{ } but if we change Kbstorelocatorpickup class Module to CarrierModule then Kbstorelocatorpickup module stop working and shows the error on the page. Link to comment Share on other sites More sharing options...
ps8modules Posted January 25, 2022 Share Posted January 25, 2022 Yes, and that's why you need to modify the entire module. If you do not know PHP and do not know Prestashop, hire someone. You must modify the module according to the instructions from the link I gave you. Link to comment Share on other sites More sharing options...
Er.Ritesh Posted January 25, 2022 Author Share Posted January 25, 2022 (edited) Thank you for your reply. I want to modify this module because we need to make both modules workable on the checkout because it client requirements. Let me know only one thing is that possible or not. if yes then how please explain. Edited January 25, 2022 by Er.Ritesh (see edit history) Link to comment Share on other sites More sharing options...
ps8modules Posted January 25, 2022 Share Posted January 25, 2022 (edited) What do you need to explain? Here's how everything is created as a carrier module. https://devdocs.prestashop.com/1.7/modules/carrier/ No one here will edit modules for free !!! https://www.prestashop.com/forums/forum/235-job-offers/ Edited January 25, 2022 by 4you.software (see edit history) 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