Plugin Directory

Changeset 3257795


Ignore:
Timestamp:
03/18/2025 12:02:23 PM (11 months ago)
Author:
sharabindu
Message:

barcode for WooCommerce plugin update

Location:
barcode-generator-for-woocommerce
Files:
60 added
26 edited

Legend:

Unmodified
Added
Removed
  • barcode-generator-for-woocommerce/trunk/README.txt

    r3249803 r3257795  
    77Tested up to: 6.7.1
    88Requires PHP: 7.2
    9 Stable tag: 1.0.2
    10 Version: 1.0.2
     9Stable tag: 1.0.3
     10Version: 1.0.3
    1111Text Domain: barcode-generator-woocommerce
    1212Domain Path: /languages
     
    1414License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1515
    16 Auto barcode generator for WooCommerce products.
     16Barcode Generator for WooCommerce is a plugin that helps create product barcodes.
    1717
    1818== Description ==
    1919
    20 This is an auto barcode generator plugin for WooCommerce products. Barcodes are generated automatically as soon as the plugin is activated. All product barcodes are unique and are created based on the Product SKU, the Product ID, and auto barcode number.
    21 
     20Barcode Generator for WooCommerce is a plugin that helps generate barcodes for all products on the WooCommerce website. Product barcodes are automatically generated as soon as the plugin is activated. All product barcodes are unique and are generated based on the product SKU, product ID, and automatic barcode number.
     21
     22The barcode is automatically displayed on a single product page. it can be displayed in up to 4 (four) different locations on the product page, as well as in a custom location via a shortcode.
     23
     24
     25[Try the Demo](https://woocommercebarcode.com/ "Pro Demo of barcode pluign") | [Get The Premium](https://sharabindu.com/plugins/woocommerce-barcode-generator/) | [Documents](https://woocommercebarcode.com/docs/introduction/ "Documents")
    2226
    2327###BARCODE PLUGIN FEATURES
     
    2529**WooCommerce Product Barcode:** Barcodes are generated automatically for all new and old products.
    2630
    27 **Auto Generate barcode number**: The content (number) of the barcode is generated automatically. A unique 6 to 9-digit barcode number is automatically generated for each product as barcode content.
    28 
    29 **Custom barcode number**: You can easily create custom barcodes for products from the quick edit option on the WooCommerce product page. Click on the quick edit option for the selected product and input the custom barcode number
    30 
     31**Product barcode from auto generate number**: This function enables the automatic generation of barcode values. A unique 6 to 9-digit number is automatically generated for each product as barcode value. You can easily create custom barcode values for a product from the quick edit option in the WooCommerce product dashboard. Click on the quick edit option for the selected product and input the custom barcode value and save. The barcode for the new value will be created immediately.
     32
     33**Product barcode from Product SKU**: Product barcodes can be generated from the SKU value of each product. Changing the SKU value will immediately change the barcode value.
     34
     35**Product barcode from Product ID**: Product barcodes can be generated from each product ID. Product IDs are automatically generated by WooCommerce.
     36
     37
     38**Barcode Download Page**: The plugin allows you to download all product barcodes from this download page. You will find several features on this page, including sorting or searching by category, pagination, etc. You can also print the product barcodes.
    3139
    3240###How to add barcode to WooCommerce website
     
    3644= Extra Features for Premium =
    3745
    38 [Try the Demo](https://woocommercebarcode.com/ "Pro Demo of barcode pluign") | [Premium version](https://sharabindu.com/plugins/woocommerce-barcode-generator/) | [Documents](https://woocommercebarcode.com/docs/introduction/ "Documents")
    39 
    4046
    4147###Preview PRO Barcode for WooCommerce
     
    4349
    4450
    45 In the premium version of this plugin, product barcodes, order barcodes, order email barcodes, and barcodes for PDF invoices are generated. , Each barcode is unique and highly customizable.
    46 
    47 
    48 **Add product price and name on barcode:** In the Pro version, you can add a product price and product name to the barcode sticker
    49 
    50 **Barcode Sticker design:** 100 types of barcode stickers can be designed by customizing the barcode label, custom text, price, and title.
    51 
    52 **Custom text on barcode sticker:** Custom text can be added to barcode stickers. You will find two fields where you can add custom text to the barcode sticker. You can input the country name and the brand name, or input the desired text or number
    53 
    54 **GTIN, UPC, EAN, or ISBN Supported:** You can create Product barcodes with the value of this field.WooCommerce added this field in its 9.3.0 version.
    55 
    56 **barcodes from EAN for the WooCommerce Plugin**: The existing user of this plugin can generate barcodes from the value of EAN.
    57 
    58 **Barcode on product page**: To add barcode in 4(four) different places on a single product page. For variable product barcodes, the variable barcode changes when the child product changes.
    59 
    60 **14 types of barcode Format**: in the Premium version, you can create product barcodes from 14 types of formats. EAN13, EAN8, UPC), etc.
    61 
    62 **Variable Child product The premium plugin generates barcodes for both variable parent and child products.
    63 
    64 **WooCommerce Order barcode**: The premium plugin allows adding barcodes to the order dashboard page. Product barcodes are also added to this page.
    65 
    66 **Order Barcode in Order email**: when a new order is completed, the order barcode will be printed on the order mail.
    67 
    68 **WooCommerce Order Barcode in PDF Invoices**: We have integrated with three (3) PDF invoice plugins. So, you can add the order barcode to the below PDF plugins.
     51The premium version of this plugin offers a number of additional features, including designing product barcode stickers, adding product names and prices to barcode labels, adding custom text, creating order barcodes, creating barcodes in order emails, and creating barcodes inside PDF invoices.
     52
     53
     54**Add product price and product name to barcode label:** In the Pro version, USers can add product price and product name to the barcode sticker.
     55
     56**Barcode Sticker design:** 100 types of barcode stickers can be designed by customizing the barcode label, custom text, price, and product name.
     57
     58**Add Custom text on barcode sticker:** Custom text or Custom number can be added to barcode stickers. The plugin allows two fields where custom text or numbers can be added to the barcode sticker. For example, you can input the country name and brand name on the product's barcode sticker.
     59
     60**GTIN, UPC, EAN, or ISBN Supported:**  In the premium version, product barcodes can be generated using the product's GTIN, UPC, EAN, or ISBN value. WooCommerce added this field in its 9.3.0 version.
     61
     62**EAN for the WooCommerce Plugin Supported**: Existing users of the [EAN for WooCommerce plugin](https://wordpress.org/plugins/ean-for-woocommerce/) can generate product barcodes from EAN values.
     63
     64
     65**14 types of barcode Format**: in the Premium version, you can create product barcodes from 14 types of formats. EAN13, EAN8, UPC, etc.
     66
     67**Porduct barcode for Variable attribute or Child:** The premium plugin help to generates product barcodes for both variable parent and variable child products.
     68
     69**WooCommerce Order barcode**:The premium plugin allows you to create order barcodes for each order on your WooCommerce website. The order barcode value is generated from the order number or transaction number.  You can view the order barcodes on the WooCommerce order dashboard page. It also creates barcodes for products on the order dashboard page.
     70
     71**Order Barcode on WooCommerce Order email**: When an order is created, an order barcode is generated and this barcode will be displayed in all order emails in WooCommerce. In order emails, the item barcode can be displayed in addition to the order barcode..
     72
     73**WooCommerce Order Barcode in PDF Invoices**: The Barcode Generator Pro plugin is integrated with three (3) WooCommerce PDF Invoice plugins. So, you can add order barcodes and item barcodes to the PDF plugins below.
    6974
    7075* PDF invoices and packing slips plugin.
     
    7277* WooCommerce PDF Invoices - Web Toffee
    7378
    74 **barcode print (Bulk Qty)**: Easily find all products from the Print page and can bulk print by category. also, you can print one product in a bulk quantity
    75 
    76 **bar code download**: The plugin allows you to download all the product's barcode from the download page.
     79**Bulk print of product barcodes**: You can easily find all product barcodes from the print page and you can print product barcodes in bulk. There is also the facility to sort product barcodes by category, set custom width and height of barcode sticker and print for all types of pages including A4, label printer etc.
     80
     81
    7782
    7883
     
    8085
    8186[GET PRO VERSION](https://sharabindu.com/plugins/woocommerce-barcode-generator/)
     87
     88
     89= You may also like other plugins =
     90
     91
     92
     93###[QR Code Composer(Auto QR Code Generator)](https://wordpress.org/plugins/qr-code-composer/)
     94
     95The plugin allows you to Gnerate QR code for each pages, posts, WooComemrce Products, Custopm post, Custom URL, Cusrom Text, CstomNumber QR code. Also can Generate Whatsapp QR code, vCArd QR code with WordPress website.
     96
     97
     98###[Mini Cart For WooCommerce](https://wordpress.org/plugins/mini-cart-for-woocommerce/)
     99
     100This is a cart plugin for WooCommerce. It allows you to create beautiful side cart on your WooCommerce website. This shopping cart plugin add WooCommerce cart icon to the navigation bar and footer part of the webpage. vast custromization facility with live Preview.
     101
     102###[YooBar – Top and Footer Notification Bar  ](https://wordpress.org/plugins/yoo-bar/)
     103
     104With this plugin, you can display attractive and effective notifications at the top and bottom of your WordPress website. inform visitors of new publications, offers, messages, news, social links, advertisements, and promotions through a notification bar.
     105
     106
     107###[ELFI Masonry Addon – Creating item showcase for Elementor  ](https://wordpress.org/plugins/elfi-masonry-addon/)
     108
     109“ELFI Masonry” is a filterable and gallery showcase addon for the Elementor page builder. With this addon, you can create showcases for portfolios, products, or post items. And setup a category-based filter button.
     110
    82111
    83112
     
    91120== Frequently Asked Questions ==
    92121
    93 = What is a barcode or bar code =
    94 
    95 A barcode (bar code) is a visual image or bar. which is a method of representing data in machine-readable form. Initially, barcodes represent data by varying the width, spacing, and shape of parallel lines.
    96 
    97 = How long is the barcode valid? =
    98 
    99 Its validity is lifetime. Barcodes will never be lost
     122= What is WooCommerce barcode =
     123
     124WooCommerce Barcode generally refers to a plugin or extension that allows users to create and manage barcodes for their products, orders, and invoices. Primarily, barcodes represent data by varying the width, spacing, and shape of parallel lines.
     125
     126= how can benefit from WooCommerce barcode Pluign =
     127
     128Using barcodes with WooCommerce offers significant benefits, Faster product identification and accurate order processing and management. Product barcodes also help in tracking inventory levels, which helps avoid product stockouts and overstocking.
     129
     130= How long is the WooCommerce product barcode valid? =
     131
     132The product barcode is valid for life. The barcode will never be lost. If the barcode value changes, only the barcode will change.
    100133
    101134
     
    140173
    141174
    142 == Credits ==
     175= Credits =
    143176
    144177This plugin includes a modified version of the [JsBarcode jQuery plugin](https://github.com/lindell/JsBarcode) by Johan Lindell, which is licensed under the MIT license. Original library copyright © Johan Lindell. The modified version complies with the MIT license.
    145178
     179
     180= Privacy =
     181
     182This plugin does not connect to any third-party applications. It does not collect or store any user information. This plugin only generates barcode image.
     183
     184= Feedback =
     185Any suggestions or feedback are welcome, thank you for using or trying my plugin. Please let me know about your experience and rate this plugin.
     186
     187
    146188== Changelog ==
     189
     190= 1.0.3 =
     191- New: Add barcode to single Product page
     192- Update: Compatibility Update
     193
    147194= 1.0.2 =
    148195- New: Add Download page for product Barcode
    149196- Update: Compatibility Update
     197
    150198= 1.0.1 =
    151199- Fix: The plugin install issues
  • barcode-generator-for-woocommerce/trunk/admin/class_barcodgenfwoo-admin.php

    r3249803 r3257795  
    44 *
    55 * @link       https://sharabindu.com
    6  * @since      1.0.2
     6 * @since      1.0.3
    77 *
    88 * @package    barcode-generator-for-woocommerce
     
    2525     * The option page variable of this plugin.
    2626     *
    27      * @since    1.0.2
     27     * @since    1.0.3
    2828     * @access   private
    2929     * @var      string
     
    3535     * The ID of this plugin.
    3636     *
    37      * @since    1.0.2
     37     * @since    1.0.3
    3838     * @access   private
    3939     * @var      string    $plugin_name    The ID of this plugin.
     
    4444     * The version of this plugin.
    4545     *
    46      * @since    1.0.2
     46     * @since    1.0.3
    4747     * @access   private
    4848     * @var      string    $version    The current version of this plugin.
     
    5353     * Initialize the class and set its properties.
    5454     *
    55      * @since    1.0.2
     55     * @since    1.0.3
    5656     * @param      string    $plugin_name       The name of this plugin.
    5757     * @param      string    $version    The version of this plugin.
     
    6767        $plugin_name = new barcodgenfwoo_dashboard();
    6868
    69         add_action( 'manage_product_posts_custom_column', array(
    70             $this,'barcogen_visibility_column_content'), 10, 2 );
     69
     70    include_once plugin_dir_path(dirname(__FILE__)) . 'vendor/wordpress-plugin-installer-main/class-connekt-plugin-installer.php';
     71
    7172    }
    7273
     
    7475     * Register the stylesheets for the admin area.
    7576     *
    76      * @since    1.0.2
     77     * @since    1.0.3
    7778     */
    7879    public function enqueue_styles()
    7980    {
    8081
    81         wp_enqueue_style($this->plugin_name, BARCODE_GENERATOR_URL . 'admin/css/barcodgenfwoo-admin.css', array() , $this->version, 'all');
     82        wp_enqueue_style($this->plugin_name, BARCODE_GENERATOR_URL . 'admin/css/barcodgenfwoo-admin.css', array() , time(), 'all');
    8283
    8384        wp_enqueue_style('wp-color-picker');
     
    8889     * Register the JavaScript for the admin area.
    8990     *
    90      * @since    1.0.2
     91     * @since    1.0.3
    9192     */
    9293    public function enqueue_scripts()
     
    9697    if ( ! wp_verify_nonce( $nonce, 'barcodgenfwoo-nonce' ) ) return;
    9798        wp_register_script('JsBarcode', BARCODE_GENERATOR_URL . 'admin/js/JsBarcode.all.min.js', array('jquery') , $this->version, true);
    98         wp_register_script('barcodgenfwoo', BARCODE_GENERATOR_URL . 'admin/js/barcodgenfwoo.js', array('jquery','JsBarcode') , $this->version, true);
     99        wp_register_script('barcodgenfwoo', BARCODE_GENERATOR_URL . 'admin/js/barcodgenfwoo.js', array('jquery','JsBarcode') , time(), true);
    99100
    100101
     
    114115    if ( sanitize_title(isset($_GET['page'])) && strpos((sanitize_title(wp_unslash($_GET['page']))), BAROCGENFOO) !== false) {
    115116
    116         wp_enqueue_script('JsBarcode', BARCODE_GENERATOR_URL . 'admin/js/JsBarcode.all.min.js', array('jquery') , $this->version, true);
     117        wp_enqueue_script('JsBarcode', BARCODE_GENERATOR_URL . 'admin/js/JsBarcode.all.min.js', array('jquery') , time(), true);
    117118        wp_enqueue_script('wp-color-picker');
    118119        wp_enqueue_script('barcodgenfwoo-admin', BARCODE_GENERATOR_URL . 'admin/js/barcodgenfwoo-admin.js', array('jquery') , $this->version, true);
     
    121122    if (sanitize_title(isset($_GET['page'])) && strpos((sanitize_title(wp_unslash($_GET['page']))), BAROCGDOWN) !== false) {
    122123
    123         wp_enqueue_script('JsBarcode', BARCODE_GENERATOR_URL . 'admin/js/JsBarcode.all.min.js', array('jquery') , $this->version, true);
    124         wp_enqueue_script('print-js', BARCODE_GENERATOR_URL . 'admin/js/jQuery.print.js', array('jquery') , $this->version, true);
     124        wp_enqueue_script('JsBarcode');
     125        wp_enqueue_script('print-js', BARCODE_GENERATOR_URL . 'admin/js/jQuery.print.js', array('jquery') , time(), true);
    125126    wp_enqueue_script('barcodgenfwoo');
    126127    wp_enqueue_script('loadmore_new');
     
    133134     * Setting link.
    134135     *
    135      * @since    1.0.2
     136     * @since    1.0.3
    136137     */
    137138
     
    159160    'pbar_downbar'
    160161    ));
    161 
     162    add_submenu_page('barcogen_print', 'Bulk Print(PRO)', 'Bulk Print(PRO)', 'manage_options', 'https://admin.woocommercebarcode.com/wp-admin/admin.php?page=pbargeprintpage');
     163
     164    add_submenu_page('barcogen_print', 'Order barcode(PRO)', 'Order barcode(PRO)', 'manage_options','https://admin.woocommercebarcode.com/wp-admin/admin.php?page=pbar_orderemail');
    162165
    163166
     
    229232               <ul id="pbrtabs-nav">
    230233                  <li><a href="#tab1">barcode Design</a></li>
     234                  <li><a href="#tab2">Display Settings</a></li>
    231235                  <li><a href="admin.php?page=pbar_downbar">Download Page</a></li>
     236                  <li><a href="https://admin.woocommercebarcode.com/wp-admin/admin.php?page=pbargeprintpage">Bulk Print (PRO)</a></li>
     237                  <li><a href="https://admin.woocommercebarcode.com/wp-admin/admin.php?page=pbar_orderemail">Order Barcode (PRO)</a></li>
     238
     239                  <li><a href="#tab3">Our All Plugins</a></li>
    232240               </ul>
    233241    <div id="pbrtab-content">
    234     <div class="tab1-tab active">
     242    <div id="tab1" class="pbrtab-content">
    235243<div class="comwrapers">
    236244<div class="bacogern-md-8">
     
    263271</div>
    264272</div>
     273    <div id="tab2" class="pbrtab-content">
     274                <form method="post" action="options.php" id="barcogenshortcodesub">
     275<?php             
     276                    settings_fields("pbrshortcodesettings");
     277                     do_settings_sections('pbar_shortcodesettings');
     278
     279                     ?>
     280        <div class="qrcsubmits" bis_skin_checked="1">
     281                  <button type="submit" id="pbrosiudi" class="button button-primary"><span class="dashicons dashicons-cloud-saved"></span>Save Changes <span class="qrcintegrates"></span></button>
     282         <span class="qrcintegrates_djkfhjhj"></span>
     283            </div>
     284                 </form>
     285    </div>
     286
     287
     288    <div id="tab3" class="pbrtab-content">
     289<div class="poytgwbemfn">
     290<?php
     291
     292
     293$plugins = [
     294  [
     295    'slug' => 'qr-code-composer',
     296  ],
     297  [
     298    'slug' => 'barcode-generator-for-woocommerce',
     299  ],
     300  [
     301    'slug' => 'mini-cart-for-woocommerce',
     302  ],
     303  [
     304    'slug' => 'elfi-masonry-addon'
     305  ],
     306  [
     307    'slug' => 'yoo-bar'
     308  ],
     309  [
     310    'slug' => 'fancy-fiter'
     311  ],
     312  [
     313    'slug' => 'master-qr-generator'
     314  ]
     315];
     316
     317if( class_exists( 'Connekt_Plugin_Installer' ) ) {
     318  Connekt_Plugin_Installer::init( $plugins );
     319}
     320 ?>
     321        </div>
     322 </div>
     323
    265324
    266325       </div>
     
    273332
    274333
    275 
    276  
    277 function barcogen_visibility_column_content( $column, $product_id ){
    278     if ( $column == 'barcodes' ) {
    279     $product = wc_get_product(get_the_ID());
    280     include BARCODE_GENERATOR_PATH . '/admin/extenstion/datapbarcodes.php';
    281     wp_enqueue_script('barcodgenfwoo');
    282     $pbarcode_value = isset($options['pbarcode_value']) ? $options['pbarcode_value'] : 'pbrnumber';
    283     $pbrdigit = isset($options['pbrdigit']) ? $options['pbrdigit'] : '6';
    284 
    285     $jhsdg = substr(number_format('84834348' * get_the_ID(),0,'',''),0,$pbrdigit);
    286     $meta_value = get_post_meta(get_the_ID(), 'bargeno_meta_barcode', true);
    287 
    288     if ($pbarcode_value == 'sku'){
    289     $printSju = $product->get_sku();   
    290     }
    291     if ($pbarcode_value == 'pbrnumber' && ! empty( $meta_value )){
    292     $printSju = $meta_value; 
    293     }elseif($pbarcode_value == 'pbrnumber' && empty( $meta_value )){
    294     $printSju = $jhsdg; 
    295     }
    296 
    297     if ($pbarcode_value == 'ID'){
    298     $printSju = get_the_ID();
    299     }
    300 
    301 
    302 
    303     echo '<div class="barcodgenfwoomodalwrapper" style="margin: 20px 0;"><button type="button" class="barcodgenfwoo-modal-toggle">barcode</button><div class="barcodgenfwoo-modal"><div class="barcodgenfwoo-overlay barcodgenfwoo-modal-toggle"></div><div class="barcodgenfwoo-modal-wrapper barcodgenfwoo-modal-transition"><span class="barcodgenfwoo-modal-toggle">&times;</span><div class="pbrbarcometabinov"><img id="Probarcode_metabox_'.esc_attr(get_the_ID()).'" class="pro_basdds" data-sku="'.esc_attr($printSju).'">
    304     <div class="download_barcogen_conwrap">
    305     <a class="pbrdowlaods" id="pbrdowlaods'.esc_attr(get_the_ID()).'" download="'.esc_attr(get_the_title()).'.png">
    306     <button type="button" class="button button-primary" title="Download Barcode">Download</button>
    307     </a></div></div></div></div></div>';
    308 
    309 
    310     }
    311334}
    312335
    313 
    314 }
    315 
  • barcode-generator-for-woocommerce/trunk/admin/class_barcodgenfwoo-dashboard.php

    r3249803 r3257795  
    66 *
    77 * @link       https://sharabindu.com
    8  * @since      1.0.2
     8 * @since      1.0.3
    99 *
    1010 * @package    barcode-generator-for-woocommerce
     
    2727    {
    2828    register_setting("pbarginerator_print_option", "pbarginerator_print_option", array());
     29    register_setting("pbrshortcodesettings", "pbrshortcodesettings", array());
    2930
    3031    add_settings_section("pbr_section_setting", " ", array(
     
    6869    ) , 'barcogencode_print_setting', "pbr_section_setting",['class' => 'parcode_labeltaxonmy']);
    6970
    70     }
     71
     72    add_settings_section("pbar_shortcodesetting", " ", array() , 'pbar_shortcodesettings');
     73
     74    add_settings_field("pbarcode_productpagese", esc_html__("Single Product Page", "barcode-generator-for-woocommerce") , array(
     75        $this,
     76        "pbarcode_productpagese"
     77    ) , 'pbar_shortcodesettings', "pbar_shortcodesetting",['class' => 'pbarcode_productpagese']);
     78
     79
     80    add_settings_field("pbarcode_enable_frontend", esc_html__("Turn off product page auto display", "barcode-generator-for-woocommerce") , array(
     81        $this,
     82        "pbarcode_enable_frontend"
     83    ) , 'pbar_shortcodesettings', "pbar_shortcodesetting",['class' => 'pbarcode_enable_frontend']);
     84
     85    add_settings_field("pbarcode_singlepage", esc_html__("Location on product page", "barcode-generator-for-woocommerce") , array(
     86        $this,
     87        "pbarcode_singlepage"
     88    ) , 'pbar_shortcodesettings', "pbar_shortcodesetting",['class' => 'pbarcode_singlepage']);
     89
     90    add_settings_field("pbarcode_wc_ptab_name", esc_html__("Change Text of Product Tab", "barcode-generator-for-woocommerce") , array(
     91        $this,
     92        "pbarcode_wc_ptab_name"
     93    ) , 'pbar_shortcodesettings', "pbar_shortcodesetting",['class' => 'pbarcode_wc_ptab_name']);
     94
     95
     96
     97    add_settings_field("barcode_for_signgle_Page", esc_html__("Shortcode for Single Product Page", "barcode-generator-for-woocommerce") , array(
     98        $this,
     99        "barcode_for_signgle_Page"
     100    ) , 'pbar_shortcodesettings', "pbar_shortcodesetting",['class' => 'barcode_for_signgle_Page']);
     101    }
     102        function pbarcode_productpagese() {
     103        return true;
     104    }
     105function pbarcode_enable_frontend() {
     106        $options = get_option('pbrshortcodesettings');
     107        printf('<input type="checkbox" name="pbrshortcodesettings[pbarcode_enable_frontend]" class="pbrapple-switch"   value="pbarcode_enable_frontend" %s id="pbarcode_enable_frontend">', (isset($options['pbarcode_enable_frontend']) && $options['pbarcode_enable_frontend'] === 'pbarcode_enable_frontend') ? 'checked' : '');
     108    }
     109
     110
     111    function barcode_for_signgle_Page() {
     112        printf('<input type="text" class="shortcodereadoly" value="[pbar-display]" id="pbr_stcode_management">');
     113    }
     114    function pbarcode_singlepage()
     115    {
     116
     117    $options = get_option('pbrshortcodesettings');
     118    $pbrppagelocation = isset($options['pbrppagelocation']) ? $options['pbrppagelocation'] : 'bellowofcart';
     119
     120    ?>
     121    <select class="select"  name="pbrshortcodesettings[pbrppagelocation]" id="pbrppagelocation">
     122       
     123    <option value="inatab" <?php echo esc_attr($pbrppagelocation) == 'inatab' ? 'selected' : '' ?>><?php esc_html_e('In a tab', 'barcode-generator-for-woocommerce'); ?></option>
     124    <option value="endofpmeta" <?php echo esc_attr($pbrppagelocation) == 'endofpmeta' ? 'selected' : '' ?>><?php esc_html_e('End of Product Meta', 'barcode-generator-for-woocommerce'); ?></option>   
     125
     126    <option value="bellowofcart" <?php echo esc_attr($pbrppagelocation) == 'bellowofcart' ? 'selected' : '' ?>><?php esc_html_e('Below the cart button', 'barcode-generator-for-woocommerce'); ?></option>
     127
     128     <option value="abvofcart" <?php echo esc_attr($pbrppagelocation) == 'abvofcart' ? 'selected' : '' ?>><?php esc_html_e('Above the cart Button', 'barcode-generator-for-woocommerce'); ?></option>   
     129
     130    </select>
     131
     132    <?php
     133}
     134    function pbarcode_wc_ptab_name()
     135    {
     136
     137        $options = get_option('pbrshortcodesettings');
     138        $pbarcode_wc_ptab_name = isset($options['pbarcode_wc_ptab_name']) ? $options['pbarcode_wc_ptab_name'] : 'Barcode';
     139
     140        printf('<input type="text" name="pbrshortcodesettings[pbarcode_wc_ptab_name]" value="%s" placeholder="e:g: Barcode" id="pbarcode_wc_ptab_name">', esc_attr($pbarcode_wc_ptab_name));
     141
     142    }
     143
    71144
    72145    function barcode_color_settings()
     
    242315<?php
    243316        $placeholder = esc_html__('To display all barcodes under a category, input -1', 'barcode-generator-for-woocommerce');
    244         printf('<li><strong><label for="pbr_dwnper_page"> ' . esc_html__('Barcode Qty :', 'barcode-generator-for-woocommerce') . '</label></strong><input type="number" name="pbr_downlaod_page[pbr_dwnper_page]" value="%s" min="-1" placeholder="e.g:10" id="pbr_dwnper_page"><p class="pancehids"><em style="color: #9b9b9b;">%s</em></p></li>', $pbr_dwnper_page, $placeholder);
     317        printf('<li><strong><label for="pbr_dwnper_page"> ' . esc_html__('Barcode Qty :', 'barcode-generator-for-woocommerce') . '</label></strong><input type="number" name="pbr_downlaod_page[pbr_dwnper_page]" value="%s" min="-1" placeholder="e.g:10" id="pbr_dwnper_page"><p class="pancehids"><em style="color: #9b9b9b;">%s</em></p></li>', esc_attr($pbr_dwnper_page), esc_attr($placeholder));
    245318
    246319
  • barcode-generator-for-woocommerce/trunk/admin/css/barcodgenfwoo-admin.css

    r3249803 r3257795  
     1tr.pbarcode_productpagese th {
     2    font-size: 20px!important;
     3}
    14.pbrbarcometabinov.potyfetures a {
    25    display: inline-block;
     
    7982    width: 86%
    8083}
    81 
     84tr.pbarcode_singlepagedesign p, tr.orders_bareabled p, tr.barcode_invoicenotes p, tr.barcode_print_iobicea p, tr.pbarcode_enable_frontend p, tr.pbarcode_singlepage p, tr.pbarcode_downlaobtn p, tr.pbarcode_downlaobtn p, tr.barcode_for_signgle_Page p, tr.pbarcode_enable_shoppage p, tr.parcode_choosebalabel p, tr.parcode_linegap p, tr.parcode_barnd p, tr.parcode_prbehavior p, tr.parcode_pricecolor p, tr.orders_page_orbarcode p, tr.pdfshoes_types p, tr.orders_pdf_product p, tr.pbarcode_widths p, tr.orderbar_height p, tr.orders_types p, tr.barcode_print_css_labess p, tr.pbarcode_values p, tr.orders_mail_product p, tr.orders_page_product p, tr.barcode_print_css_labe p, tr.parcode_labeltaxonmy p, tr.parcode_titcolor p, tr.parcode_madeby p, tr.parcode_height p, tr.parcode_width p, tr.parcode_tye p, tr.parcode_vakus p, tr.parcode_format p, tr.parcode_hidemobi p {
     85    max-width: 77%;
     86    font-weight: 400;
     87    color: #818181;
     88}
    8289button.pbdwnssubmit,
    8390.pbrpintsubmit {
     
    352359}
    353360
    354 div#pbrtab-content a {
    355     color: #03A9F4;
    356 }
    357361
    358362.qrc_pro_ftcs_cont img {
     
    460464}
    461465
    462 tr.orders_page_orbarcode p,
    463 tr.pdfshoes_types p,
    464 tr.orders_pdf_product p,
    465 tr.barcogencode_widths p,
    466 tr.orderbar_height p,
    467 tr.orders_types p,
    468 tr.barcode_print_css_labess p,
    469 tr.pbarcode_values p,
    470 tr.orders_mail_product p,
    471 tr.orders_page_product p,
    472 tr.barcode_print_css_labe p,
    473 tr.parcode_labeltaxonmy p,
    474 tr.parcode_titcolor p,
    475 tr.parcode_madeby p,
    476 tr.parcode_height p,
    477 tr.parcode_width p,
    478 tr.parcode_tye p,
    479 tr.parcode_vakus p,
    480 tr.parcode_format p,
    481 tr.parcode_hidemobi p {
    482     max-width: 77%;
    483     font-weight: normal;
    484     color: #818181;
    485 }
     466
    486467
    487468.pbrmetaperid {
     
    17891770    box-shadow: none;
    17901771}
    1791 
    1792 .barcogen_dashboard_wrap table tr {
    1793     border-bottom: 1px solid #ddd;
    1794 }
    1795 
     1772tr.pbarcode_productpagese {
     1773    border-bottom: 1px solid #ccc;
     1774}
    17961775ul#pbrtabs-nav {
    17971776    display: flex;
     
    18791858    max-width: 60%;
    18801859}
    1881 
     1860span.pbrpreview {
     1861    text-align: center;
     1862    text-transform: uppercase;
     1863    color: #000;
     1864    padding: 4px;
     1865    display: block;
     1866    font-size: 20px;
     1867    letter-spacing: 2px;
     1868}
    18821869.bacogern-md-4 {
    1883     background: #fbe521;
    1884     max-width: 30%;
     1870    min-width: 32%;
     1871    background: #fbe521;
    18851872}
    18861873
  • barcode-generator-for-woocommerce/trunk/admin/extenstion/DlaodVAriable.php

    r3249803 r3257795  
    8787    echo  '<tr id ="prod_barcode_list" style="margin-bottom:10px;margin-right: 10px;">
    8888    <td  data-label="Product Type">variable child (PRO)</td>
    89     <td  data-label="Product Name"><a href="'.get_the_permalink($pbr_id).'">' . $pbr_title . '</a></td>
    90     <td  data-label="Product Image">' .$images. '</td>
     89    <td  data-label="Product Name"><a href="'.get_the_permalink(esc_attr($pbr_id)).'">' . esc_html($pbr_title) . '</a></td>
     90    <td  data-label="Product Image">' .wp_kses_post($images). '</td>
    9191    <td  data-label="Barcode Number"></td>
    9292
     
    110110}
    111111    echo  '<tr id ="prod_barcode_list" style="margin-bottom:10px;margin-right: 10px;">
    112     <td  data-label="Product Type">' . $pba_type . '</td>
     112    <td  data-label="Product Type">' . esc_html($pba_type) . '</td>
    113113    <td  data-label="Product Name"><a href="'.get_the_permalink().'">' . get_the_title() . '</a></td>
    114     <td  data-label="Product Image">' .$images. '</td>
    115     <td  data-label="Barcode Number">' .$printSju.'</td>
     114    <td  data-label="Product Image">' .wp_kses_post($images). '</td>
     115    <td  data-label="Barcode Number">' .esc_html($printSju).'</td>
    116116
    117     <td  data-label="Product Barcode">'.$pbarlef.'</td></tr>';
     117    <td  data-label="Product Barcode">'.wp_kses_post($pbarlef).'</td></tr>';
  • barcode-generator-for-woocommerce/trunk/admin/extenstion/datapbarcodes.php

    r3249803 r3257795  
    33 *
    44 * @link       https://sharabindu.com
    5  * @since      1.0.2
     5 * @since      1.0.3
    66 *
    77 * @package    barcode-generator-for-woocommerce
     
    6060        $qr_print_fontfamily = isset($options['qr_print_fontfamily']) ? $options['qr_print_fontfamily'] : 'sans-serif';
    6161
    62     $product = wc_get_product(get_the_ID());
    63 if ($qr_print_title_display == 'yes')
    64                 {
    65                     $title_show = '<li class="pbr_title_print" style="color:' . $barcogen_title_color . ';font-size:' . $barcogen_title_font . 'px">' . get_the_title() . '</li>';
    66                 }
    67                 else
    68                 {
    69                     $title_show = '';
    70                 }
    71                 if ($qr_print_price_display == 'yes' && get_post_type() == 'product')
    72                 {
    73                     $price_show = '<li class="pbrprice_print" style="color:' . $barcogen_price_color . ';font-size:' . $barcogen_price_font . 'px">' . $product->get_price_html() . '</li>';
    74                 }
    75                 else
    76                 {
    77                     $price_show = '';
    78                 }
    79 
    80                 if ($barcogencode_types == 'svg')
    81                 {
    82                     $barcogencode_typess = '<svg id="Probarcode_metabox"></svg>';
    83                 }
    84                 else
    85                 {
    86                     $barcogencode_typess = '<img id="Probarcode_metabox">';
    87                 }
  • barcode-generator-for-woocommerce/trunk/admin/extenstion/pbarcode_download.php

    r3249803 r3257795  
    44    {
    55
    6 
     6    $nonce = wp_create_nonce( 'barcoddownload-nonce' );
     7    if ( ! wp_verify_nonce( $nonce, 'barcoddownload-nonce' ) ) return;
    78    ?>
    89
     
    2122        $pbr_dwn_order = isset($dwnoptions['pbr_dwn_order']) ? $dwnoptions['pbr_dwn_order'] : 'DESC';
    2223
    23     $paged = isset($_GET['paged']) ? $_GET['paged'] : 1;
     24    $paged = isset($_GET['paged']) ? wp_unslash($_GET['paged']) : 1;
    2425    if ($pbr_dwn_cat_type == 'all')
    2526    {
     
    9596            if ($max_pages > $paged)
    9697            {
    97                 echo '<a  id="pbrloadmoreDownlaod" href="admin.php?page=pbar_downbar&paged=' . $nextpage . '">' . esc_html__('Load More', 'barcode-generator-for-woocommerce') . '</a>';
     98                echo '<a  id="pbrloadmoreDownlaod" href="admin.php?page=pbar_downbar&paged=' .wp_kses_post($nextpage). '">' . esc_html__('Load More', 'barcode-generator-for-woocommerce') . '</a>';
    9899            }
    99100            ?>
  • barcode-generator-for-woocommerce/trunk/admin/extenstion/preview-extntion.php

    r3249803 r3257795  
    33 *
    44 * @link       https://sharabindu.com
    5  * @since      1.0.2
     5 * @since      1.0.3
    66 *
    77 * @package    barcode-generator-for-woocommerce
     
    4242   
    4343
    44     echo '<div class="loaderpsd">Loading...</div><div id="lpreviewwrap"><input class="form-control" id="userInput" type="hidden" value="'.esc_attr($printSju).'" placeholder="Barcode" autofocus><ul id="prbpreviewpass" class="master_barcode djhfdhfuh" style="list-style:none;position:sticky"><li><img id="barcodedemo_"></li></ul><div class="barcogen_freeftcs_cont">
    45     <div class="parccintr">Go to <span class="dashicons-before dashicons-archive"></span> <a href="edit.php?post_type=product" style="color:#2c2c2c">Products</a>, then find the "View Barcode" column</div></div></div>';
     44    echo '<div class="loaderpsd">Loading...</div><div id="lpreviewwrap"><span class="pbrpreview">Preview</span><input class="form-control" id="userInput" type="hidden" value="'.esc_attr($printSju).'" placeholder="Barcode" autofocus><ul id="prbpreviewpass" class="master_barcode djhfdhfuh" style="list-style:none;position:sticky"><li><img id="barcodedemo_"></li></ul></div>';
    4645
  • barcode-generator-for-woocommerce/trunk/admin/js/barcodgenfwoo-admin.js

    r3222773 r3257795  
    276276
    277277      $('.parcode_titcolor th').append("<p>This is the product title and price Typography section</p>");
     278
     279
     280$('.pbarcode_singlepage th').append("<p>Select where you want to see the barcode on the WooCommerce Single product page</p>");
     281      $('.pbarcode_enable_frontend th').append("<p>Click to turn off automatically display the barcode on the single product page</p>");
     282      $('.barcode_for_signgle_Page th').append("<p>This is the shortcode for generating barcode for single product page</p>");
     283
     284
     285      $('tr.pbarcode_singlepagedesign th').append("<p>Choose barcode style and display settings</p>");
     286
     287
     288
     289      $('select#pbrppagelocation').change(function () {
     290         if ($(this).val() == 'inatab') {
     291            $('.pbarcode_wc_ptab_name').show();
     292         } else {
     293            $('.pbarcode_wc_ptab_name').hide();
     294         }
     295      });
     296      if ($('select#pbrppagelocation').val() == 'inatab') {
     297         $('.pbarcode_wc_ptab_name').show();
     298      } else {
     299         $('.pbarcode_wc_ptab_name').hide();
     300      }
     301
     302
     303
     304
     305     
    278306      $('#barcogendesingsubmit').on('submit', function () {
    279307         $('.qrcintegrates').addClass("pbrfancyLoaderCss");
     
    289317         return false;
    290318      });
     319     
     320      $('#barcogenshortcodesub').on('submit', function () {
     321         $('.qrcintegrates').addClass("pbrfancyLoaderCss");
     322         $('.qrcintegrates_djkfhjhj').hide();
     323         var b = $(this).serialize();
     324         $.post('options.php', b).error(function () {
     325            alert('error')
     326         }).success(function () {
     327            $(".qrcintegrates").removeClass("pbrfancyLoaderCss");
     328            $('.qrcintegrates_djkfhjhj').show();
     329            $('.qrcintegrates_djkfhjhj').html('<span class="dashicons dashicons-saved"></span>')
     330         });
     331         return false;
     332      });
    291333   })
    292334})(jQuery);
     
    295337(function ($) {
    296338
    297    jQuery(document).ready(function ($) {
    298 
    299 
    300       // Suffix that will be used on the classes of the content divs.
    301       var tab_suffix = '-tab';
    302 
    303       // Not necessary, just to enable people to choose whatever tab_suffix they want.
    304       function escape_regexp(str) {
    305          return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
    306       }
    307 
    308       // Get the class ending with tab_suffix from an element.
    309       function get_tab_name_from_class(el) {
    310          var tab_class_pattern = new RegExp('\\S*' + escape_regexp(tab_suffix));
    311          if ($(el) && $(el).attr('class')) {
    312             return $(el).attr('class').match(tab_class_pattern)[0];
    313          }
    314       }
    315 
    316       // Update the dom with the selected tab.
    317       function hash_content_update() {
    318 
    319          var active_section,
    320             tab_names;
    321 
    322          // Get all classes ending with -tab from div elements directly inside #pbrtab-content.
    323          tab_names = $('div#pbrtab-content > div').map(function () {
    324             var tab_name = get_tab_name_from_class($(this));
    325             if (tab_name) {
    326                return tab_name.split(tab_suffix)[0];
    327             }
    328          }).get();
    329 
    330          if (tab_names.length > 0) {
    331 
    332             // Show first tab initially.
    333             active_section = tab_names[0];
    334             if (document.location.href.split('#')[1] && tab_names.indexOf(document.location.href.split('#')[1]) > -1) {
    335                active_section = document.location.href.split('#')[1];
    336             }
    337             $('div#pbrtab-content div.active').removeClass('active');
    338             $('div#pbrtab-content div.' + active_section + tab_suffix).addClass('active');
    339             $('div.pbrtabs ul li.active').removeClass('active');
    340             $('div.pbrtabs ul li a[href="#' + active_section + '"]').closest('li').addClass('active');
    341 
    342          }
    343       }
    344       $(window).on('bind', 'hashchange', function () {
    345          hash_content_update();
    346       });
    347 
    348       hash_content_update();
    349 
    350    });
     339      // Show the first tab and hide the rest
     340      $('#pbrtabs-nav li:first-child').addClass('active');
     341      $('.pbrtab-content').hide();
     342      $('.pbrtab-content:first').show();
     343
     344      // Click function
     345      $('#pbrtabs-nav li').click(function () {
     346         $('#pbrtabs-nav li').removeClass('active');
     347         $(this).addClass('active');
     348         $('.pbrtab-content').hide();
     349
     350         var activeTab = $(this).find('a').attr('href');
     351         $(activeTab).fadeIn();
     352         return false;
     353      });
    351354
    352355}(jQuery));
  • barcode-generator-for-woocommerce/trunk/admin/js/barcodgenfwoo.js

    r3249803 r3257795  
    4949
    5050
    51             function printDiv() {
    52                var printContents = document.getElementById("printarea").innerHTML;
    53                var originalContents = document.body.innerHTML;
    54                document.body.innerHTML = printContents;
    55                window.print();
    56                document.body.innerHTML = originalContents;
    57             }
    5851
    5952         });
     
    6154      barcogencodemetabox();
    6255
    63       function barcodgenfwoomodalwrapper() {
    64          jQuery(".barcodgenfwoomodalwrapper").each(function () {
    65             var modlabutton = $(this).find('.barcodgenfwoo-modal-toggle');
    66             var modla = $(this).find('.barcodgenfwoo-modal');
    67             $(modlabutton).on('click', function (e) {
    68                e.preventDefault();
    69                $(modla).toggleClass('is-visible');
    70             });
    71 
    72          });
    73       }
    74       barcodgenfwoomodalwrapper();
    7556
    7657
  • barcode-generator-for-woocommerce/trunk/barcode-generator-for-woocommerce.php

    r3249803 r3257795  
    44 * Plugin URI:        https://wordpress.org/plugins/barcode-generator-for-woocommerce
    55 * Description:      Auto barcode generator for WooCommerce products.
    6  * Version:           1.0.2
     6 * Version:           1.0.3
    77 * Author:            Sharabindu
    88 * Author URI:        https://sharabindu.com
     
    2323/**
    2424 * Currently plugin version.
    25  * Start at version 1.0.2 and use SemVer - https://semver.org
     25 * Start at version 1.0.3 and use SemVer - https://semver.org
    2626 * Rename this for your plugin and update it as you release new versions.
    2727 */
    28 define('BARCODE_GENERATOR_VERSION', '1.0.2');
     28define('BARCODE_GENERATOR_VERSION', '1.0.3');
    2929
    3030/**
     
    8383 * not affect the page life cycle.
    8484 *
    85  * @since    1.0.2
     85 * @since    1.0.3
    8686 */
    8787function barcodgenfwoo_run()
  • barcode-generator-for-woocommerce/trunk/includes/class-barcodgenfwoo-activator.php

    r3249803 r3257795  
    55 *
    66 * @link       https://sharabindu.com
    7  * @since      1.0.2
     7 * @since      1.0.3
    88 *
    99 * @package    barcode-generator-for-woocommerce
     
    1616 * This class defines all code necessary to run during the plugin's activation.
    1717 *
    18  * @since      1.0.2
     18 * @since      1.0.3
    1919 * @package    barcode-generator-for-woocommerce
    2020 * @subpackage barcode-generator-for-woocommerce/includes
     
    2828     * Long Description.
    2929     *
    30      * @since    1.0.2
     30     * @since    1.0.3
    3131     */
    3232    public static function activate() {
  • barcode-generator-for-woocommerce/trunk/includes/class-barcodgenfwoo-deactivator.php

    r3249803 r3257795  
    55 *
    66 * @link       https://sharabindu.com
    7  * @since      1.0.2
     7 * @since      1.0.3
    88 *
    99 * @package    barcode-generator-for-woocommerce
     
    1616 * This class defines all code necessary to run during the plugin's deactivation.
    1717 *
    18  * @since      1.0.2
     18 * @since      1.0.3
    1919 * @package    barcode-generator-for-woocommerce
    2020 * @subpackage barcode-generator-for-woocommerce/includes
     
    2828     * Long Description.
    2929     *
    30      * @since    1.0.2
     30     * @since    1.0.3
    3131     */
    3232    public static function deactivate() {
  • barcode-generator-for-woocommerce/trunk/includes/class-barcodgenfwoo-loader.php

    r3249803 r3257795  
    55 *
    66 * @link       https://sharabindu.com
    7  * @since      1.0.2
     7 * @since      1.0.3
    88 *
    99 * @package    barcode-generator-for-woocommerce
     
    2727     * The array of actions registered with WordPress.
    2828     *
    29      * @since    1.0.2
     29     * @since    1.0.3
    3030     * @access   protected
    3131     * @var      array    $actions    The actions registered with WordPress to fire when the plugin loads.
     
    3636     * The array of filters registered with WordPress.
    3737     *
    38      * @since    1.0.2
     38     * @since    1.0.3
    3939     * @access   protected
    4040     * @var      array    $filters    The filters registered with WordPress to fire when the plugin loads.
     
    4545     * Initialize the collections used to maintain the actions and filters.
    4646     *
    47      * @since    1.0.2
     47     * @since    1.0.3
    4848     */
    4949    public function __construct() {
     
    5757     * Add a new action to the collection to be registered with WordPress.
    5858     *
    59      * @since    1.0.2
     59     * @since    1.0.3
    6060     * @param    string               $hook             The name of the WordPress action that is being registered.
    6161     * @param    object               $component        A reference to the instance of the object on which the action is defined.
     
    7171     * Add a new filter to the collection to be registered with WordPress.
    7272     *
    73      * @since    1.0.2
     73     * @since    1.0.3
    7474     * @param    string               $hook             The name of the WordPress filter that is being registered.
    7575     * @param    object               $component        A reference to the instance of the object on which the filter is defined.
     
    8686     * collection.
    8787     *
    88      * @since    1.0.2
     88     * @since    1.0.3
    8989     * @access   private
    9090     * @param    array                $hooks            The collection of hooks that is being registered (that is, actions or filters).
     
    113113     * Register the filters and actions with WordPress.
    114114     *
    115      * @since    1.0.2
     115     * @since    1.0.3
    116116     */
    117117    public function run() {
  • barcode-generator-for-woocommerce/trunk/includes/class-barcodgenfwoo-number.php

    r3249803 r3257795  
    77 *
    88 * @link       https://sharabindu.com
    9  * @since      1.0.2
     9 * @since      1.0.3
    1010 *
    1111 * @package    barcode-generator-for-woocommerce
     
    4444        ));
    4545
    46         add_action('woocommerce_product_meta_end', array(
    47             $this,
    48             'pabr_frontend_displaynumber'
    49         ));
    50 
    51 
    52         add_filter( 'manage_edit-product_columns', array(
    53             $this,'pbrproducts_visibility_column'), 9999 );
    5446
    5547        add_filter('manage_edit-product_columns', array(
     
    6052    }
    6153
    62  
    63     function pbrproducts_visibility_column( $columns ){
    64        $columns['barcodes'] = 'View barcode';
    65        return $columns;
    66     }
    6754
    6855    function pbr_admin_products_visibility_column($columns)
     
    173160
    174161
    175 
    176    
    177 
    178     function pabr_frontend_displaynumber()
    179     {
    180 
    181 
    182             $options = get_option('pbarginerator_print_option');
    183             $pbarcode_value = isset($options['pbarcode_value']) ? $options['pbarcode_value'] : 'pbrnumber';
    184         $enablefrontend = isset($options['barcogencode_enable_frontend']) && $options['barcogencode_enable_frontend'] === 'barcogencode_enable_frontend' ? 'checked' : '';
    185            if($enablefrontend != 'checked'){
    186             echo '<p id="pbrloaders">Loading...</p><p class="pbreotiri"><strong>' . esc_html__('Barcode', 'barcode-generator-for-woocommerce') . '</strong>: <span class="brlslds"></span></p>';
    187             }
    188        
    189     }
    190 
    191162}
    192163if (class_exists('barcodgenfwoo_numbergenrate'))
  • barcode-generator-for-woocommerce/trunk/includes/class-barcodgenfwoo.php

    r3249803 r3257795  
    88 *
    99 * @link       https://sharabindu.com
    10  * @since      1.0.2
     10 * @since      1.0.3
    1111 *
    1212 * @package    barcode-generator-for-woocommerce
     
    2323 * version of the plugin.
    2424 *
    25  * @since      1.0.2
     25 * @since      1.0.3
    2626 * @package    barcode-generator-for-woocommerce
    2727 * @subpackage barcode-generator-for-woocommerce/includes
     
    3434     * the plugin.
    3535     *
    36      * @since    1.0.2
     36     * @since    1.0.3
    3737     * @access   protected
    3838     * @var      barcodgenfwoo_Loader    $loader    Maintains and registers all hooks for the plugin.
     
    4343     * The unique identifier of this plugin.
    4444     *
    45      * @since    1.0.2
     45     * @since    1.0.3
    4646     * @access   protected
    4747     * @var      string    $plugin_name    The string used to uniquely identify this plugin.
     
    5252     * The current version of the plugin.
    5353     *
    54      * @since    1.0.2
     54     * @since    1.0.3
    5555     * @access   protected
    5656     * @var      string    $version    The current version of the plugin.
     
    6565     * the public-facing side of the site.
    6666     *
    67      * @since    1.0.2
     67     * @since    1.0.3
    6868     */
    6969    public function __construct() {
     
    7171            $this->version = BARCODE_GENERATOR_VERSION;
    7272        } else {
    73             $this->version = '1.0.2';
     73            $this->version = '1.0.3';
    7474        }
    7575        $this->plugin_name = 'barcode-generator-for-woocommerce';
     
    9494     * with WordPress.
    9595     *
    96      * @since    1.0.2
     96     * @since    1.0.3
    9797     * @access   private
    9898     */
     
    110110
    111111        require_once BARCODE_GENERATOR_PATH . 'admin/class_barcodgenfwoo-admin.php';
     112        require_once BARCODE_GENERATOR_PATH . 'includes/class-barcodgenfwoo-shortcode.php';
    112113       
    113114        $this->loader = new barcodgenfwoo_Loader();
     
    119120     * of the plugin.
    120121     *
    121      * @since    1.0.2
     122     * @since    1.0.3
    122123     * @access   private
    123124     */
     
    138139     * Run the loader to execute all of the hooks with WordPress.
    139140     *
    140      * @since    1.0.2
     141     * @since    1.0.3
    141142     */
    142143    public function run() {
     
    148149     * WordPress and to define internationalization functionality.
    149150     *
    150      * @since     1.0.2
     151     * @since     1.0.3
    151152     * @return    string    The name of the plugin.
    152153     */
     
    158159     * The reference to the class that orchestrates the hooks with the plugin.
    159160     *
    160      * @since     1.0.2
     161     * @since     1.0.3
    161162     * @return    barcodgenfwoo_Loader    Orchestrates the hooks of the plugin.
    162163     */
     
    168169     * Retrieve the version number of the plugin.
    169170     *
    170      * @since     1.0.2
     171     * @since     1.0.3
    171172     * @return    string    The version number of the plugin.
    172173     */
  • barcode-generator-for-woocommerce/trunk/languages/barcode-generator-woocommerce.pot

    r3249803 r3257795  
    33msgstr ""
    44"Project-Id-Version: \n"
    5 "POT-Creation-Date: 2025-03-03 21:29+0600\n"
     5"POT-Creation-Date: 2025-03-18 12:51+0600\n"
    66"PO-Revision-Date: 2024-12-22 22:51+0600\n"
    77"Last-Translator: \n"
     
    1717"X-Poedit-SearchPath-1: includes\n"
    1818
    19 #: admin/class_barcodgenfwoo-admin.php:140
     19#: admin/class_barcodgenfwoo-admin.php:141
    2020msgid "Settings"
    2121msgstr ""
    2222
    23 #: admin/class_barcodgenfwoo-admin.php:152
    24 #: includes/class-barcodgenfwoo-number.php:122
    25 #: includes/class-barcodgenfwoo-number.php:186
     23#: admin/class_barcodgenfwoo-admin.php:153
     24#: includes/class-barcodgenfwoo-number.php:109
    2625msgid "Barcode"
    2726msgstr ""
    2827
    29 #: admin/class_barcodgenfwoo-admin.php:175
     28#: admin/class_barcodgenfwoo-admin.php:178
    3029msgid "Pluign Page"
    3130msgstr ""
    3231
    33 #: admin/class_barcodgenfwoo-admin.php:176
     32#: admin/class_barcodgenfwoo-admin.php:179
    3433msgid "Pro Demo (Backend)"
    3534msgstr ""
    3635
    37 #: admin/class_barcodgenfwoo-admin.php:177
     36#: admin/class_barcodgenfwoo-admin.php:180
    3837msgid "Docs"
    3938msgstr ""
    4039
    41 #: admin/class_barcodgenfwoo-admin.php:184
     40#: admin/class_barcodgenfwoo-admin.php:187
    4241msgid "Download All Barcodes"
    4342msgstr ""
    4443
    45 #: admin/class_barcodgenfwoo-admin.php:185
    46 #: admin/class_barcodgenfwoo-admin.php:223
     44#: admin/class_barcodgenfwoo-admin.php:188
     45#: admin/class_barcodgenfwoo-admin.php:226
    4746msgid "Barcode Generator For WooCommerce Products"
    4847msgstr ""
    4948
    50 #: admin/class_barcodgenfwoo-admin.php:211
     49#: admin/class_barcodgenfwoo-admin.php:214
    5150msgid "Frontend Demo (PRO)"
    5251msgstr ""
    5352
    54 #: admin/class_barcodgenfwoo-admin.php:212
     53#: admin/class_barcodgenfwoo-admin.php:215
    5554msgid "Backend Demo (PRO)"
    5655msgstr ""
    5756
    58 #: admin/class_barcodgenfwoo-admin.php:213
     57#: admin/class_barcodgenfwoo-admin.php:216
    5958msgid "Get PRO"
    6059msgstr ""
    6160
    62 #: admin/class_barcodgenfwoo-admin.php:222
     61#: admin/class_barcodgenfwoo-admin.php:225
    6362msgid "Barcode Generator for WooCommerce"
    6463msgstr ""
    6564
    66 #: admin/class_barcodgenfwoo-dashboard.php:54
     65#: admin/class_barcodgenfwoo-dashboard.php:55
    6766msgid "Color Setting"
    6867msgstr ""
    6968
    70 #: admin/class_barcodgenfwoo-dashboard.php:60
     69#: admin/class_barcodgenfwoo-dashboard.php:61
    7170msgid "Barcode Content:"
    7271msgstr ""
    7372
    74 #: admin/class_barcodgenfwoo-dashboard.php:65
     73#: admin/class_barcodgenfwoo-dashboard.php:66
    7574msgid "Barcode Label Typography"
    7675msgstr ""
    7776
    78 #: admin/class_barcodgenfwoo-dashboard.php:78
     77#: admin/class_barcodgenfwoo-dashboard.php:74
     78msgid "Single Product Page"
     79msgstr ""
     80
     81#: admin/class_barcodgenfwoo-dashboard.php:80
     82msgid "Turn off product page auto display"
     83msgstr ""
     84
     85#: admin/class_barcodgenfwoo-dashboard.php:85
     86msgid "Location on product page"
     87msgstr ""
     88
     89#: admin/class_barcodgenfwoo-dashboard.php:90
     90msgid "Change Text of Product Tab"
     91msgstr ""
     92
     93#: admin/class_barcodgenfwoo-dashboard.php:97
     94msgid "Shortcode for Single Product Page"
     95msgstr ""
     96
     97#: admin/class_barcodgenfwoo-dashboard.php:151
    7998msgid "Barcode Color: "
    8099msgstr ""
    81100
    82 #: admin/class_barcodgenfwoo-dashboard.php:79
     101#: admin/class_barcodgenfwoo-dashboard.php:152
    83102msgid "Background Color: "
    84103msgstr ""
    85104
    86 #: admin/class_barcodgenfwoo-dashboard.php:99
     105#: admin/class_barcodgenfwoo-dashboard.php:172
    87106msgid "Font Size: "
    88107msgstr ""
    89108
    90 #: admin/class_barcodgenfwoo-dashboard.php:101
     109#: admin/class_barcodgenfwoo-dashboard.php:174
    91110msgid "Text Margin: "
    92111msgstr ""
    93112
    94 #: admin/class_barcodgenfwoo-dashboard.php:105
     113#: admin/class_barcodgenfwoo-dashboard.php:178
    95114msgid "Font Options: "
    96115msgstr ""
    97116
    98 #: admin/class_barcodgenfwoo-dashboard.php:114
     117#: admin/class_barcodgenfwoo-dashboard.php:187
    99118msgid "Text Align: "
    100119msgstr ""
    101120
    102 #: admin/class_barcodgenfwoo-dashboard.php:123
     121#: admin/class_barcodgenfwoo-dashboard.php:196
    103122msgid "Text Position: "
    104123msgstr ""
    105124
    106 #: admin/class_barcodgenfwoo-dashboard.php:225
     125#: admin/class_barcodgenfwoo-dashboard.php:298
    107126msgid "Choose Category: "
    108127msgstr ""
    109128
    110 #: admin/class_barcodgenfwoo-dashboard.php:227
     129#: admin/class_barcodgenfwoo-dashboard.php:300
    111130msgid "All"
    112131msgstr ""
    113132
    114 #: admin/class_barcodgenfwoo-dashboard.php:241
     133#: admin/class_barcodgenfwoo-dashboard.php:314
    115134msgid "Find barcodes by category"
    116135msgstr ""
    117136
    118 #: admin/class_barcodgenfwoo-dashboard.php:243
     137#: admin/class_barcodgenfwoo-dashboard.php:316
    119138msgid "To display all barcodes under a category, input -1"
    120139msgstr ""
    121140
    122 #: admin/class_barcodgenfwoo-dashboard.php:244
     141#: admin/class_barcodgenfwoo-dashboard.php:317
    123142msgid "Barcode Qty :"
    124143msgstr ""
    125144
    126 #: admin/class_barcodgenfwoo-dashboard.php:247
     145#: admin/class_barcodgenfwoo-dashboard.php:320
    127146msgid "Order By:"
    128147msgstr ""
    129148
    130 #: admin/class_barcodgenfwoo-dashboard.php:252
     149#: admin/class_barcodgenfwoo-dashboard.php:325
    131150msgid "ID  "
    132151msgstr ""
    133152
    134 #: admin/class_barcodgenfwoo-dashboard.php:253
     153#: admin/class_barcodgenfwoo-dashboard.php:326
    135154msgid "Title"
    136155msgstr ""
    137156
    138 #: admin/class_barcodgenfwoo-dashboard.php:254
     157#: admin/class_barcodgenfwoo-dashboard.php:327
    139158msgid "Date"
    140159msgstr ""
    141160
    142 #: admin/class_barcodgenfwoo-dashboard.php:255
     161#: admin/class_barcodgenfwoo-dashboard.php:328
    143162msgid "Name"
    144163msgstr ""
    145164
    146 #: admin/class_barcodgenfwoo-dashboard.php:256
     165#: admin/class_barcodgenfwoo-dashboard.php:329
    147166msgid "Modified"
    148167msgstr ""
    149168
    150 #: admin/class_barcodgenfwoo-dashboard.php:257
     169#: admin/class_barcodgenfwoo-dashboard.php:330
    151170msgid "Menu Order"
    152171msgstr ""
    153172
    154 #: admin/class_barcodgenfwoo-dashboard.php:258
     173#: admin/class_barcodgenfwoo-dashboard.php:331
    155174msgid "None"
    156175msgstr ""
    157176
    158 #: admin/class_barcodgenfwoo-dashboard.php:262
     177#: admin/class_barcodgenfwoo-dashboard.php:335
    159178msgid "Display barcode image as order by"
    160179msgstr ""
    161180
    162 #: admin/class_barcodgenfwoo-dashboard.php:265
     181#: admin/class_barcodgenfwoo-dashboard.php:338
    163182msgid "Order:"
    164183msgstr ""
    165184
    166 #: admin/class_barcodgenfwoo-dashboard.php:270
     185#: admin/class_barcodgenfwoo-dashboard.php:343
    167186msgid "DESC  "
    168187msgstr ""
    169188
    170 #: admin/class_barcodgenfwoo-dashboard.php:271
     189#: admin/class_barcodgenfwoo-dashboard.php:344
    171190msgid "ASC"
    172191msgstr ""
    173192
    174 #: admin/class_barcodgenfwoo-dashboard.php:274
     193#: admin/class_barcodgenfwoo-dashboard.php:347
    175194msgid "Display barcode image as order"
    176195msgstr ""
    177196
    178 #: admin/class_barcodgenfwoo-dashboard.php:279
     197#: admin/class_barcodgenfwoo-dashboard.php:352
    179198msgid "Apply Changes"
    180199msgstr ""
    181200
    182 #: admin/extenstion/pbarcode_download.php:62
     201#: admin/extenstion/pbarcode_download.php:63
    183202msgid "Product Type"
    184203msgstr ""
    185204
    186 #: admin/extenstion/pbarcode_download.php:63
     205#: admin/extenstion/pbarcode_download.php:64
    187206msgid "Product Name"
    188207msgstr ""
    189208
    190 #: admin/extenstion/pbarcode_download.php:64
     209#: admin/extenstion/pbarcode_download.php:65
    191210msgid "Product Image  "
    192211msgstr ""
    193212
    194 #: admin/extenstion/pbarcode_download.php:65
     213#: admin/extenstion/pbarcode_download.php:66
    195214msgid "Barcode Namber  "
    196215msgstr ""
    197216
    198 #: admin/extenstion/pbarcode_download.php:67
     217#: admin/extenstion/pbarcode_download.php:68
    199218msgid "Barcode  "
    200219msgstr ""
    201220
    202 #: admin/extenstion/pbarcode_download.php:97
     221#: admin/extenstion/pbarcode_download.php:98
    203222msgid "Load More"
    204223msgstr ""
    205224
    206 #: admin/extenstion/pbarcode_download.php:112
     225#: admin/extenstion/pbarcode_download.php:113
    207226msgid "No Product Found.."
    208227msgstr ""
     
    215234msgid "$20"
    216235msgstr ""
     236
     237#: includes/class-barcodgenfwoo-shortcode.php:115
     238msgid "The [pbar-display] shortcode only works on WooCommerce single product pages"
     239msgstr ""
  • barcode-generator-for-woocommerce/trunk/uninstall.php

    r3249803 r3257795  
    2121 *
    2222 * @link       https://sharabindu.com
    23  * @since      1.0.2
     23 * @since      1.0.3
    2424 *
    2525 * @package    barcode-generator-for-woocommerce
Note: See TracChangeset for help on using the changeset viewer.