-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- friendly error for invalid max_sales_per_txn - admin should see min/max purchase info for BOGO tix on storefront - regular patron never sees "NNN available": if zero available due to min purchase > actual avail, just show "no tickets of this type available"
- Loading branch information
1 parent
5121e44
commit 91af572
Showing
4 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ | |
- num_allowed = v.min_and_max_sales_for_this_txn(max_choices = 20) | ||
= select_tag(fieldname, options_for_select(num_allowed), 'data-price' => v.price, 'data-zone' => v.zone_short_name, :class => "itemQty #{ticket_class} form-control form-control-sm col-sm-1") | ||
- if num_allowed.last.zero? | ||
%span.text-info.col-sm-7.border.border-danger.s-explain= v.explanation | ||
%span.text-info.col-sm-7.border.border-danger.s-explain No seats remaining for tickets of this type | ||
= hidden_field_tag "price[#{v.id}]", v.price, {:id => "valid_voucher_#{v.id}_price"} | ||
|
||
- if ! @store.valid_vouchers.empty? && [email protected]? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters