This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// WooCommerce WP - minimum weight specify while order | |
add_action( 'woocommerce_check_cart_items', 'spyr_set_weight_requirements' ); | |
function spyr_set_weight_requirements() { | |
// Only run in the Cart or Checkout pages | |
if( is_cart() || is_checkout() ) { | |
global $woocommerce; | |
// Set the minimum weight before checking out | |
$minimum_weight = 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Copy and paste the code below into your routes/console.php file. | |
* You can add more command such as 'remove:model', 'remove:middleware', etc if you want, | |
* just modify the $file_location variable. | |
*/ | |
Artisan::command('remove:controller {name : Name of the controller}', function ($name) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DATA | |
PROMPT_1 DB \'Enter the number from 0 to 10 : $\' | |
PROMPT_2 DB 0DH,0AH,\'The number is : $\' | |
.CODE | |
MAIN PROC | |
MOV AX, @DATA ; initialize DS | |
MOV DS, AX | |
LEA DX, PROMPT_1 ; load and print PROMPT_1 |