FAQ

Home / FAQ

Regular Licence is for installation and plugin use on one website. Plugin updates are provided with an active subscription. Extended Licence is for   Website companies/Developers that may install it on more than one of their clients websites. 

  1. Deactivate and delete free version
  2. Download premium version from WooLabel.com or CodeCanyon Downloads tab
  3. Upload and activate premium plugin version
  4. Go to the new menu item – Woolabel -> Settings and setup according to your label size and press Save
  5. Enjoy Woolabel premium version
Note: It can be used only with QR-Code barcode type.How it works:
    1. Change select “QR – Replace SKU LINK“. Also, set QR code barcode type, and adjust width and height according to label size. – Increase – Increase Stock after the scan. – Decrease – Decrease Stock after the scan. – Front End Product Link – Link to the product page, which can be used by anyone without login access – Backend Edit Product Link – Link to the Edit Product Page, you need to be logged in as admin on the device to use it. – Custom Link – Can be used to set global website link, etcNOTE: QTY will be decreased/increase only for products with enabled “Manage Stock”.
    2. Print labels and stick it to products.
    3. Scan barcode via app on mobile phone, we recommend this one APP for Android , and open link
    4. You will be redirected to your website, and will see the result

  1. Go to Woolabel -> Settings and check checkbox SKU Add-on Text, then click Save
  2. With this you can add custom text to each product, go to Products -> Edit (product)
  3.  Locate Product data tabs, “Inventory” Tab and type custom text for this edited product
  4. Go to main Woolabel page and print this product label


Set checkbox “Replace SKU with decrease QTY link?”. Also, set QR code barcode type, and adjust width and height according to label size.

So as the result will be displayed on the screen in pixels, and they aren’t metric units in the real world and they depend on the dpi / ppi then perhaps you will need to adjust these settings after printing

  1. On Print Page you need set Margins to None
  2. Close the window with Cancel,  and press Print again

Check our filters list in last FAQ item “FILTERS SAMPLES”

It’s because by default WooLabel using ‘manage_options’ permissions for all selected user roles in settings, maybe selected role doesn’t have this capability.

You can easily change this by using filter: wpblp_users_caps.

Sample can be found in “FILTERS SAMPLES (Premium)?” FAQ Item

You can check more information about roles capabilities by this links:

  1. WordPress Roles Capabilities
  2. WooCommerce Roles Capabilities

You can remove one use by simple adding this to functions.php or Snippets plugin:

 

    add_filter( 'wpblp_qr_code_link_save_hash', function( $value ){
        return 1;
    });
Actual changelog is always included in the plugin documentation. You can found it in the plugin archive.

 

To use add following code in the CHILD THEME – functions.php ile:

 

/*
* Function to replace or modify label title
*/
function my_custom_woolabel_title($trim_title, $orig_title, $max_length, $product_id) {
return $trim_title;
}
add_filter(‘wpblp_set_custom_label_title’, ‘my_custom_woolabel_title’, 10, 4);

 

/*
* Function to add own custom fields in label based on product id
*/
function my_custom_woolabel_fields($custom_fields, $product_id) {
return $custom_fields;
}
add_filter(‘wpblp_set_custom_label_fields’, ‘my_custom_woolabel_fields’, 10, 2);

 

/*
* Function to replace or modify QR code label text
*/
function my_custom_woolabel_qr_code_text(
$label_qr_text,
$product_id,
$sku,
$sku_addon_text,
$trim_title,
$orig_title,
$max_length,
$price
) {
return $label_qr_text;
}
add_filter(‘wpblp_set_custom_qr_code_text’, ‘my_custom_woolabel_qr_code_text’, 10, 8);

 

/*
* Function to add own custom selector product title in selector box
*/
function my_custom_woolabel_selector_product_custom_title($title, $product_id) {
return $title;
}
add_filter(‘wpblp_set_custom_select_products_box_title’, ‘my_custom_woolabel_selector_product_custom_title’, 10, 2);

 

/*
* Ajax Selector Query modification
*/
function my_custom_woolabel_selector_custom_query($args, $params) {
return $args;
}
add_filter(‘wpblp_set_custom_selector_query_args’, ‘my_custom_woolabel_selector_custom_query’, 10, 2);

 

