id = 'compatibility'; $this->desc = __( 'Compatibility', 'ean-for-woocommerce' ); parent::__construct(); } /** * get_settings. * * @version 4.7.8 * @since 2.2.9 * * @todo (dev) `alg_wc_ean_wcfm_hints`: better default value? * @todo (desc) `alg_wc_ean_wcfm_add_generate_button`: better desc? */ function get_settings() { return array( array( 'title' => __( 'Plugin Compatibility Options', 'ean-for-woocommerce' ), 'type' => 'title', 'id' => 'alg_wc_ean_plugin_compatibility_options', ), array( 'title' => __( 'Google Listings & Ads', 'ean-for-woocommerce' ), 'desc' => __( 'Enable', 'ean-for-woocommerce' ), 'desc_tip' => sprintf( __( 'This will add EAN to the product data of the %s plugin.', 'ean-for-woocommerce' ), '' . __( 'Google Listings & Ads', 'ean-for-woocommerce' ) . '' ) . '
' . sprintf( __( 'After enabling the checkbox, go to "Marketing > Google Listings & Ads > Attributes > Create attribute rule", select the "GTIN" attribute, and then select %s in the "Use value from existing product field" dropdown box.', 'ean-for-woocommerce' ), '' . alg_wc_ean()->core->ean_key . '' ) . '
' . ( defined( 'WC_GLA_VERSION' ) ? sprintf( __( 'You may also want to "Sync All Products with Google Merchant Center" on the %s.', 'ean-for-woocommerce' ), '' . __( 'Google Listings & Ads connection testing page', 'ean-for-woocommerce' ) . '' ) : '' ), 'id' => 'alg_wc_ean_gla', 'default' => 'no', 'type' => 'checkbox', ), array( 'title' => __( 'Point of Sale for WooCommerce', 'ean-for-woocommerce' ), 'desc' => __( 'Enable', 'ean-for-woocommerce' ), 'desc_tip' => sprintf( __( 'This will add EAN to the product search of the %s plugin.', 'ean-for-woocommerce' ), '' . __( 'Point of Sale for WooCommerce', 'ean-for-woocommerce' ) . '' ) . '
' . __( 'Please note that "WooCommerce > Settings > EAN > General > Search" option must be enabled as well.', 'ean-for-woocommerce' ) . '
' . __( 'Alternatively you can add "EAN" to the "Scanning Fields" and "Product SKU" to the "Search Includes" options in "Point of Sale > Settings > Register".', 'ean-for-woocommerce' ) . '
' . '* ' . __( 'To enable searching with a scanner, add "EAN" field to the "Scanning Fields" option in "Point of Sale > Settings > Register".', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_wc_pos_search', 'default' => 'no', 'type' => 'checkbox', ), array( 'title' => __( 'Print Invoice & Delivery Notes for WooCommerce', 'ean-for-woocommerce' ), 'desc' => __( 'Enable', 'ean-for-woocommerce' ), 'desc_tip' => sprintf( __( 'This will show EAN in PDF documents of the %s plugin.', 'ean-for-woocommerce' ), '' . __( 'Print Invoice & Delivery Notes for WooCommerce', 'ean-for-woocommerce' ) . '' ), 'id' => 'alg_wc_ean_wcdn', 'default' => 'no', 'type' => 'checkbox', ), array( 'title' => __( 'WooCommerce PDF Invoices & Packing Slips', 'ean-for-woocommerce' ), 'desc' => __( 'Enable', 'ean-for-woocommerce' ), 'desc_tip' => sprintf( __( 'This will show EAN in PDF documents of the %s plugin.', 'ean-for-woocommerce' ), '' . __( 'WooCommerce PDF Invoices & Packing Slips', 'ean-for-woocommerce' ) . '' ), 'id' => 'alg_wc_ean_wpo_wcpdf', 'default' => 'no', 'type' => 'checkbox', ), array( 'desc' => __( 'Content', 'ean-for-woocommerce' ), 'desc_tip' => sprintf( __( 'Available placeholder: %s.', 'ean-for-woocommerce' ), '%ean%' ), 'id' => 'alg_wc_ean_wpo_wcpdf_options[content]', 'default' => '
' . '
' . esc_html( get_option( 'alg_wc_ean_title', __( 'EAN', 'ean-for-woocommerce' ) ) ) . ':' . '
' . '
' . '%ean%' . '
' . '
', 'type' => 'textarea', ), array( 'desc' => __( 'Position', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_wpo_wcpdf_position', 'default' => 'wpo_wcpdf_after_item_meta', 'type' => 'select', 'class' => 'chosen_select', 'options' => array( 'wpo_wcpdf_before_item_meta' => __( 'Before item meta', 'ean-for-woocommerce' ), 'wpo_wcpdf_after_item_meta' => __( 'After item meta', 'ean-for-woocommerce' ), ), ), array( 'title' => __( 'WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels', 'ean-for-woocommerce' ), 'desc' => __( 'Enable', 'ean-for-woocommerce' ), 'desc_tip' => sprintf( __( 'This will show EAN in PDF documents of the %s plugin.', 'ean-for-woocommerce' ), '' . __( 'WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels', 'ean-for-woocommerce' ) . '' ), 'id' => 'alg_wc_ean_wt_pklist', 'default' => 'no', 'type' => 'checkbox', ), array( 'desc' => __( 'Content', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_wt_pklist_options[content]', 'default' => '

EAN: [alg_wc_ean]

', 'type' => 'textarea', ), array( 'desc' => __( 'Position', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_wt_pklist_options[position]', 'default' => 'after_product_meta', 'type' => 'select', 'class' => 'chosen_select', 'options' => array( 'before_product_name' => __( 'Before item name', 'ean-for-woocommerce' ), 'after_product_name' => __( 'After item name', 'ean-for-woocommerce' ), 'before_product_meta' => __( 'Before item meta', 'ean-for-woocommerce' ), 'after_product_meta' => __( 'After item meta', 'ean-for-woocommerce' ), 'column' => __( 'As a separate column', 'ean-for-woocommerce' ), ), ), array( 'desc' => __( 'Documents', 'ean-for-woocommerce' ) . '
' . sprintf( __( 'Can be a comma-separated list, e.g.: %s.', 'ean-for-woocommerce' ), '' . implode( ',', array( 'invoice', 'packinglist', 'deliverynote', 'dispatchlabel' ) ) . '' ), 'desc_tip' => __( 'Leave empty to include in all documents.', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_wt_pklist_options[documents]', 'default' => '', 'type' => 'text', ), array( 'desc' => __( 'Column title', 'ean-for-woocommerce' ), 'desc_tip' => __( 'Used only if the "Position" option is set to the "As a separate column".', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_wt_pklist_options[column_title]', 'default' => __( 'EAN', 'ean-for-woocommerce' ), 'type' => 'text', ), array( 'desc' => sprintf( __( 'Column HTML %s', 'ean-for-woocommerce' ), 'class' ), 'desc_tip' => __( 'Used only if the "Position" option is set to the "As a separate column".', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_wt_pklist_options[column_class]', 'default' => 'wfte_product_table_head_ean wfte_text_center', 'type' => 'text', ), array( 'desc' => sprintf( __( 'Column HTML %s', 'ean-for-woocommerce' ), 'style' ), 'desc_tip' => __( 'Used only if the "Position" option is set to the "As a separate column".', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_wt_pklist_options[column_style]', 'default' => '', 'type' => 'text', ), array( 'title' => __( 'WooCommerce Customer / Order / Coupon Export', 'ean-for-woocommerce' ), 'desc' => __( 'Enable', 'ean-for-woocommerce' ), 'desc_tip' => sprintf( __( 'This will add %s column to the order items export of the %s plugin.', 'ean-for-woocommerce' ), 'item_ean', '' . __( 'WooCommerce Customer / Order / Coupon Export', 'ean-for-woocommerce' ) . '' ), 'id' => 'alg_wc_ean_wc_customer_order_export', 'default' => 'no', 'type' => 'checkbox', ), array( 'title' => __( 'Dokan', 'ean-for-woocommerce' ), 'desc' => __( 'Enable', 'ean-for-woocommerce' ), 'desc_tip' => sprintf( __( 'This will show EAN in vendor product form of the %s plugin.', 'ean-for-woocommerce' ), '' . __( 'Dokan', 'ean-for-woocommerce' ) . '' ), 'id' => 'alg_wc_ean_dokan', 'default' => 'no', 'type' => 'checkbox', ), array( 'desc' => __( 'Required', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_dokan_required', 'default' => 'no', 'type' => 'checkbox', ), array( 'desc' => sprintf( __( 'Required HTML, e.g.: %s', 'ean-for-woocommerce' ), '' . esc_html( ' *' ) . '' ), 'id' => 'alg_wc_ean_dokan_required_html', 'default' => '', 'type' => 'textarea', ), array( 'desc' => __( 'Title', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_dokan_title', 'default' => __( 'EAN', 'ean-for-woocommerce' ), 'type' => 'text', ), array( 'desc' => __( 'Placeholder', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_dokan_placeholder', 'default' => __( 'Product EAN...', 'ean-for-woocommerce' ), 'type' => 'text', ), array( 'desc' => __( 'Description', 'ean-for-woocommerce' ) . '
' . sprintf( __( 'You can use HTML and shortcodes here, e.g.: %s', 'ean-for-woocommerce' ), '' . esc_html( '
[alg_wc_ean_is_valid] | [alg_wc_ean_is_unique]
' ) . '
' ), 'id' => 'alg_wc_ean_dokan_desc', 'default' => '', 'type' => 'textarea', 'css' => 'height:100px;', ), array( 'title' => __( 'WCFM', 'ean-for-woocommerce' ), 'desc_tip' => sprintf( __( 'This will show EAN in product forms of the %s and %s plugins.', 'ean-for-woocommerce' ), '' . __( 'WCFM', 'ean-for-woocommerce' ) . '', '' . __( 'WCFM Marketplace', 'ean-for-woocommerce' ) . '' ), 'desc' => __( 'Enable', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_wcfm', 'default' => 'no', 'type' => 'checkbox', ), array( 'desc' => __( 'Title', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_wcfm_title', 'default' => __( 'EAN', 'ean-for-woocommerce' ), 'type' => 'text', ), array( 'desc' => __( 'Placeholder', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_wcfm_placeholder', 'default' => __( 'Product EAN...', 'ean-for-woocommerce' ), 'type' => 'text', ), array( 'desc' => __( 'Hints', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_wcfm_hints', 'default' => __( 'The International Article Number (also known as European Article Number or EAN) is a standard describing a barcode symbology and numbering system used in global trade to identify a specific retail product type, in a specific packaging configuration, from a specific manufacturer.', 'ean-for-woocommerce' ), 'type' => 'textarea', 'css' => 'height:110px;', ), array( 'desc' => __( 'Add "Generate" button', 'ean-for-woocommerce' ), 'desc_tip' => sprintf( __( 'This will add "Generate %s" button to the vendor product edit pages.', 'ean-for-woocommerce' ), get_option( 'alg_wc_ean_title', __( 'EAN', 'ean-for-woocommerce' ) ) ), 'id' => 'alg_wc_ean_wcfm_add_generate_button', 'default' => 'no', 'type' => 'checkbox', ), array( 'title' => __( 'MultiVendorX', 'ean-for-woocommerce' ), 'desc' => __( 'Enable', 'ean-for-woocommerce' ), 'desc_tip' => sprintf( __( 'This will show EAN in vendor product form of the %s plugin.', 'ean-for-woocommerce' ), '' . __( 'MultiVendorX', 'ean-for-woocommerce' ) . '' ), 'id' => 'alg_wc_ean_mvx', 'default' => 'no', 'type' => 'checkbox', ), array( 'desc' => __( 'Title', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_mvx_title', 'default' => __( 'EAN:', 'ean-for-woocommerce' ), 'type' => 'text', ), array( 'desc' => __( 'Placeholder', 'ean-for-woocommerce' ), 'id' => 'alg_wc_ean_mvx_placeholder', 'default' => '', 'type' => 'text', ), array( 'type' => 'sectionend', 'id' => 'alg_wc_ean_plugin_compatibility_options', ), ); } } endif; return new Alg_WC_EAN_Settings_Compatibility();