Remove the new loader from the SingleProductBootstrap

This commit is contained in:
Daniel Dudzic 2024-10-08 10:57:09 +02:00
parent 733eee08a2
commit 5970aeaceb
No known key found for this signature in database
GPG key ID: 31B40D33E3465483

View file

@ -2,7 +2,7 @@ import UpdateCart from '../Helper/UpdateCart';
import SingleProductActionHandler from '../ActionHandler/SingleProductActionHandler';
import { hide, show } from '../Helper/Hiding';
import BootstrapHelper from '../Helper/BootstrapHelper';
import { loadAndRenderPayPalScript } from '../Helper/PayPalScriptLoading';
import { loadPaypalJsScript } from '../Helper/ScriptLoading';
import { getPlanIdFromVariation } from '../Helper/Subscriptions';
import SimulateCart from '../Helper/SimulateCart';
import { strRemoveWord, strAddWord, throttle } from '../Helper/Utils';
@ -38,7 +38,6 @@ class SingleProductBootstap {
);
this.subscriptionButtonsLoaded = false;
this.namespace = 'ppcpPaypalSingleProduct';
}
form() {
@ -255,8 +254,7 @@ class SingleProductBootstap {
if ( this.subscriptionButtonsLoaded ) {
return;
}
loadAndRenderPayPalScript(
this.namespace,
loadPaypalJsScript(
{
clientId: PayPalCommerceGateway.client_id,
currency: PayPalCommerceGateway.currency,