Add "One-step Checkout" functionality (Modern Store theme only)

Components

Labels

Description

Create event, that will validate whole order at once and create/login user in the middle of that

http://dev.intechnic.com/new_in-commerce_theme/index.php?design=checkout2.jpg

[B]NOTES:/B

  • Implement using 5.1.x

  • Attach Patch here.

Context Information

None

Additional information (do not use)

1. create ord:OnGetPaymentGatewayAjax event, that will return: - 1 h

  • a set of hidden fields to be placed on form (tag ord:GetFormHiddenFields does that)

  • form submit url (tag ord:GetFormAction does that)

2. on payment gateway change (e.g. PayPal button is clicked): - 0.5 h

  • remove all hidden fields with "payment-gw-field" class from the form

  • add hidden fields (if any returned) retrieved from ord:OnGetPaymentGatewayAjax event (also set "payment-gw-field" HTML class to added hidden fields)

  • change form action url to the one, returned by ord:OnGetPaymentGatewayAjax event

3. when shipping address fields are changed then (they all are filled-in) retrieve dropdown (call to new "checkout/shipping_type" template) for given order - 0.5 h

4. when "same as billing" is checked and user is entering billing address, then instantly copy that address to shipping address fields (that will be hidden at the moment) and trigger shipping address change code (#3) - 0.2 h

5. when when "same as billing" is checked/unchecked then trigger shipping address change code (#3) - 0.2 h

6. if no shipping types can be found based on entered address then create "fake shipping type dropdown" with "Please enter address" option selected - 0.5 h

7. update "shipping cost" and "order total" totals (without ajax query) when shipping cost is changed - 0.1 h

8. when no shipping types available then set "shipping cost" to 0 and update "order total" accordingly - 0.5 h


3.5 h

Activity

Show:

Alex July 25, 2012 at 10:32 AM

Since 5.2.0 version was released.

Alex December 5, 2011 at 3:59 PM

Will test all together.

Alex December 5, 2011 at 3:59 PM

done

Alex December 2, 2011 at 5:06 PM

done, only left part is user auto creation (when password is filled)

Fixed

Details

Priority

Assignee

Reporter

Developer

Change Log Group

Added

Change Log Message

Patch Instructions

Patches must be submitted through Phabricator.

External issue ID

External issue URL

Story Points

Fix versions

Created September 27, 2011 at 11:57 AM
Updated December 30, 2024 at 2:23 AM
Resolved July 25, 2012 at 10:32 AM