Changeset 2469950
- Timestamp:
- 02/06/2021 07:10:45 AM (5 years ago)
- Location:
- decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce
- Files:
-
- 3 edited
-
tags/1.0.2/inc/plugin.php (modified) (3 diffs)
-
trunk/cryptodec-payment-gateway.php (modified) (1 diff)
-
trunk/inc/plugin.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/tags/1.0.2/inc/plugin.php
r2466373 r2469950 172 172 <?php 173 173 } else { 174 ?>174 ?> 175 175 176 176 <th>Date Paid</th> … … 178 178 179 179 <?php 180 } ?> 180 } 181 ?> 181 182 </tr> 182 183 </tbody> 183 184 </table> 184 185 <?php 185 }186 } 186 187 187 188 add_action('show_user_profile', 'cryptodec_user_profile_field'); … … 215 216 } 216 217 } 218 219 //add_filter( 'woocommerce_email_order_meta_fields', 'cryptodec_woocommerce_email_order_meta_fields', 10, 3 ); 220 221 function cryptodec_woocommerce_email_order_meta_fields( $fields, $sent_to_admin, $order ) { 222 $fields['best_btc_wallet'] = array( 223 'label' => __( 'Wallet Address' ), 224 'value' => get_post_meta( $order->id, '_cryptodec_best_btc_wallet', true ), 225 ); 226 $fields['order_total'] = array( 227 'label' => __( 'Total BTC' ), 228 'value' => get_post_meta( $order->id, '_cryptodec_total', true ), 229 ); 230 return $fields; 231 } 232 233 add_action( 'woocommerce_email_after_order_table', 'cryptodec_woocommerce_email_after_order_table_func' ); 234 function cryptodec_woocommerce_email_after_order_table_func( $order ) { 235 ?> 236 237 <h3>Bitcoin Payment Details</h3> 238 <table> 239 <tr> 240 <td>Bitcoin Wallet Address: </td> 241 <td><?php echo wptexturize( get_post_meta( $order->id, '_cryptodec_best_btc_wallet', true ) ); ?></td> 242 </tr> 243 <tr> 244 <td>Amount in BTC to transfer: </td> 245 <td><?php echo wptexturize( get_post_meta( $order->id, '_cryptodec_total', true ) ); ?></td> 246 </tr> 247 <tr> 248 <td>Note: </td> 249 <td>Please transfer Exact amount.</td> 250 </tr> 251 </table> 252 253 <?php 254 } -
decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/trunk/cryptodec-payment-gateway.php
r2466373 r2469950 46 46 'full_name' => 'CryptoDecPaymentGateway', 47 47 'full_author' => 'ITLS', 48 'version' => '1.0. 2',48 'version' => '1.0.1', 49 49 50 50 'settings_version' => '3', -
decentralized-bitcoin-cryptodec-payment-gateway-for-woocommerce/trunk/inc/plugin.php
r2466373 r2469950 172 172 <?php 173 173 } else { 174 ?>174 ?> 175 175 176 176 <th>Date Paid</th> … … 178 178 179 179 <?php 180 } ?> 180 } 181 ?> 181 182 </tr> 182 183 </tbody> 183 184 </table> 184 185 <?php 185 }186 } 186 187 187 188 add_action('show_user_profile', 'cryptodec_user_profile_field'); … … 215 216 } 216 217 } 218 219 //add_filter( 'woocommerce_email_order_meta_fields', 'cryptodec_woocommerce_email_order_meta_fields', 10, 3 ); 220 221 function cryptodec_woocommerce_email_order_meta_fields( $fields, $sent_to_admin, $order ) { 222 $fields['best_btc_wallet'] = array( 223 'label' => __( 'Wallet Address' ), 224 'value' => get_post_meta( $order->id, '_cryptodec_best_btc_wallet', true ), 225 ); 226 $fields['order_total'] = array( 227 'label' => __( 'Total BTC' ), 228 'value' => get_post_meta( $order->id, '_cryptodec_total', true ), 229 ); 230 return $fields; 231 } 232 233 add_action( 'woocommerce_email_after_order_table', 'cryptodec_woocommerce_email_after_order_table_func' ); 234 function cryptodec_woocommerce_email_after_order_table_func( $order ) { 235 ?> 236 237 <h3>Bitcoin Payment Details</h3> 238 <table> 239 <tr> 240 <td>Bitcoin Wallet Address: </td> 241 <td><?php echo wptexturize( get_post_meta( $order->id, '_cryptodec_best_btc_wallet', true ) ); ?></td> 242 </tr> 243 <tr> 244 <td>Amount in BTC to transfer: </td> 245 <td><?php echo wptexturize( get_post_meta( $order->id, '_cryptodec_total', true ) ); ?></td> 246 </tr> 247 <tr> 248 <td>Note: </td> 249 <td>Please transfer Exact amount.</td> 250 </tr> 251 </table> 252 253 <?php 254 }
Note: See TracChangeset
for help on using the changeset viewer.