• Resolved sacredsamf

    (@sacredsamf)


    Hello.

    Setup
    wordpress: 5.9.1 (latest)
    woocommerce: 6.2.1 (latest)
    theme: storefront 3.9.1 (latest)
    Payment Gateway for PayPal on WooCommerce: 5.0.4

    Checkout page body classes with de-activated plugin:
    page-template-default page page-id-9 logged-in admin-bar wp-custom-logo wp-embed-responsive theme-storefront woocommerce-checkout woocommerce-page woocommerce-js storefront-secondary-navigation storefront-align-wide right-sidebar woocommerce-active customize-support

    Checkout page body classes with activated, but not enabled plugin:
    woocommerce-checkout woocommerce-page woocommerce-js storefront-secondary-navigation storefront-align-wide right-sidebar woocommerce-active customize-support

    The problem might be the wpg_add_body_classes() function in woo-paypal-gateway\public\class-woo-paypal-gateway-public.php:377

    public function wpg_add_body_classes($classes) {
    if (is_checkout()) {
    if ($this->wpg_enable_paypal_checkout() == false) {
    return;
    }

    if (empty($this->gateway)) {
    return $classes;
    }
    $classes[] = ‘wpg_paypal_checkout’;
    if (wpg_has_active_session()) {
    $classes[] = ‘wpg_paypal_checkout_hidden’;
    }
    }
    return $classes;
    }

    so it will remove all prior classes if plugin is installed and activated, but not enabled?

    Please advise
    Thanks

    • This topic was modified 2 years, 9 months ago by sacredsamf.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Body class issue’ is closed to new replies.