@@ -139,6 +139,9 @@ discard block |
||
| 139 | 139 | return $output; |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | + /** |
|
| 143 | + * @param string $code |
|
| 144 | + */ |
|
| 142 | 145 | public static function get_xml_messages( $code = null ) { |
| 143 | 146 | if ( is_null( self::$xml_messages ) ) { |
| 144 | 147 | $xml_default_emails = file_get_contents( WP_PLUGIN_DIR . '/' . WPSHOP_PLUGIN_DIR . '/assets/datas/default_emails.xml' ); |
@@ -328,7 +331,11 @@ discard block |
||
| 328 | 331 | |
| 329 | 332 | /** Store a new message |
| 330 | 333 | * |
| 331 | - * @return boolean |
|
| 334 | + * @param string $email |
|
| 335 | + * @param string $title |
|
| 336 | + * @param string $message |
|
| 337 | + * @param integer $model_id |
|
| 338 | + * @return boolean|null |
|
| 332 | 339 | */ |
| 333 | 340 | function add_message( $recipient_id = 0, $email, $title, $message, $model_id, $object, $date = null ) { |
| 334 | 341 | |
@@ -547,6 +547,10 @@ discard block |
||
| 547 | 547 | |
| 548 | 548 | |
| 549 | 549 | /* Send a confirmation e-mail to the customer */ |
| 550 | + |
|
| 551 | + /** |
|
| 552 | + * @param integer $order_id |
|
| 553 | + */ |
|
| 550 | 554 | function wpshop_send_confirmation_shipping_email($order_id){ |
| 551 | 555 | $wps_message = new wps_message_ctr(); |
| 552 | 556 | if ( !empty($order_id) ) { |
@@ -2787,6 +2791,10 @@ discard block |
||
| 2787 | 2791 | $product_id = ( !empty( $_POST ) && !empty( $_POST[ 'product_identifier' ] ) ) ? (int)$_POST[ 'product_identifier' ] : 0; |
| 2788 | 2792 | ajax_wpshop_fill_the_downloadable_dialog_exec($product_id); |
| 2789 | 2793 | } |
| 2794 | + |
|
| 2795 | + /** |
|
| 2796 | + * @param integer $product_id |
|
| 2797 | + */ |
|
| 2790 | 2798 | function ajax_wpshop_fill_the_downloadable_dialog_exec( $product_id ) { |
| 2791 | 2799 | $output = '<form method="post" action="' .admin_url('admin-ajax.php') .'" id="upload_downloadable_file" enctype="multipart/form-data" >'; |
| 2792 | 2800 | $output .= '<p class="formField"><label for="wpshop_file">' .__('Choose your file to send', 'wpshop'). '</label><input type="file" name="wpshop_file" /></p>'; |