Changeset 3202482
- Timestamp:
- 12/04/2024 03:19:11 PM (16 months ago)
- Location:
- pdf-for-woocommerce/trunk
- Files:
-
- 5 edited
-
frontend/index.php (modified) (1 diff)
-
pdf-for-woocommerce.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
woocommerce/backend/index.php (modified) (1 diff)
-
woocommerce/emails/index.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pdf-for-woocommerce/trunk/frontend/index.php
r3202071 r3202482 217 217 foreach( $data_orders as $order_id ){ 218 218 $order_shortcode->set_order_id($order_id); 219 $id = self::get_html($id_template,$data s);219 $id = self::get_html($id_template,$data_attrs["datas"]); 220 220 echo do_shortcode($id); // phpcs:ignore WordPress.Security.EscapeOutput 221 221 if( $i < count($data_orders) ) { -
pdf-for-woocommerce/trunk/pdf-for-woocommerce.php
r3202071 r3202482 6 6 * Text Domain: pdf-for-woocommerce 7 7 * Domain Path: /languages 8 * Version: 4.5. 08 * Version: 4.5.1 9 9 * Requires PHP: 5.6 10 10 * Author: add-ons.org -
pdf-for-woocommerce/trunk/readme.txt
r3202071 r3202482 4 4 Requires at least: 2.0 5 5 Tested up to: 6.7 6 Stable tag: 4.5. 06 Stable tag: 4.5.1 7 7 Requires PHP: 5.6 8 8 License: GPLv2 or later … … 104 104 105 105 == Changelog == 106 = 4.5.1 = 107 - Added: Download All PDF 108 106 109 = 4.5.0 = 107 110 - Fixed: columns -
pdf-for-woocommerce/trunk/woocommerce/backend/index.php
r3157698 r3202482 17 17 add_action("yeepdf_builder_tab_block_addons",array($this,"block_text_addons"),9); 18 18 add_filter("superaddons_pdf_check_pro",array($this,"check_pro")); 19 add_filter("bulk_actions-edit-shop_order",array($this,"bulk_actions_download")); 20 //hight order 21 add_filter("bulk_actions-woocommerce_page_wc-orders",array($this,"bulk_actions_download")); 22 add_action('admin_enqueue_scripts', array($this,'add_libs')); 23 } 24 function bulk_actions_download($actions){ 25 global $wpdb; 26 $table_name = $wpdb->prefix."vc_pdf_invoices"; 27 $datas= $wpdb->get_results("SELECT * FROM $table_name WHERE enable = 1", ARRAY_A); 28 foreach( $datas as $data){ 29 $actions["download_pdf_".$data["template_id"]] = "Download PDF - ".$data["label"]; 30 } 31 return $actions; 32 } 33 function add_libs(){ 34 wp_enqueue_script('yeepdf_woo_acction', YEEPDF_BUILDER_WOOCOMMERCE_URL . "woocommerce/backend/yeepdf.js",array("jquery"),time()); 35 $link =add_query_arg(array("pdf_preview"=>"preview","preview"=>1),get_home_url()); 36 wp_localize_script( 'yeepdf_woo_acction', 'yeepdf_woo_acction', 37 array( 38 'ajax_url' => admin_url( 'admin-ajax.php' ), 39 'link_download' => wp_nonce_url($link,"yeepdf"), 40 'text_no_select_order' => esc_html__("You have to select order(s) first!","pdf-for-wpforms"), 41 ) 42 ); 19 43 } 20 44 function check_pro($pro){ 21 $check = get_option( '_redmuber_item_1708');22 if($check == "ok"){23 $pro = true;24 }25 return $pro;26 }45 $check = get_option( '_redmuber_item_1708'); 46 if($check == "ok"){ 47 $pro = true; 48 } 49 return $pro; 50 } 27 51 function block_text_addons(){ 28 52 ?> -
pdf-for-woocommerce/trunk/woocommerce/emails/index.php
r3202071 r3202482 77 77 $my_account_order_status = array(); 78 78 } 79 if(i n_array($order_status,$my_account_order_status)){79 if(is_array($my_account_order_status) && in_array($order_status,$my_account_order_status)){ 80 80 $available = true; 81 81 } … … 148 148 if( isset($data["enable_order"])){ 149 149 $enable_order = json_decode($data["enable_order"]); 150 if( in_array($order_status,$enable_order)){150 if( is_array($enable_order) && in_array($order_status,$enable_order)){ 151 151 $name =$data["name"]; 152 152 $order_shortcode = new Yeepdf_Addons_Woocommerce_Shortcodes(); … … 199 199 if( isset($data["enable_order"])){ 200 200 $enable_order = json_decode($data["enable_order"]); 201 if(i n_array($order_status,$enable_order)){201 if(is_array($enable_order) && in_array($order_status,$enable_order)){ 202 202 $enable_attas = json_decode($data["attachments"]); 203 if(i n_array($order_status,$enable_attas)){203 if(is_array($enable_attas) && in_array($order_status,$enable_attas)){ 204 204 $name =$data["name"]; 205 205 $password =$data["password"]; … … 414 414 foreach($orders_types as $key => $value){ 415 415 $checked = ""; 416 if( in_array($key,$enable_order)){416 if( is_array($enable_order) && in_array($key,$enable_order)){ 417 417 $checked = "checked"; 418 418 } … … 440 440 } 441 441 } 442 if(i n_array($key,$attachments)){442 if(is_array($attachments) && in_array($key,$attachments)){ 443 443 $checked = "checked"; 444 444 } … … 489 489 } 490 490 } 491 if( in_array($key,$my_account_order_status)){491 if( is_array($my_account_order_status) && in_array($key,$my_account_order_status)){ 492 492 $checked = "checked"; 493 493 }
Note: See TracChangeset
for help on using the changeset viewer.