Skip to content

Commit

Permalink
Replace broken and DX-incompatible implementation with stub
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesnyder committed Mar 26, 2024
1 parent e486694 commit 719dced
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions jazkarta/shop/cart.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,14 +401,9 @@ def add_item(self, item):
self.save()

def thankyou_message(self):
# @@@ get from setting
thankyou_message_path = 'shop/thank-you'

try:
page = get_site().unrestrictedTraverse(thankyou_message_path)
return page.getText()
except (AttributeError, KeyError):
return ''
# Support for a custom thank-you message, configurable via a setting,
# would be a nice extension here, but it's not implemented currently.
return ""

@property
def ship_to(self):
Expand Down

0 comments on commit 719dced

Please sign in to comment.