init ( $faq_file_name, $faq_plugin_name ); new FAQ_TS_Welcome ( $faq_plugin_name, $faq_plugin_prefix, $faq_locale, $faq_plugin_folder_name, $faq_plugin_dir_name, $faq_get_previous_version ); $ts_pro_faq = self::faq_get_faq (); new FAQ_TS_Faq_Support( $faq_plugin_name, $faq_plugin_prefix, $faq_plugins_page, $faq_locale, $faq_plugin_folder_name, $faq_plugin_slug, $ts_pro_faq, 'faq_support_page' ); $ts_pro_notices = self::faq_get_notice_text (); new FAQ_ts_pro_notices( $faq_plugin_name, $faq_lite_plugin_prefix, $faq_plugin_prefix, $ts_pro_notices, $faq_file_name, $faq_pro_file_name ); } } /** * It will retrun the plguin name. * @return string $ts_plugin_name Name of the plugin */ public static function ts_get_plugin_name () { $ordd_plugin_dir = dirname ( dirname ( __FILE__ ) ); $ordd_plugin_dir .= '/plugin.php'; $ts_plugin_name = ''; $plugin_data = get_file_data( $ordd_plugin_dir, array( 'name' => 'Plugin Name' ) ); if ( ! empty( $plugin_data['name'] ) ) { $ts_plugin_name = $plugin_data[ 'name' ]; } return $ts_plugin_name; } /** * It will retrun the Plugin text Domain * @return string $ts_plugin_domain Name of the Plugin domain */ public static function ts_get_plugin_locale () { $ordd_plugin_dir = dirname ( dirname ( __FILE__ ) ); $ordd_plugin_dir .= '/plugin.php'; $ts_plugin_domain = ''; $plugin_data = get_file_data( $ordd_plugin_dir, array( 'domain' => 'Text Domain' ) ); if ( ! empty( $plugin_data['domain'] ) ) { $ts_plugin_domain = $plugin_data[ 'domain' ]; } return $ts_plugin_domain; } /** * It will Display the notices in the admin dashboard for the pro vesion of the plugin. * @return array $ts_pro_notices All text of the notices */ public static function faq_get_notice_text () { $ts_pro_notices = array(); $faq_locale = self::ts_get_plugin_locale(); $message_first = wp_kses_post ( __( 'Thank you for using WooCommerce Print Invoice & Delivery Note plugin! Now make your deliveries more accurate by allowing customers to select their preferred delivery date & time from Product Delivery Date Pro for WooCommerce. Get it now!', $faq_locale ) ); $message_two = wp_kses_post ( __( 'Never login to your admin to check your deliveries by syncing the delivery dates to the Google Calendar from Product Delivery Date Pro for WooCommerce. Get it now!', $faq_locale ) ); $message_three = wp_kses_post ( __( 'You can now view all your deliveries in list view or in calendar view from Product Delivery Date Pro for WooCommerce. Get it now!.', $faq_locale ) ); $message_four = wp_kses_post ( __( 'Allow your customers to pay extra for delivery for certain Weekdays/Dates from Product Delivery Date Pro for WooCommerce. Have it now!.', $faq_locale ) ); $message_five = wp_kses_post ( __( 'Customers can now edit the Delivery date & time on cart and checkout page or they can reschedule the deliveries for the already placed orders from Product Delivery Date Pro for WooCommerce. Have it now!.', $faq_locale ) ); // message six $_link = 'https://www.tychesoftwares.com/store/premium-plugins/woocommerce-abandoned-cart-pro/?utm_source=wpnotice&utm_medium=sixth&utm_campaign=PrintInvoicePlugin'; $message_six = wp_kses_post ( __( 'Boost your sales by recovering up to 60% of the abandoned carts with our Abandoned Cart Pro for WooCommerce plugin. You can capture customer email addresses right when they click the Add To Cart button. Grab your copy of Abandon Cart Pro plugin now.', $faq_locale ) ); $faq_message_six = array ( 'message' => $message_six, 'plugin_link' => 'woocommerce-abandon-cart-pro/woocommerce-ac.php' ); // message seven $_link = 'https://www.tychesoftwares.com/store/premium-plugins/woocommerce-abandoned-cart-pro/?utm_source=wpnotice&utm_medium=seventh&utm_campaign=PrintInvoicePlugin'; $message_seven = wp_kses_post ( __( 'Don\'t loose your sales to abandoned carts. Use our Abandon Cart Pro plugin & start recovering your lost sales in less then 60 seconds.
Get it now!', $faq_locale ) ); $faq_message_seven = array ( 'message' => $message_seven, 'plugin_link' => 'woocommerce-abandon-cart-pro/woocommerce-ac.php' ); // message eight $_link = 'https://www.tychesoftwares.com/store/premium-plugins/woocommerce-abandoned-cart-pro/?utm_source=wpnotice&utm_medium=eight&utm_campaign=PrintInvoicePlugin'; $message_eight = wp_kses_post ( __( 'Send Abandoned Cart reminders that actually convert. Take advantage of our fully responsive email templates designed specially with an intent to trigger conversion.
Grab your copy now!', $faq_locale ) ); $faq_message_eight = array ( 'message' => $message_eight, 'plugin_link' => 'woocommerce-abandon-cart-pro/woocommerce-ac.php' ); // message nine $_link = 'https://www.tychesoftwares.com/store/premium-plugins/woocommerce-abandoned-cart-pro/?utm_source=wpnotice&utm_medium=ninth&utm_campaign=PrintInvoicePlugin'; $message_nine = wp_kses_post ( __( 'Increase your store sales by recovering your abandoned carts for just $119. No profit sharing, no monthly fees. Our Abandoned Cart Pro plugin comes with a 30 day money back guarantee as well. :). Use coupon code ACPRO20 & save $24!
Purchase now', $faq_locale ) ); $faq_message_nine = array ( 'message' => $message_nine, 'plugin_link' => 'woocommerce-abandon-cart-pro/woocommerce-ac.php' ); // message ten $_link = 'https://www.tychesoftwares.com/store/premium-plugins/order-delivery-date-for-woocommerce-pro-21/?utm_source=wpnotice&utm_medium=tenth&utm_campaign=PrintInvoicePlugin'; $message_ten = wp_kses_post ( __( 'Allow your customers to select the Delivery Date & Time on the Checkout Page using our Order Delivery Date Pro for WooCommerce Plugin.
Shop now & be one of the 20 customers to get 20% discount on the plugin price. Use the code "ORDPRO20". Hurry!!', $faq_locale ) ); $faq_message_ten = array ( 'message' => $message_ten, 'plugin_link' => 'order-delivery-date/order_delivery_date.php' ); // message eleven $_link = 'https://www.tychesoftwares.com/store/premium-plugins/woocommerce-booking-plugin/?utm_source=wpnotice&utm_medium=eleven&utm_campaign=PrintInvoicePlugin'; $message_eleven = wp_kses_post ( __( ' Allow your customers to book an appointment or rent an apartment with our Booking and Appointment for WooCommerce plugin. You can also sell your product as a resource or integrate with a few Vendor plugins.
Shop now & Save 20% on the plugin with the code "BKAP20". Only for first 20 customers. Have it now!', $faq_locale ) ); $faq_message_eleven = array ( 'message' => $message_eleven, 'plugin_link' => 'woocommerce-booking/woocommerce-booking.php' ); // message 12 $_link = 'https://www.tychesoftwares.com/store/premium-plugins/deposits-for-woocommerce/?utm_source=wpnotice&utm_medium=twelve&utm_campaign=PrintInvoicePlugin'; $message_twelve = wp_kses_post ( __( ' Allow your customers to pay deposits on products using our Deposits for WooCommerce plugin.
Purchase now & Grab 20% discount with the code "DFWP20". The discount code is valid only for the first 20 customers.', $faq_locale ) ); $faq_message_twelve = array ( 'message' => $message_twelve, 'plugin_link' => 'woocommerce-deposits/deposits-for-woocommerce.php' ); // message 13 $_link = 'https://www.tychesoftwares.com/store/premium-plugins/product-delivery-date-pro-for-woocommerce/?utm_source=wpnotice&utm_medium=thirteen&utm_campaign=PrintInvoicePlugin'; $message_thirteen = wp_kses_post ( __( 'Allow your customers to select the Delivery Date & Time for your WooCommerce products using our Product Delivery Date Pro for WooCommerce Plugin.
Shop now', $faq_locale ) ); $faq_message_thirteen = array ( 'message' => $message_thirteen, 'plugin_link' => 'product-delivery-date/product-delivery-date.php' ); $ts_pro_notices = array ( 1 => $message_first, 2 => $message_two, 3 => $message_three, 4 => $message_four, 5 => $message_five, 6 => $faq_message_six, 7 => $faq_message_seven, 8 => $faq_message_eight, 9 => $faq_message_nine, 10 => $faq_message_ten, 11 => $faq_message_eleven, 12 => $faq_message_twelve, 13 => $faq_message_thirteen ); return $ts_pro_notices; } /** * It will contain all the FAQ which need to be display on the FAQ page. * @return array $ts_faq All questions and answers. * */ public static function faq_get_faq () { $ts_faq = array (); $ts_faq = array( 1 => array ( 'question' => 'How do I display my FAQ’s?', 'answer' => 'Use the [faq] shortcode in a widget or on a post/page. This will output the FAQ’s using the default settings (Ascending order by Title in a Toggle configuration). If you’d like to use a different order, consult the Documentation for assistance.' ), 2 => array ( 'question' => 'How do I enable the accordion display mode?', 'answer' => 'Add style="accordion" to the shortcode, e.g. [faq style="accordion"]' ), 3 => array ( 'question' => 'The toggle or accordion isn’t working. What can I do?', 'answer' => 'While you can certainly start a thread in the support forum, there are some troubleshooting steps you can take beforehand to help speed up the process.
1. Check to make sure the javascripts are loading correctly. Load the faq page in your browser and view your page’s source. Look for jQuery and Arconix FAQ JS files there. If you don’t see the Arconix FAQ JS file, then your theme’s header.php file is likely missing , which is neccessary for the operation of mine and many other plugins.
2. Check to make sure only one copy of jQuery is being loaded. Many times conflicts arise when themes or plugins load jQuery incorrectly, causing the script to be loaded multiple times in multiple versions. In order to find the offending item, start by disabling your plugins one by one until you find the problem. If you’ve disabled all your plugins, try switching to a different them, such as twentyten or twentytwelve to see if the problem is with your theme. Once you’ve found the problem, contact the developer for assistance getting the issue resolved.' ) ); return $ts_faq; } } $Arconix_FAQ_Component = new Arconix_FAQ_Component(); }