Error when trying to select an option of a variable product

[ad_1]

Hi @gamernamer

That error is indicating the JSON that’s rendered in the payment gateway HTML is not present. The Stripe plugin outputs that JSON when the payment button HTML is printed so something is up.

Can you please share a link to the product page where this can be re-created?

Kind Regards

Thanks for your detailed answer!

Kinda strange because we are using the code for a year now and it worked perfectly but the problem was in our code.

// Hide Google and Apple Pay if lumise or redirect button
jQuery(function($) { 
  if ($(".lumise-customize-button").length > 0 || (".redirect-add-to-cart-button").length > 0 ){
     $('.wc-stripe-product-checkout-container').remove();
  };
}); 

We forgot to add the $ in the second if parameter. That fixed the bug.

Thanks for your answer!

Best
Justus

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer