DeeMcCart / CI_PP5_Jeweller

Jewellery website for CI Project 5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Task/Bug: Order total is saved to table as 0

DeeMcCart opened this issue · comments

EPIC: #16

This issue created to close out parent issue #19

Assumptions or Pre-Requisites:

  • Basket-checkout -Stripe- Order flow is otherwise working #19

Acceptance Criteria: (Must be completed before task is moved to 'Done')

  • Must see correct order total (as verified by Stripe) on Orders table

Tasks

  • Task1 Investigate
  • Task2 Compare PP5 Jeweller to Deirdre's Boutique Ado to see if there is a visible difference
  • Task3 Resolve
  • Task4 Test

Before changing task status to 'Review' or 'Done' please provide comment (and screenprints if appropriate) as documentary evidence of task completion

06/02/24 DMcC: OK this boiled down to a missing entry in checkout/apps.py:
class CheckoutConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'checkout'

**def ready(self):
    import checkout.signals**

Order is confirmed with a total value:
Image

And this is consistent with the value in Stripe:
Image