Fix prezzi pubblici: Premium Light €5/€40, Full €20/€200.

Ripristina le etichette in PriceCatalog usate da prezzi, abbonamento e checkout.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-02 17:17:32 +02:00
parent a5e781729c
commit 62d86d16ec
5 changed files with 14 additions and 12 deletions

View File

@@ -5,8 +5,8 @@ module Billing
DEFAULT_INTERVAL = "yearly"
PRICING = {
"premium_light" => { "yearly" => "39,90/anno", "monthly" => "4,90/mese" },
"premium_full" => { "yearly" => "69,90/anno", "monthly" => "9,90/mese" }
"premium_light" => { "yearly" => "40/anno", "monthly" => "5/mese" },
"premium_full" => { "yearly" => "200/anno", "monthly" => "20/mese" }
}.freeze
class << self

View File

@@ -12,11 +12,11 @@
<% if plan.slug == "free" %>
<div class="plan-price">€0</div>
<% elsif plan.slug == "premium_light" %>
<div class="plan-price" style="color:#e53935">€40/anno</div>
<p style="color:#888;font-size:0.85rem">oppure €5/mese</p>
<div class="plan-price" style="color:#e53935"><%= Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "yearly") %></div>
<p style="color:#888;font-size:0.85rem">oppure <%= Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "monthly") %></p>
<% else %>
<div class="plan-price">€200/anno</div>
<p style="color:#888;font-size:0.85rem">oppure €20/mese</p>
<div class="plan-price"><%= Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "yearly") %></div>
<p style="color:#888;font-size:0.85rem">oppure <%= Billing::Stripe::PriceCatalog.label(plan_slug: plan.slug, interval: "monthly") %></p>
<% end %>
<ul>
<li>Staff trasmissione: <%= plan.max_staff_transmission || "illimitato" %> / anno</li>