{"id":18017937,"date":"2024-09-16T15:30:11","date_gmt":"2024-09-16T15:30:11","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/an-issue-about-variables-products\/"},"modified":"2024-09-16T15:30:11","modified_gmt":"2024-09-16T15:30:11","slug":"an-issue-about-variables-products","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/an-issue-about-variables-products\/","title":{"rendered":"An issue about variables products"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello there,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I have an issue about variables products.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I try to add a variable product to the cart, I receive the alert &#8220;Cannot add this product to cart (invalid product)&#8221; but the product gets added anyway.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I checked the code and the error occurs under \/wp-content\/plugins\/woocommerce-paypal-payments\/modules\/ppcp-paypal-subscriptions\/src\/PayPalSubscriptionsModule.php on line 113.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I tried to log the error and it looks like the variable products don&#8217;t retrieve the ID correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Can you please investigate on it further?<br \/><br \/>I will be waiting for your response.<br \/>Thank you!<\/p>\n","protected":false},"template":"","class_list":["post-18017937","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18017937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18017937\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18017937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}