1

ウェブショップに woocommerce と wpml を使用していますが、うまく機能しています。しかし、請求書を印刷するために「請求書と梱包リストの印刷」プラグインをインストールしました。しかし、プラグインと翻訳 (またはプラグインの欠如..) に 2 つの問題があります。

ドメインと文字列は検出されますが、実際のコンテンツは検出されません... したがって、請求書はすべて英語です。特に問題はありませんが、翻訳がうまくいくといいですね。

今、大きな問題。請求書は英語ですが、通貨が切り替わらないという事実に耐えることができます...バックエンド/ダッシュボードのデータでは問題ないように見えますが、印刷したい場合..基本通貨記号が請求書に表示されます。金額がそれに応じて変わらないため、これは大きな問題を引き起こします。1€が1SEKになります(為替レートは0,11です)!

私は設定を見つけることができず、解決策を探すためにプラグインコードにさえいました。

注: WooTheme と wpml のサポートにも連絡しました。彼らはまだ私に答えていません。

get_order_currency(); のようなPHPコードスニペットはありませんか? ?> または注文通貨を定義する他の方法は?

製品価格を生成するコードは次のとおりです。(問題箇所のみ※)

<?php if ( $action == 'print_invoice') : ?>
    <table>
        <thead>
            <tr>
                <th scope="col" style="color: #fff; border: 1px solid #FFFFFF; text-align:left; width: 15%; background-color:#00cc00; padding: 3px;"><?php _e('SKU', 'woocommerce-pip'); ?></th>
                <th scope="col" style="color: #fff; border: 1px solid #FFFFFF; text-align:left; width: 30%; background-color:#00cc00; padding: 3px;"><?php _e('Product', 'woocommerce-pip'); ?></th>
                <th scope="col" style="color: #fff; border: 1px solid #FFFFFF; text-align:left; width: 25%; background-color:#00cc00; padding: 3px;"><?php _e('Quantity', 'woocommerce-pip'); ?></th>
                <th scope="col" style="color: #fff; border: 1px solid #FFFFFF; text-align:left; width: 10%; background-color:#00cc00; padding: 3px;"><?php _e('A Price', 'woocommerce-pip'); ?></th>
            </tr>
        </thead>
        <tfoot>
            <tr>
                <th colspan="3" scope="row" style="text-align:right;"><?php _e('Moms(25%):', 'woothemes'); ?></th>
                <td style="text-align:left;"><?php echo woocommerce_price($order->get_total_tax()); ?></td>
            </tr>
            <?php foreach ( $order->get_order_item_totals() as $key => $total ) : ?>        
            <tr>
                <th colspan="3" scope="row" style="text-align:right;"><?php echo $total['label']; ?></th>
                <td style="text-align:left;"><?php echo $total['value']; ?></td>
            </tr>
            <?php endforeach; ?>
4

0 に答える 0