<?php
// ============================================================
//  DDOMAINS — SITE CONFIGURATION
//  Edit this single file to update URLs, contact info,
//  pricing and product links across the entire website.
// ============================================================

// ---- Brand -----------------------------------------------
define('SITE_NAME',    'Ddomains');
define('SITE_URL',     'https://www.ddomains.in');
define('SITE_TAGLINE', '#1 Discount Domain Registration company in India');

// ---- Logo ------------------------------------------------
//  Set a full URL to your logo image (PNG/SVG/WebP).
//  Leave empty ('') to keep the built-in SVG text logo.
define('LOGO_URL', '');

// ---- Social / Open Graph Image ---------------------------
//  Image shown when a page is shared on WhatsApp, Facebook,
//  Twitter etc. Recommended size: 1200x630 px.
define('OG_IMAGE', 'https://www.ddomains.in/images/og-image.jpg');

// ---- WHMCS API Credentials --------------------------------
//  Generate in: WHMCS Admin → System Settings → API Credentials
define('WHMCS_API_ID',     '');         // API Identifier
define('WHMCS_API_SECRET', '');         // API Secret
define('WHMCS_PAY_METHOD', 'payuindia'); // Payment gateway slug (e.g. paypal, stripe, payuindia, ccavenue)

// ---- WHMCS Product IDs ------------------------------------
//  Find these in: WHMCS Admin → Products/Services → (click product) → look at URL for id=
define('PID_HOSTING_STARTER',   182);   // already known from cart URLs
define('PID_HOSTING_PRO',       183);
define('PID_HOSTING_BUSINESS',  184);
define('PID_VPS_LITE',            0);   // ← fill in from WHMCS Admin
define('PID_VPS_PLUS',            0);   // ← fill in from WHMCS Admin
define('PID_VPS_PREMIUM',         0);   // ← fill in from WHMCS Admin
define('PID_EMAIL_BASIC',         0);   // ← fill in from WHMCS Admin
define('PID_EMAIL_PRO',           0);   // ← fill in from WHMCS Admin
define('PID_EMAIL_BUSINESS',      0);   // ← fill in from WHMCS Admin

// ---- WhatsApp --------------------------------------------
//  Full number with country code, no spaces or + sign.
//  e.g. 917094300800  (91 = India country code)
define('WHATSAPP_NUMBER', '917094300800');
define('WHATSAPP_MESSAGE', 'Hello! I need help with my domain/hosting.');

// ---- Contact Info ----------------------------------------
define('PHONE_RAW',     '+917094300800');
define('PHONE_DISPLAY', '(+91) 7094 300 800');
define('EMAIL_SALES',   'sales@ddomains.in');
define('EMAIL_SUPPORT', 'support@ddomains.in');

// ---- Portal Base URL -------------------------------------
//  Change this one line if your WHMCS/portal moves.
define('PORTAL_URL', 'https://portal.ddomains.in');

// ---- Portal Pages ----------------------------------------
define('CLIENT_AREA_URL',  PORTAL_URL . '/clientarea');
define('DOMAIN_CHECK_URL', PORTAL_URL . '/checkdomain');

// ---- Domain Pricing (₹/yr) --------------------------------
define('PRICE_IN',     '499');
define('PRICE_CO_IN',  '399');
define('PRICE_COM_IN', '399');
define('PRICE_COM',    '949');
define('PRICE_NET',    '1099');

// ---- Web Hosting Order Links -----------------------------
define('HOSTING_STARTER_URL',  PORTAL_URL . '/?cmd=cart&action=add&id=182');
define('HOSTING_PRO_URL',      PORTAL_URL . '/?cmd=cart&action=add&id=183');
define('HOSTING_BUSINESS_URL', PORTAL_URL . '/?cmd=cart&action=add&id=184');

// ---- Web Hosting Pricing (₹/mo) --------------------------
define('HOSTING_STARTER_ORIG',    '250');
define('HOSTING_STARTER_PRICE',   '59');
define('HOSTING_STARTER_SAVING',  '76');
define('HOSTING_PRO_ORIG',        '400');
define('HOSTING_PRO_PRICE',       '79');
define('HOSTING_PRO_SAVING',      '80');
define('HOSTING_BUSINESS_ORIG',   '1150');
define('HOSTING_BUSINESS_PRICE',  '169');
define('HOSTING_BUSINESS_SAVING', '85');

// ---- VPS Hosting Order Links -----------------------------
define('VPS_LITE_URL',    PORTAL_URL . '/order/lite');
define('VPS_PLUS_URL',    PORTAL_URL . '/order/plus');
define('VPS_PREMIUM_URL', PORTAL_URL . '/order/premium');

// ---- VPS Pricing (₹/mo) ----------------------------------
define('VPS_LITE_ORIG',     '999');
define('VPS_LITE_PRICE',    '399');
define('VPS_LITE_SAVING',   '60');
define('VPS_PLUS_ORIG',     '1299');
define('VPS_PLUS_PRICE',    '499');
define('VPS_PLUS_SAVING',   '62');
define('VPS_PREMIUM_ORIG',  '1999');
define('VPS_PREMIUM_PRICE', '749');
define('VPS_PREMIUM_SAVING','63');

// ---- Domain + Hosting Combo Links ------------------------
define('COMBO_IN_STARTER_URL',   PORTAL_URL . '/?cmd=cart&action=add&id=167&promocode=INSTARTER');
define('COMBO_IN_PRO_URL',       PORTAL_URL . '/?cmd=cart&action=add&id=169&promocode=INPRO');
define('COMBO_IN_BUSINESS_URL',  PORTAL_URL . '/?cmd=cart&action=add&id=170&promocode=INBUSINESS');
define('COMBO_COM_STARTER_URL',  PORTAL_URL . '/?cmd=cart&action=add&id=191&promocode=COMSTARTER');
define('COMBO_COM_PRO_URL',      PORTAL_URL . '/?cmd=cart&action=add&id=192&promocode=COMPRO');
define('COMBO_COM_BUSINESS_URL', PORTAL_URL . '/?cmd=cart&action=add&id=193&promocode=COMBUSINESS');

// ---- Combo Pricing (₹) -----------------------------------
define('COMBO_IN_STARTER_PRICE',   '599');
define('COMBO_IN_PRO_PRICE',       '899');
define('COMBO_IN_BUSINESS_PRICE',  '1399');
define('COMBO_COM_STARTER_PRICE',  '949');
define('COMBO_COM_PRO_PRICE',      '1249');
define('COMBO_COM_BUSINESS_PRICE', '1749');

// ---- Currency Converter ----------------------------------
//  Live rates fetched via JS from api.frankfurter.app
//  Fallback rate used if API is unreachable
define('CURRENCY_FALLBACK_RATE', '0.012'); // 1 INR ≈ 0.012 USD (update as needed)
