function eaGenerateProductCard(product) { // 統計データがあるかチェック const hasStats = product.stats && product.stats.total_trades > 0; // カテゴリクラス生成 const categoryClass = 'ea-category-' + (product.category_key || 'other').replace(/[^a-zA-Z0-9-_]/g, ''); // 通貨ペア表示(USDJPYでない場合のみ) let currencyDisplay = ''; if (product.currency && product.currency !== 'USDJPY') { currencyDisplay = `
${product.currency}
`; } // 価格セクション生成 let priceSection = ''; if (product.price_data) { if (product.price_data.has_free && product.price_data.has_paid) { // 無料版と有料版両方 priceSection = `
無料版
有料版
`; } else if (product.price_data.has_paid) { // 有料版のみ priceSection = `
価格
`; } else if (product.price_data.has_free) { // 無料版のみ priceSection = `
無料版
`; } } // 統計セクション生成(EAで統計データがある場合のみ) let statsSection = ''; if (hasStats) { statsSection = `
累計収益
${product.stats.profit_percentage >= 0 ? '+' : ''}${product.stats.profit_percentage}%
勝率
${product.stats.win_rate}%
PF
${product.stats.profit_factor}
`; } return `
${product.category}
${product.image_url ? `${product.name}` : `
画像なし
` }
${product.name}
${product.store}
${currencyDisplay} ${statsSection} ${priceSection}
`; }
Warning: Cannot modify header information - headers already sent by (output started at /home/c1341944/public_html/sys-tre.com/wp-content/plugins/systre_product_listing/ea_product_listing.php:1) in /home/c1341944/public_html/sys-tre.com/wp-content/plugins/affiliates-manager/classes/ClickTracking.php on line 48