Jump to content

New module development - Carrier for client specified store collection


IronSwalt

Recommended Posts

Hi there friends,

I’m in the process of writing a new module which will add a new “Collect In Store” carrier to a shop. The user can then select which existing store to collect from. I am aware of a number of addons that fulfil this requirement, however I can’t justify the price for such a simple requirement. Also – I want to learn how to write modules. :)

I’ve attached a screenshot of a mocked up screen of step 4 (shipping) of the check-out process. This is where the new drop-down box in that will be shown. Only existing stores will be shown in the drop down.

Please confirm my design thoughts for the first few steps (as I code I’ll get more questions ;)):

  1. I've followed this tutorial to get a basic carrier module working. I've installed it on my site and I can see the carrier.
  2. I will add a new field called id_store in the database table ps_order_carrier which references the same field in table ps_store. This will be done via the install (and conversely uninstall) methods. Nice tip found here by vblanch.

 

What are the next steps? How do I get the dropdown on the screen?

 

Any advice would be greatly appreciated.

 

Best regards,

IronSwalt

post-1039076-0-06747400-1439305124_thumb.png

Edited by IronSwalt (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...