Skip to content

Commit

Permalink
Update command.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nielslange authored Jun 4, 2024
1 parent 5b62e60 commit b8413e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions command.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ private function setupShipping() {
WP_CLI::runcommand( '--user=1 wc shipping_zone_method create 0 --order=2 --enabled=true --settings=\'{"title":"Free shipping"}\' --method_id=free_shipping' );

if ( false === get_option( 'woocommerce_pickup_location_settings' ) ) {
WP_CLI::runcommand( 'option add woocommerce_pickup_location_settings \'{"enabled":"yes","title":"Local Pickup","tax_status":"taxable","cost":""}\' --format=json' );
WP_CLI::runcommand( 'option add woocommerce_pickup_location_settings \'{"enabled":"yes","title":"Pickup","tax_status":"taxable","cost":""}\' --format=json' );
}

if ( false === get_option( 'pickup_location_pickup_locations' ) ) {
Expand Down Expand Up @@ -386,8 +386,6 @@ private function setupPayments( $assoc_args ) {
private function setupTax() {
WP_CLI::runcommand( 'option set woocommerce_calc_taxes yes' );
WP_CLI::runcommand( '--user=1 wc tax create --rate=10 --class=standard' );
// WP_CLI::runcommand( '--user=1 wc tax create --rate=5 --class=reduced-rate' );
// WP_CLI::runcommand( '--user=1 wc tax create --rate=0 --class=zero-rate' );
}

/**
Expand Down

0 comments on commit b8413e5

Please sign in to comment.