Post by jokerdes » Wed Jul 03, 2013 11:34 pm

Hi,

Please help me how to add a textfield to the flat shipping module. (or a select options field).
I'd like to do a Jquery based autocomplete searching within the textfield.
but i cannot figure out how to add a textfield (or any select element) to a shipping module.

thanks in advance
jokerdes

Newbie

Posts

Joined
Wed Jul 03, 2013 11:26 pm

Post by Johnathan » Fri Jul 05, 2013 10:39 pm

What are you trying to accomplish? If you want different shipping methods to be selectable, you just need to create multiple options for the shipping extension. For example, take a look at my tutorial on how to do this with the built-in Weight Based Shipping:

http://www.opencartnews.com/tutorials/h ... lat-rates/

Otherwise, you can use the "Comments" field if you just need additional information from a customer.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by jokerdes » Sat Jul 06, 2013 1:49 pm

thanks for your reply.
i'd like to modify for example flat shipping module. Under the module i need a field : pickup from post office.
user could select from offices list to pickup the package.

but the comment field is global. if the user select other shipping method, there is no need to the post offices list.

Newbie

Posts

Joined
Wed Jul 03, 2013 11:26 pm

Post by Johnathan » Sat Jul 06, 2013 9:59 pm

If you need a dropdown select box, you'll need to get an extension to do that. Try searching the opencart.com extension store

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 1 guest