Aggiunge la garanzia Soddisfatti o rimborsati di 30 giorni su prezzi, homepage e Termini.

Riduce il rischio percepito all'acquisto (Light e Full) e chiama l'archivio replay in modo orientato all'utente, senza cambiare prezzi o logica dei piani.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-31 19:27:28 +02:00
co-authored by Cursor
parent 1185d0ce61
commit 356aa28fad
30 changed files with 441 additions and 17 deletions
+12 -1
View File
@@ -1,4 +1,4 @@
<%# locals: (club: nil, entitlements: nil, subscription: nil, current_plan_slug: nil, show_stripe_portal: false) %>
<%# locals: (club: nil, entitlements: nil, subscription: nil, current_plan_slug: nil, show_stripe_portal: false, show_guarantee_banner: nil) %>
<% club ||= @club %>
<% entitlements ||= @entitlements %>
<% subscription ||= @subscription %>
@@ -69,6 +69,9 @@
<% if plan.slug == "premium_full" %>
<p class="plan-staff-note"><%= t("pages.plans.staff_note_full") %></p>
<% end %>
<% first_purchase = !billing_mode || action&.fetch(:kind, nil).in?(%i[checkout_options bank_only quoted]) %>
<% show_cta_guarantee = plan.slug.in?(%w[premium_light premium_full]) && first_purchase %>
<div class="plan-card__cta">
<% if billing_mode %>
<% action_kind = action[:kind] %>
<% quote = club&.active_billing_quote %>
@@ -131,6 +134,14 @@
<% end %>
</div>
<% end %>
<% if show_cta_guarantee %>
<%= render "shared/refund_guarantee", variant: "compact" %>
<% end %>
</div>
</div>
<% end %>
</div>
<% if local_assigns.fetch(:show_guarantee_banner) { !billing_mode || current_slug.to_s == "free" } %>
<%= render "shared/refund_guarantee", variant: "pricing" %>
<% end %>
@@ -0,0 +1,35 @@
<%# locals: (variant: "pricing") %>
<% variant = local_assigns.fetch(:variant, "pricing").to_s %>
<% if variant == "pricing" %>
<aside class="refund-guarantee refund-guarantee--pricing" aria-label="<%= t("guarantee.aria_pricing") %>">
<span class="refund-guarantee__icon" aria-hidden="true">
<i class="fa-solid fa-shield-halved"></i>
</span>
<div class="refund-guarantee__copy">
<p class="refund-guarantee__title">
<%= t("guarantee.title") %><span class="refund-guarantee__kicker"> · <%= t("guarantee.kicker_days") %></span>
</p>
<p class="refund-guarantee__subtitle"><%= t("guarantee.subtitle") %></p>
<p class="refund-guarantee__body"><%= t("guarantee.body") %></p>
<p class="refund-guarantee__more">
<%= link_to t("guarantee.learn_more"), public_faq_path(anchor: "faq-garanzia"), data: { mltv_event_click: "guarantee_learn_more" } %>
</p>
</div>
</aside>
<% elsif variant == "compact" %>
<p class="refund-guarantee refund-guarantee--compact">
<i class="fa-solid fa-shield-halved" aria-hidden="true"></i>
<span><%= t("guarantee.compact") %></span>
</p>
<% elsif variant == "cta" %>
<p class="refund-guarantee refund-guarantee--cta">
<i class="fa-solid fa-shield-halved" aria-hidden="true"></i>
<span><%= t("guarantee.home_note") %></span>
</p>
<% elsif variant == "checkout" %>
<div class="refund-guarantee refund-guarantee--checkout">
<i class="fa-solid fa-shield-halved" aria-hidden="true"></i>
<p><%= t("guarantee.checkout") %></p>
</div>
<% end %>