Ejemplo n.º 1
0
?>
;" class="woocommerce_frontend_css_colors">
                    <th scope="row" class="titledesc">Import by Tag <a href="https://www.linksync.com/help/woocommerce"><img style="margin-bottom:-4px;margin-left:4px" title="Enable this option if you only want product in Vend with specific tags to be synced to your WooCommerce store. This might be of benefit if you don't want all product in your Vend store syncing to your WooCommerce store. Select one or more tags from the list to only sync product with matching tags."  src="../wp-content/plugins/linksync/img/help.png" height="16" width="16"></a></th>
                    <td class="forminp">
                        <label style="display: inline-block;width:22px;">
                            <input type="checkbox" value="on" <?php 
echo get_option('ps_imp_by_tag') == 'on' ? 'checked' : '';
?>
  name="ps_imp_by_tag" /></label>Import by Tag
                        <br><br>  <span  style="display:<?php 
echo get_option('ps_imp_by_tag') == 'on' ? 'block' : 'none';
?>
"id="import_by_tags_list" style="margin-left: 20px;">
                            <?php 
for ($count_tags = 1; $count_tags <= 3; $count_tags++) {
    $product_tags = $apicall->linksync_getTags();
    if (isset($product_tags) && !empty($product_tags)) {
        break;
    }
}
if (!empty($product_tags['tags'])) {
    sort($product_tags['tags']);
}
$import = get_option('import_by_tags_list');
if (!empty($import)) {
    $import_tags = unserialize($import);
    $tags_import = explode('|', $import_tags);
}
?>
                            <select style="margin-left:45px;" multiple="multiple" name="import_by_tags_list[]">
                                <?php