Fix the Smart Buttons in Block Checkout not respecting the location setting (2830)

This commit is contained in:
Daniel Dudzic 2024-05-30 14:44:29 +02:00
parent cb74a719fc
commit 653a99a242
No known key found for this signature in database
GPG key ID: 31B40D33E3465483

View file

@ -568,7 +568,7 @@ if(cartHasSubscriptionProducts(config.scriptData)) {
features.push('subscriptions');
}
if (block_enabled) {
if (block_enabled && config.enabled) {
if ((config.addPlaceOrderMethod || config.usePlaceOrder) && !config.scriptData.continuation) {
let descriptionElement = <div dangerouslySetInnerHTML={{__html: config.description}}></div>;
if (config.placeOrderButtonDescription) {