Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions Controllers/CureController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ public async Task<IActionResult> RegistrationForm(Guid? regId)
try
{
ticketInventory = await _inventoryService.GetItemInventoryAsync("CURE 2026 Ticket");
addonInventory = await _inventoryService.GetItemInventoryAsync("CURE 2026 Addon");
ViewBag.TicketInventory = ticketInventory;
ViewBag.Addon = addonInventory.First();
}
catch (InventoryException e)
{
Expand Down Expand Up @@ -143,8 +141,6 @@ public async Task<IActionResult> RegistrationForm(Guid? regId)
new SelectListItem("Not Staying in Host Hotel", "Not Staying in Host Hotel"),
];

List<InventoryItem> _addons = addonInventory;
ViewBag.Addon = _addons.First();
ViewBag.TicketInventory = ticketInventory;
ViewBag.IsUpdating = true;

Expand Down Expand Up @@ -200,8 +196,6 @@ public async Task<IActionResult> RegistrationForm(Guid? regId)
new SelectListItem("Not Staying in Host Hotel", "Not Staying in Host Hotel"),
];

List<InventoryItem> addons = addonInventory;
ViewBag.Addon = addons.First();
ViewBag.TicketInventory = ticketInventoryList;
ViewBag.IsUpdating = false;

Expand Down Expand Up @@ -229,10 +223,6 @@ public async Task<IActionResult> RegistrationForm(RegistrationViewModel registra
// return View(registrationData);
// }

if (registrationData.HasMealAddon == true)
{
registrationData.MealAddon = await _inventoryService.GetAddonItemAsync();
}

var registrations = _registrationSessionService.Registrations;

Expand Down Expand Up @@ -367,12 +357,6 @@ public async Task<IActionResult> RegistrationPayment()
priceCheck -= r.TicketComp.CompAmount;
r.Price -= (double)r.TicketComp.CompAmount;
}

if (r.MealAddon is not null)
{
priceCheck += r.MealAddon.PriceInDollars;
r.Price += (double)r.MealAddon.PriceInDollars;
}
}

if (priceCheck <= 0)
Expand Down
1 change: 0 additions & 1 deletion Helpers/CureRegistrationHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public static void WriteNonPaymentTickets(KiCdbContext ctx, List<RegistrationVie

ticket.DatePurchased = DateOnly.FromDateTime(DateTime.Today);
ticket.Type = rvm.TicketType;
ticket.HasMealAddon = rvm.HasMealAddon;

member.City = rvm.City;
member.DateOfBirth = rvm.DateOfBirth;
Expand Down
2 changes: 1 addition & 1 deletion Views/Cure/CardSuccess.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<div class="row" style="display: flex; gap: 2rem; justify-content: center;">
<div class="container col-4" style="min-width: 180px;">
<p><b>Event Merch!</b></p>
<a class="button" href="https://google.com" target="_blank">Merch Store</a>
<a class="button" href="https://kic-events.square.site/shop/apparel/GC4LGESG3OVGP6H7PHDCO6PY?page=1&limit=30&sort_by=category_order&sort_order=asc&location_id=11eed41d458ab138b9b13cecef6dbae8" target="_blank">Merch Store</a>
</div>
<div class="container col-4" style="min-width: 180px;">
<p><b>Join the Discord</b></p>
Expand Down
3 changes: 2 additions & 1 deletion Views/Cure/Registration.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@
<li>Offers a chance to mingle with our incredible presenters in a more personal, conversational setting - no microphones, no presentations, just real people connecting over shared passions.</li>
<li>Seated, social experience designed to nourish both your appetite and your curiosity.</li>
<li>Limited capacity, included with the Gold Ticket Option</li>
<li><a class="button button--secondary" href="https://square.link/u/vFNyf7KK">Purchase Here</a></li>
</ul>
<li><b>Merchandise</b></li>
<ul>
<li>CURE branded T-shirts, Hoodies, and Zip Ups</li>
<li>LINK COMING SOON!</li>
<li><a class="button button--secondary" href="https://kic-events.square.site/shop/apparel/GC4LGESG3OVGP6H7PHDCO6PY?page=1&limit=30&sort_by=category_order&sort_order=asc&location_id=11eed41d458ab138b9b13cecef6dbae8">Merch</a></li>
@*add link to merch*@
</ul>
</ul>
Expand Down
21 changes: 0 additions & 21 deletions Views/Cure/RegistrationForm.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -221,27 +221,6 @@
}
</div>

@*Add addon*@
<div class="field" id="decadent-delights-selection">
<label asp-for="HasMealAddon"></label>
<p>Select here if you would like to add on this Friday VIP exclusive opportunity to mingle with our presenters with a Buffet style dinner. Limited capacity and already included with the Gold Ticket Option. - @ViewBag.AddOn.PriceInDollars.ToString("C")</p>
@if(ViewBag.AddOn.Stock > 0){
<div class="radio">
<input type="checkbox" name="HasMealAddon" asp-for="HasMealAddon" />
</div>
}
@if(ViewBag.AddOn.Stock == 0){
<div class="radio">
<input type="checkbox" name="HasMealAddon" asp-for="HasMealAddon" disabled />
<span>SOLD OUT</span>
</div>
}
</div>
<div class="field hidden" id="decadent-delights-gold">
<label asp-for="HasMealAddon"></label>
<p>Lucky you. Your gold ticket includes the Decadent Delights add-on. Decadent Delights is an exclusive VIP opportunity to mingle with our presenters with a Buffet style dinner on Friday of the convention.</p>
</div>

@* If RegId is set, show the "Update" button *@
@if (ViewBag.IsUpdating)
{
Expand Down
6 changes: 0 additions & 6 deletions Views/Cure/RegistrationPayment.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@
<p>Pronouns: @item.Pronouns</p>
}

@if (item.HasMealAddon == true)
{
decimal mealPrice = (decimal)@item.MealAddon.PriceInDollars;
<p>Decadent Delights - @mealPrice.ToString()</p>
}

<p>Room Type: @item.RoomType</p>

<div class="cure-payment__ticket-actions">
Expand Down