/*
* Change default capabilities for WooLabel Pages from ‘manage_options’ to Custom
*/
function my_custom_woolabel_users_caps($caps) {
return ‘edit_pages’;
}
add_filter(‘wpblp_users_caps’, ‘my_custom_woolabel_users_caps’, 10);
/**
* Show variation name on label
*/
add_filter(‘wpblp_set_custom_label_fields’, function($custom_fields, $product_id) {
$taxonomy = ‘stocklocation’;
 
if ( taxonomy_exists( $taxonomy ) ) {
$terms = get_the_terms( $product_id, $taxonomy );
if ( ! empty($terms) ) {
$custom_fields = implode(‘, ‘, wp_list_pluck( $terms, ‘name’));
}
}
 
return $custom_fields;
}, 10, 2);

 

/**
* Set Logo on label
*/
add_filter(‘wpblp_set_custom_label_fields’, function ($custom_fields, $product_id) {
$custom_fields = ‘<img src=”https://example.com/image.png” width=”100″ height=”60″ style=”margin-top:5px; margin-bottom:5px;”>’;
return $custom_fields;
}, 10, 2);

 

/**
* Set Minimal Users Caps
*/
add_filter(‘wpblp_users_caps’, function(){
return ‘manage_options’;
});
// manage_woocommerce

 

/*
* Add Custom CSS for labels
*/
add_action(‘admin_head’, function() {
echo ‘<style>
body#wpblp_label_list.wpblp_label.wpblp_inner {
display: flex!important;
flex-direction: column;
}
</style>’;
} );

 

/*
* Replace QR code link with product Edit link
*/
add_filter(‘wpblp_set_custom_qr_code_text’, function($label_qr_text, $product_id) {
return get_edit_post_link($product_id);
}, 10, 8);
 
 
/*
 * Set both Regular and Sale Price
 */
add_filter('wpblp_set_custom_label_fields', function($html, $id){
    $product    = wc_get_product($id);
    $html        = '';

    if( $product->is_on_sale() ) {
        $price                         = $product->get_regular_price();
        $setting_bar_currency        = wpblp_get_single_setting( 'wpblp_settings_input_field_price_currency' );
        $setting_bar_currency_pos     = wpblp_get_single_setting( 'wpblp_settings_select_price_currency_pos' );
        $html                         .= '<div class="wpblp_price_regular">';

        if ( $setting_bar_currency_pos != 'after' ) {
            $html .= esc_html( $setting_bar_currency );
        }
        $html .= esc_html( number_format( $price, wc_get_price_decimals(), wc_get_price_decimal_separator(), wc_get_price_thousand_separator() ) );
        if ( $setting_bar_currency_pos == 'after' ) {
            $html .= esc_html( $setting_bar_currency );
        }
        $html .= '</div>';    
    }
    return $html;
}, 10, 2);
To use add following code in the CHILD THEME – functions.php ile:

 

// Add custom logo to the email QR’s
add_filter(‘qrcet_email_content’, function ($html_fields, $qrcode_src, $item, $order_id) {
$path = get_theme_mod( “logo_upload”, get_template_directory_uri() . “/images/logo.png” );
$type = pathinfo($path, PATHINFO_EXTENSION);
$data = file_get_contents($path);
$base64 = ‘data:image/’ . $type . ‘;base64,’ . base64_encode($data);
 
$html_fields = ‘<div class=”qrcet_custom_site_logo”><img src=”‘ . $base64 .'” width=”‘ . get_theme_mod( “logo_width”, “180” ) .'” /></div>’.”\n” . $html_fields;
 
return $html_fields;
}, 10, 4);
 
// Add Custom CSS
add_filter(‘qrcet_email_css’, function ($css) {
$css .= ‘.qrcet_row_2 { font-size: 24px!important; font-weight: bold!important; color: red!important;}’.
‘.qrcet_row_4, .qrcet_row_5, .qrcet_row_6, .qrcet_row_7, .qrcet_row_8 {padding-left: 20px; text-align: left!important}’;
 
return $css;
}, 10, 1);
 
// Add QR’s only to the Processing and Customer Invoices
add_filter(‘qrcet_email_allowed_statuses_attach’, function ($statuses) {
$statuses = [‘customer_processing_order’, ‘customer_invoice’];
return $statuses;
}, 10, 1);
 

You can use:

  1. ACF Plugin fields, you can use it like: [wpblp_acf name=custom_field_text], where “custom_field_text” is field ID, and only for these field types:
    • Text
    • Text Area
    • Number
    • Range
    • Email
    • URL
    • Password
  2. Custom Shortcode [your-shortcode product_id=%wpblp_id] and %wpblp_id will be auto-replaced with product simple/variation ID
  3. HTML tags
  4. Text

How to use:

  1. Create ACF Plugin Fields and fill it

2. Add it to Settings

3. Print