Product page is blank
-
Having an issue with a gym booking system because suddenly none of the members can book a session in the gym.
When a logged in user visits the page to make a booking, the page content is blank. I checked the html and the content section is completely empty within the content labels. The page uses the [product] shortcode. PMS limits the available booking types to only the subscribed product (eg a 1 hour booking). When I disabled PMS, all of the booking options are shown. I tried several back versions of PMS but it still would not work.
I have the latest versions of WP, WooCommerce and WooCommerce bookings. The problem only started within the last couple of days and it’s been a couple weeks since those other code bases have been updated, so I’m at a loss as it what might be causing the issue.
I normally have several additional plugins activated to make the process smoother but I have disabled all of those for now. Please contact me ASAP for any further information you require!
The page I need help with: [log in to see the link]
-
Note, I have disabled PMS for present because the members really need to reserve their session. Everything works, although with less than ideal user experience. However, I can’t sign up new members.
ALSO, I just noticed that the new test user I created (with PMS active) is not being displayed in the Member list of subscribers.
-
This reply was modified 1 year, 1 month ago by
dgebel.
Hi @dgebel,
Could you please go to Paid Member Subscriptions -> Settings -> Content Restriction -> scroll to the bottom of the page and enable the “Include Restricted Posts in Queries” setting?
Please let me know if this fixes the issue.
Thanks for the quick reply. It sort of works… at least the options are displayed, but it is ALL of the membership options that are shown.
I need to restrict it to only the product the customer has subscribed to.
To tell the truth, what I originally wanted to do was to automatically direct the subscriber PAST the product page when they log in, and go directly into the their particular “product detail” page so they would immediately be able to book a time. And immediately do the booking so they wouldn’t have to even see any checkout process. But I couldn’t figure out how that could be done.
-
This reply was modified 1 year, 1 month ago by
dgebel.
NOPE! I spoke too soon… there are the “product” cards displayed when I reactivated PMS but when I clicked on the product ie subscribed booking type/product card… Even though the hover link showed what I think is the correct URL, when I actually click on it, it tries to go to “pricing” and can’t find anything. Fail.
Just out of curiosity, since you mentioned that this has worked correctly for weeks, and it only started occurring a few days ago. Could you please downgrade the PMS plugin to the previous version and check if that fixes the issue?
You can download the previous version by navigating here: https://wordpress.org/plugins/paid-member-subscriptions/advanced/, scrolling down to the bottom of the page, and choosing version 2.14.3.
I want to see if this is related to our latest update.Note: Also, don’t forget to toggle the setting I mentioned in my previous message to its original state.
I tried with past versions, back to 2.14.1 and all have the same issue, operating the same.
When “include restricted content post” in settings is:
- turned on: shows all products, but won’t go to the product page when clicked
- turned off: doesn’t show anything
So I have to disable PMS entirely as a workaround for now.
-
This reply was modified 1 year, 1 month ago by
dgebel. Reason: typo
- turned on: shows all products, but won’t go to the product page when clicked
- Could you please go to your site’s Dashboard -> Products -> All Products -> click on a product you have this issue with -> and send a full screenshot from there? Please also make sure the PMS Content Restriction meta-box can be seen.
- What is the exact WooCommerce Booking plugin you’re using on your site? If it’s a Free plugin, then please provide the URL from the WordPress repository.
You can use a site like https://snipboard.io/ to share the screenshots.
- Ok, the 1 hour product page: https://snipboard.io/2UnGLe.jpg
2. it is the official WooCommerce Booking plugin. Tried several others and none of them QUITE did everything we needed, at least not for the cost, which was still considerable. And even WC’s is lacking in several categories, but we have to live with it for now.
Just as a thought, we actually don’t NEED to go to the product page (although I’m sure other users would like that option to be working).
Our customers can have 1 subscription type, i.e. 1 or 2 hour booking, which are 2 different products. Is there any way to go directly to the product page (ie booking page) based on what subscription they have? It would be fantastic if that could be done. i.e. click on “book a session”, goes to the 1 or 2 hour booking (product detail) page, so they can immediately book without having to click on the ONE option they can see on the product page.
Message updated below:
Regarding your latest question:
Unfortunately, this is not possible while using Paid Member Subscriptions, we do not have this kind of redirect functionality to certain Woo Products (based on the subscription the user purchased).
Today, we released a new update to Paid Member Subscriptions, which also includes the fix for the Products page being blank. Please update the Paid Member Subscriptions to version 2.14.5
Note: With this update, it should no longer be necessary to have the “Include Restricted Posts in Queries” setting enabled.
Let me know how this goes
Updated the plugin and tried again! (Thanks for the other answer. Oh well.)
Well…. it’s different. Although I suspect I understand some of what is happening.
Here is what the user gets when they click on the Book menu, signed in or not.
https://snipboard.io/kZXviK.jpg
- The product images are not displayed. Confirmed that without PMS activated, the image is displayed.
- ALL of the products are displayed instead of the one they have subscribed to. (when signed in)
- If the user is NOT signed in, normally I have a redirect set to send them to the login page instead of the Product page if not logged in.
- If they ARE signed in, all of the products are displayed, and clicking any will redirect the user to the non-member redirect page (pricing) instead of the product page, such as https://ironoasisgym.com/product/1-hour-1-person/
Here is the content restriction setup in PMS – https://snipboard.io/CB89wo.jpg
Again, this only happens when PMS is enabled. Everything works correctly when PMS is disabled. Just without new member signup ability, plus a registered user can book any type of session they want.
Let’s take them one by one:
- The product images are not displayed. Confirmed that without PMS activated, the image is displayed.
-> This is because you’ve applied the Content Restriction functionality to the products. If a product is restricted and the user viewing the page doesn’t meet the restriction criteria, then the product image is not shown; also, the button label changes to “Read More.”
This is the intended behavior of how our Content Restriction feature works with WooCommerce products.
For users to be able to see the product image and access the product details, they need to meet the criteria you’ve set for that product. For example, you’ve shared an image here showing how you’ve applied the restriction to that product: https://snipboard.io/2UnGLe.jpg.
2. ALL of the products are displayed instead of the one they have subscribed to. (when signed in)
This is not something our plugin can achieve, as we don’t have this type of integration with WooCommerce. You can find everything that is currently possible with this integration here:
https://www.cozmoslabs.com/docs/paid-member-subscriptions/integration-with-other-plugins/woocommerce/.Our restriction feature is designed to restrict products for certain memberships, not to show specific products only to those who have purchased them.
3. If the user is NOT signed in, normally I have a redirect set to send them to the login page instead of the Product page if not logged in.
-> From what I can see in this screenshot, the redirect for logged-out members is set to the Bookings page: https://snipboard.io/CB89wo.jpg. Is this your Login page, or was it added there by mistake?
4. If they ARE signed in, all of the products are displayed, and clicking any will redirect the user to the non-member redirect page (pricing) instead of the product page, such as https://ironoasisgym.com/product/1-hour-1-person/.
-> Does the user you tested this with have an active membership to the plan you chose to restrict the product with?
Based on this screenshot: https://snipboard.io/2UnGLe.jpg, only members with an active membership to the “1 Hour, 1 Person, monthly plan” will be able to view that product page.If a logged-in user is subscribed to a different membership, or if they have the correct membership but it’s expired, they will be redirected to the pricing page when they click on the product.
Thanks for the reply. Sorry about some confusion.
- Users can’t see product images.
- Ok, so not really an issue for signed out users. As per #3, normally a signed-out user won’t see that page because they will be redirected to login page anyway.
- However, for signed in users, they should be able to see the images, right? They do not.
- I’m confused a bit. This WAS working up as I had expected until this issue came up.
- There are only restricted products, Each subscription type has only one product they are able to “book”.
- When the user logs in, their membership allowed the restricted “product” to be displayed and ordered. It should correspond to item 4.2 on the Integrations documentation page.
- Are you saying that it should never have worked like that, ie only showed the one booking type to a user?
- Are you saying the FIRST redirect (currently /bookings/) is for logged-out users as well? If that’s the case… actually it shouldn’t matter, because the other Redirect plugin takes any logged-out user to the login page, as mentioned.
- Ok, now we may be getting somewhere at last. I assumed the user was active because I had created a new user from scratch. But when I went to double-check, it seems that the WP user is created but NOT the PMS member! This would probably explain why there was an issue seeing/accessing the restricted pages with my test account.
Since you’ll probably want to know, here’s the membership setup page. https://snipboard.io/5riZcN.jpg- One odd thing is that is says there are no discounts, but I used a discount to avoid the PayPal fee. I don’t know if that is important, but that has not changed since originally creating everything.
- I tried signing up again, without the discount, in test mode, but there’s still no new member created. Tried a couple different products/membership subscriptions.
- Adding a membership allows the customer to access the booking page and add a booking.
- However, again, all 4 types of subscriptions are displayed (this time with images at least), but that is not what happened in the past. There should only be the single membership type product displayed. And I was able to order multiple products instead of only the one I had a membership for.
So, some progress about why my test account was acting as if it was a non-member. But still no restrictions by membership in effect and new problem identified of signup not working.
- However, for signed in users, they should be able to see the images, right? They do not.
-> Not really. Only members who have an active subscription to your ‘1 Hour, 1 Person, Monthly Plan’ will be able to view the image. Users who don’t have this membership or whose this exact membership has expired will not see the image.
Again, this is based on how you’ve set the Content Restriction for that product: https://snipboard.io/2UnGLe.jpg
The documentation in section 4.2 is just referring to the basic functionality of the Content Restriction feature. With that, all products are displayed to all users (they appear on the Shop page), but users won’t be able to see the product image or details unless they have the correct membership.
Since then, we’ve added a few more settings in the plugin. With these settings, you can hide restricted products entirely from appearing on the Shop page if users don’t meet the Content Restriction requirements.
For example, based on your current setup, if you enable these settings, users who don’t have an active membership to the ‘1 Hour, 1 Person, Monthly Plan’ will not see that product at all. In this case, only members with an active subscription to that specific plan will be able to view the product in your shop.
The settings I’m referring to are:
I. Paid Member Subscriptions → Settings → Content Restriction → scroll to the bottom and enable the “Include Restricted Posts in Queries” setting.
and
II. Paid Member Subscriptions → Settings → WooCommerce → “Exclude restricted products from queries” setting.
At the moment, there’s a known issue where the “Include Restricted Posts in Queries” setting also needs to be active for the product hiding to work properly. This will be fixed in a future plugin update.
So, to currently enable this functionality, you’ll need to activate both of the settings mentioned above. Just keep in mind that with this setup, restricted products will be completely hidden from your Shop page for users who don’t meet the membership requirements—this is the intended behavior of these settings.
3. The first redirect is for logged-out users, and the second one is for logged-in ones who don’t meet the CR requirements (who don’t have the correct membership purchased).
4. From where are you prucahsing our membership, are you purcahsing it from our Registration form?
Also, for testing purposes, you as an Admin can assign to any WP users that you have a PMS Membership. This can easily be done from Paid Member Subscriptions -> Members -> Add New. You can read more about this here: https://www.cozmoslabs.com/docs/paid-member-subscriptions/member-management/#Add_New_Member.
-
This reply was modified 1 year, 1 month ago by
The topic ‘Product page is blank’ is closed to new replies.