Add block cart and block express checkout to default buttons locations.

This commit is contained in:
Pedro Silva 2023-11-17 16:31:47 +00:00
parent a477770256
commit e7e5f10f83
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3

View file

@ -1372,7 +1372,9 @@ return array(
); );
}, },
'wcgateway.button.default-locations' => static function( ContainerInterface $container ): array { 'wcgateway.button.default-locations' => static function( ContainerInterface $container ): array {
return array_keys( $container->get( 'wcgateway.settings.pay-later.messaging-locations' ) ); $button_locations = $container->get( 'wcgateway.button.locations' );
unset( $button_locations['mini-cart'] );
return array_keys( $button_locations );
}, },
'wcgateway.settings.pay-later.button-locations' => static function( ContainerInterface $container ): array { 'wcgateway.settings.pay-later.button-locations' => static function( ContainerInterface $container ): array {
$settings = $container->get( 'wcgateway.settings' ); $settings = $container->get( 'wcgateway.settings' );