Exemplo n.º 1
0
    public function generate_settings_html($form_fields = false)
    {
        if (empty(Printful_Integration::instance()->settings['printful_key'])) {
            ?>
                <tr><td colspan="2">
                       <div class="error below-h2" style="margin:0">
                        <p>
                            Please add Printful API key to the
                            <a href="<?php 
            echo admin_url('admin.php?page=wc-settings&tab=integration&section=printful');
            ?>
">Printful Integration settings section</a>
                            to enable rate calculation.
                        </p>
                        </div>
                </td></tr>
            <?php 
        }
        parent::generate_settings_html($form_fields);
    }