예제 #1
0
        if (get_option('product_sync_type_QBO') == 'wc_to_QB') {
            echo "none";
        }
        ?>
;margin-left: 45px;margin-top:10px;"><input type="checkbox"  <?php 
        echo get_option('ps_unpublish') == 'on' ? 'checked' : '';
        ?>
 value="on" name="ps_unpublish"  />Change product status in WooCommerce based on stock quantity<a href="https://www.linksync.com/help/woocommerce"><img style="margin-bottom:-4px;margin-left:4px" title="Select this option if you want product with inventory quantities of 0 (zero) or less to be made unavailable for purchase in your WooCommerce store. In the case of simple product this option will set them them to 'draft', and in the case of Variable products, the variation would be set to 'Out of stock'."  src="../wp-content/plugins/linksync/img/help.png" height="16" width="16"></a>
                                </div> 
                            </td>
                        </tr><?php 
    }
} else {
    echo "<span style='margin-left:50px;color:red;font-weight:bold;'>Error in getting Info : {$info['userMessage']}</span><br>";
}
$accounts = $apicall->linksync_QuickBook_account('Asset');
if (!isset($accounts['errorCode'])) {
    $accounts_db = get_option('ps_account_asset');
    ?>
 
                    <tr valign="top" class="account" style="display:<?php 
    echo get_option('product_sync_type_QBO') == 'QB_to_wc-way' ? 'none' : '';
    ?>
">
                        <th  class="titledesc">Asset Accounts fields  <a href="https://www.linksync.com/help/woocommerce"><img style="margin-bottom:-4px;margin-left:4px" title="Accounts fields"  src="../wp-content/plugins/linksync/img/help.png" height="16" width="16"></a></th>
                        <td class="forminp forminp-checkbox">
                            <label style="display: inline-block;width: 25em;">
                                <select name="ps_account_asset">
                                    <?php 
    foreach ($accounts['accounts'] as $account) {
        if ($accounts_db == $account['id']) {
예제 #2
0
                ?>
</span><?php 
            }
        } else {
            ?>
<span style='color:red; '><?php 
            echo 'Error in getting Classes: ' . $location['userMessage'];
            ?>
</span><?php 
        }
    }
}
?>
                <!------------------------------------------- Order Acccouts --------------------------------------->
                <?php 
$accounts = $apicall->linksync_QuickBook_account();
if (!isset($accounts['errorCode'])) {
    if (isset($accounts) && !empty($accounts)) {
        $accounts_db = get_option('order_account');
        ?>
 <tr valign="top">
                            <th  class="titledesc">Account fields<a href="https://www.linksync.com/help/woocommerce"><img title="" style="margin-bottom: -4px;margin-left: 4px;" src="../wp-content/plugins/linksync/img/help.png" height="16" width="16"></a></th>
                            <td class="forminp forminp-checkbox">
                                <select style="width: 310px;" name="order_account">
                                    <option>Select Account fields</option>
                                    <?php 
        foreach ($accounts['accounts'] as $account) {
            if (isset($accounts_db) && !empty($accounts_db)) {
                if ($accounts_db == $account['id']) {
                    $check = 'selected';
                } else {