OFBiz
  1. OFBiz
  2. OFBIZ-1462 One Page Checkout Process implemented in ecommerce
  3. OFBIZ-1871

Implement an Autocomplete feature on country and state fields on Step 2 Shipping Information - One Page Checkout

    Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    1. AutoCompleter_OnePage_Shipping.patch
      15 kB
      Rishi Solanki
    2. AutoCompleter_OnePage_Shipping.patch
      15 kB
      Sumit Pandit
    3. AutoCompleter_Shipping_2.png.tar.gz
      81 kB
      Rishi Solanki
    4. AutoCompleter_Shipping_1.png.tar.gz
      82 kB
      Rishi Solanki
    5. AutoCompleter_OnePage_Shipping.patch
      16 kB
      Rishi Solanki

      Activity

      Hide
      Rishi Solanki added a comment -

      Here is the patch which enable Auto Completer in One Page checkout in the Shipping panel.

      Also Screen Shots of the UI is attached with the patch.

      Thanks and Regards
      [Rishi Solanki]

      Show
      Rishi Solanki added a comment - Here is the patch which enable Auto Completer in One Page checkout in the Shipping panel. Also Screen Shots of the UI is attached with the patch. Thanks and Regards [Rishi Solanki]
      Hide
      Sumit Pandit added a comment -

      I have tested the patch and found some minor changes. After discussion with Rishi we did changes in it. Here is the updated patch for the same.

      Show
      Sumit Pandit added a comment - I have tested the patch and found some minor changes. After discussion with Rishi we did changes in it. Here is the updated patch for the same.
      Hide
      Vikas Mayur added a comment -

      Good work !

      But I would like to suggest two changes namely:
      1) Service definition, implementations and JS can go to Party component as this feature can be extended to back end where ever possible
      2) If I am not wrong, the list of states and country are fetched so the name of service / requests should be like getStateOptions and not setStateOptions

      • Vikas
      Show
      Vikas Mayur added a comment - Good work ! But I would like to suggest two changes namely: 1) Service definition, implementations and JS can go to Party component as this feature can be extended to back end where ever possible 2) If I am not wrong, the list of states and country are fetched so the name of service / requests should be like getStateOptions and not setStateOptions Vikas
      Hide
      Rishi Solanki added a comment -

      Hello Vikas,
      Here is the updated patch for the same, I have done changes as per your suggession.

      Thanks and Regads
      [Rishi Solanki]

      Show
      Rishi Solanki added a comment - Hello Vikas, Here is the updated patch for the same, I have done changes as per your suggession. Thanks and Regads [Rishi Solanki]
      Hide
      Vikas Mayur added a comment -

      Thanks to Rishi Solanki, Sumit Pandit and others,
      Patch with few modifications is in trunk rev. 675934

      • Vikas
      Show
      Vikas Mayur added a comment - Thanks to Rishi Solanki, Sumit Pandit and others, Patch with few modifications is in trunk rev. 675934 Vikas
      Hide
      Jacques Le Roux added a comment -

      I just tried the feature.

      DemoCustomer tel # does not appear by default in one page checkout though he has one in DemoOrderPeopleData.xml,
      Same for admin but got also
      Simple Map Processing error occurred, but no message was found, sorry.
      As I tried this on demo server I did not look into details but State should not be required for countries like France where there are not states

      The looks is simple and nice, bravo !

      Show
      Jacques Le Roux added a comment - I just tried the feature. DemoCustomer tel # does not appear by default in one page checkout though he has one in DemoOrderPeopleData.xml, Same for admin but got also Simple Map Processing error occurred, but no message was found, sorry. As I tried this on demo server I did not look into details but State should not be required for countries like France where there are not states The looks is simple and nice, bravo !
      Hide
      Jacques Le Roux added a comment - - edited

      I did not care : the 1st comment should be in the hat issue. I put it.

      Show
      Jacques Le Roux added a comment - - edited I did not care : the 1st comment should be in the hat issue. I put it.
      Hide
      Vikas Mayur added a comment -

      Hi Jacques,

      1) The purpose of the phone created from One Page is kept as PRIMARY_PHONE, this is the reason it does not appear by default in case of DemoCustomer.
      2) Keeping state not required is a good option. I think this is how it was implemented in other checkouts with states required only for USA and Canada.
      This will require changes to Java Script and events in general. Thanks for pointing out it - as we missed it completely.

      • Vikas
      Show
      Vikas Mayur added a comment - Hi Jacques, 1) The purpose of the phone created from One Page is kept as PRIMARY_PHONE, this is the reason it does not appear by default in case of DemoCustomer. 2) Keeping state not required is a good option. I think this is how it was implemented in other checkouts with states required only for USA and Canada. This will require changes to Java Script and events in general. Thanks for pointing out it - as we missed it completely. Vikas
      Hide
      Jacques Le Roux added a comment -

      Hi Vikas,

      OK, thanks for comment.

      Show
      Jacques Le Roux added a comment - Hi Vikas, OK, thanks for comment.
      Hide
      Vikas Mayur added a comment -

      This issue has been resolved in earlier commits.

      Demo data for DemoCustomer has been added in rev 692448 and later on in rev. 692448 with a small fix. This way now DemoCustomer party can be used to perform one page checkout.

      Vikas

      Show
      Vikas Mayur added a comment - This issue has been resolved in earlier commits. Demo data for DemoCustomer has been added in rev 692448 and later on in rev. 692448 with a small fix. This way now DemoCustomer party can be used to perform one page checkout. Vikas

        People

        • Assignee:
          Vikas Mayur
          Reporter:
          Vikas Mayur
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development