coopsoc / website

https://coopsoc.com.au
7 stars 5 forks source link

Remove merch 2024 #77

Closed scorpiontornado closed 4 months ago

scorpiontornado commented 4 months ago

Added a boolean function + conditional rendering to disable the merch store. Also refactored the merch.ts functions, particularly by making the cents field of Price non-optional. I also used a map for fast price lookup. Finally, fixed a bug related to pagination, where all crewnecks (but one?) were displaying a price of 0 when in the cart. This only happened to the last page of products (as viewed in the stripe dashboard), prompting the look into pagination.

scorpiontornado commented 4 months ago

Couldn't get /checkout/return working with the conditional rendering, gave up cause unimportant