Memberships Subscribe Button URL Not Working with WC checkout after new update
-
Memberships Subscribe Button URL Not Working with WC checkout after new update:
Hi,
Our website is : https://pi-gate.com/
Membership Plan page (custom page) : https://pi-gate.com/professional-membership-plans/
we use (WCFM ) integral lifetime paid plugins for our Marketplace functions and also ( Woocommerce ) plugins and ( WC Subscription ) Plugin for Subscription Products,
After the new updates in 2024 the Process of Subscription in Membership Plans was NOT working and the URLs of all Payable Membership plans were not working !!
Before the new updates they were working correctly with WC Checkout without problem, but now it is impossible for vendors to Subscribe to our Membership Plans !!
If a Vendor tries to choose a payable plan and then he will be redirected to the Registration form page , then after validation he will be redirected to an EMPTY CARTE page !!
I sent a Ticket to the Support Team, then I got only a reply with a question to know some information (already clear with the Video shared) and then NOTHING !!
I sent you a Support Ticket in WCFM account (#562001) concerning this issue but You Ignored all my messages indicating all response that I got from Woocommerce support team & WordPress Support team which say that there is a problem coming from WCFM Plugins & you must do something to update your plugins to be in harmony with WordPress & Woocommerce updates, because the process that WCFM use to redirect pages in Subscription for Membership Plans is in conflict with Woocommerce process , the problem occur like that !!
I tried more than 50 codes to try to redirect pages as they must be in the logic of the process but the only 2 Codes that worked ONLY for 2 or 3 minutes and then They stopped working again !!
and then I asked Woocommrece support team about that, and they said that they were working in the beginning for few minutes before that they were detected and blocked by Woocommerce and WordPress Server automatically because they are in conflict with WCFM actual codes & Woocommerce updated version !!!
So they advised me again to CONTACT WCFM support team BUT your team IGNORE ALL MY MESSAGES as you do ALWAYS if you don’t have a ready reply to copy and paste to send to me !!! & You keep ignoring me bor several weeks and for some Support demande you still ignoring me for SEVERAL MONTHs !!!
I already paid to use WCFM plugins, so I expect that could have a minimum level of respect for your client to reply & give me an explication for your ignoration & NON SUPPORT when the problem were confirmed from Woocommerce that it was from WCFM plugins !!
So I’m waiting for your reply & I hope that you will not continue to ignore my support request please to help me to solve this issue caused by WCFM plugins which must be in accordance with Woocommerce Checkout Codes as they changed the Checkout codes in their last update in 2024 !!
P.S.
here are the few example of codes that I tried to add to Php child theme & did not work :
Code 1 :
add_action(‘wp_footer’, ‘custom_membership_redirect_script’);function custom_membership_redirect_script() {
?>
<script type=”text/javascript”>
jQuery(document).ready(function($) {
$(‘.wcfm_membership_plan_subscription_button’).on(‘click’, function(e) {
e.preventDefault();// Extract membership ID from the URL
var membershipId = $(this).attr(‘href’).match(/membership=(\d+)/)[1];// Redirect to the registration page
window.location.href = ‘https://pi-gate.com/pro-registration/?membership_id=’ + membershipId;
});
});
</script>
<?php
}Code 2 : add_action(‘wp_footer’, ‘custom_membership_redirect_script’);
function custom_membership_redirect_script() {
?>
<script type=”text/javascript”>
jQuery(document).ready(function($) {
$(‘.wcfm_membership_plan_subscription_button’).on(‘click’, function(e) {
e.preventDefault();// Extract membership ID from the URL
var membershipId = $(this).attr(‘href’).match(/membership=(\d+)/)[1];// Redirect to the registration page
window.location.href = ‘https://pi-gate.com/pro-registration/?membership_id=’ + membershipId;
});// Add a listener for the registration form submission
$(‘#wcfmmp_registration_submit’).on(‘click’, function(e) {
// Ensure the membership ID is passed along with the registration form
var membershipId = $(‘#wcfm_membership_id’).val();
$(‘#wcfmmp_registration_submit’).attr(‘href’, function(_, href) {
return href + ‘&membership_id=’ + membershipId;
});
});
});
</script>
<?php
}More Information that you may need :
- The default WCFM Membership Plan Page which contains the Short Code [wcfm_vendor_membership] is (Pro Membership Plans WCFM) page.
- The Registration Page is ( Pro Registration ) with the Short Code [wcfm_vendor_registration] .
- The Payment Mode for all Membership plans is (WC Checkout ), because I use now (Woo Subscription) Plugin for Subscription products.
- Custom Membership Plan is ( Professional Membership Plans ) in taking in consideration that all Buttons are connected to each membership plan with the URL in each Membership Plan in WCFM , the page is in this link : PI GATE PI GATE Marketplace for Services, Bookings, Appointments & Job Offers Professional Membership Plans (pi-gate.com)
- Custom Thank you Page is ( Successful Membership Registration ) with this link : pi-gate.com/successful-membership-registration
- Cart page is ( Basket ) and it is made with Woocommerce Short Code : [woocommerce_cart]
- Payment Page is ( Payment Page ) with the Shortcode : [woocommerce_checkout]
The page I need help with: [log in to see the link]
- The topic ‘Memberships Subscribe Button URL Not Working with WC checkout after new update’ is closed to new replies.