Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unneeded ajax calls in checkout page #360

Closed
tienvx opened this issue Jan 22, 2013 · 1 comment
Closed

Unneeded ajax calls in checkout page #360

tienvx opened this issue Jan 22, 2013 · 1 comment

Comments

@tienvx
Copy link

tienvx commented Jan 22, 2013

Unneeded ajax calls in checkout page

Requires:
a. open firefox.
b. install firebug.
c. open firebug and goto console tab.
d. open opencart store
e. create brand-new account
f. logout (if logged in)

Reproduce:

  1. Add items to cart.
  2. Go to checkout page.
  3. (Step 1: Checkout Options) fills in valid email and password of above account, click Login button.
    • expected: 2 ajaxes called:
      * checkout/payment_address
      * checkout/checkout/country&country_id=222
    • actual: as expected.
  4. (Step 2: Billing Details) Select payment address and click Continue button.
    • expected: 3 more ajaxes called:
      * checkout/payment_address/validate
      * checkout/shipping_address
      * checkout/checkout/country&country_id= 230
    • actual: 5 more ajaxes called:
      * checkout/payment_address/validate
      * checkout/shipping_address
      * checkout/payment_address
      * checkout/checkout/country&country_id= 230
      * checkout/checkout/country&country_id= 230
  5. (Step 3: Delivery Details) Select shipping address and click Continue button.
    • expected: 2 more ajaxes called:
      * checkout/shipping_address/validate
      * checkout/shipping_method
    • actual: 6 more ajaxes called:
      * checkout/shipping_address/validate
      * checkout/shipping_method
      * checkout/payment_address
      * checkout/shipping_address
      * checkout/checkout/country&country_id= 230
      * checkout/checkout/country&country_id= 230
  6. (Step 4: Delivery Method) select shipping method and click Continue button.
    • expected: 2 more ajaxes called:
      * checkout/shipping_method/validate
      * checkout/payment_method
    • actual: as expected
  7. (Step 5: Payment Method) select payment method, tick checkbox (I have read and agree to the Terms & Conditions) and click Continue button.
    • expected: 2 more ajaxes called:
      * checkbox/payment_method/validate
      * checkbox/confirm
    • actual: as expected
  8. (Step 6: Confirm Order) click confirm order.

Sorry my bad english!

@opencart
Copy link
Collaborator

yes because when you add a new payment address it needs to update the 2 other payment addresses sections to include them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant