final prcing fixes

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-13 21:12:36 +00:00
parent 75706e8b05
commit c51270a3be
7 changed files with 129 additions and 49 deletions

View File

@@ -19,6 +19,7 @@ interface Plan {
name: string;
slug?: string;
price: number | string;
original_price?: number | string;
annual_discount_percent?: number;
is_featured?: boolean;
max_sites?: number;
@@ -69,9 +70,11 @@ const convertToPricingPlan = (plan: Plan): PricingPlan => {
return {
id: plan.id,
slug: plan.slug,
name: plan.name,
monthlyPrice: monthlyPrice,
price: monthlyPrice,
originalPrice: plan.original_price ? (typeof plan.original_price === 'number' ? plan.original_price : parseFloat(String(plan.original_price))) : undefined,
annualDiscountPercent: plan.annual_discount_percent || 15,
period: '/month',
description: description,
@@ -206,7 +209,7 @@ const Pricing: React.FC = () => {
<style>{`
/* Pricing Table Component Styles - Embedded for Marketing Site */
.pricing-table-wrapper {
max-width: 1560px;
max-width: 1660px;
margin: 0 auto;
}
@@ -378,10 +381,9 @@ const Pricing: React.FC = () => {
<div className="pricing-table-wrapper">
<PricingTable1
plans={plans.map(convertToPricingPlan)}
title="Choose your plan"
showToggle={true}
onPlanSelect={(plan) => {
window.location.href = `/signup?plan=${plan.id}`;
window.location.href = `https://app.igny8.com/signup?plan=${plan.slug || plan.id}`;
}}
/>
</div>