Conversation
supportHi Ronald, thanks for a great plugin, it works exactly as described. I am using Members Only Products Add-on and have some products hidden from the store page for non-members, but using your custom loop still displays them. Is there a way to inherit the show/hide functionality for non-members set by the Members Only Products Add-on? https://wordpress.org/plugins/membership-product-restrictions-add-on-for-ithemes-exchange/ Thanks again for the awesome plugin. Cheers P. https://wordpress.org/plugins/exchange-addon-custom-loop/
Hi P. that makes sense, and I’ll dig into to this, and let you know when/how/if this is feasible.
Thanks Ronald, that would be awesome!
Hi P. I did some digging, and there’s no straightforward solution. Omitting items from the page will cause pagination issues, as not all products of the initially selected page of products will be displayed. Alternatively, in stead of omitting these products, a “not available for your membership”-kinda message/image could replace the actual product. This will leave the number of products the same, and will therefor also not break pagination. One consideration I need to be making is that the install base of the Members Only Products addon is pretty small, and the changes I need to be making are fairly big.
Thanks for looking into it Ronald. So it’s not just a case of wrapping everything in one extra if statement, checking if the product is available (narrowing down the results) and then rendering the relevant products as you currently do (including current pagination etc.)? You know your plugin better then I, so feel free to ignore my high level suggestion. I will see if I can hack this myself too 🙂
Hi P. that makes sense, and I’ll dig into to this, and let you know when/how/if this is feasible.
Thanks Ronald, that would be awesome!
Hi P. I did some digging, and there’s no straightforward solution. Omitting items from the page will cause pagination issues, as not all products of the initially selected page of products will be displayed. Alternatively, in stead of omitting these products, a “not available for your membership”-kinda message/image could replace the actual product. This will leave the number of products the same, and will therefor also not break pagination. One consideration I need to be making is that the install base of the Members Only Products addon is pretty small, and the changes I need to be making are fairly big.
Thanks for looking into it Ronald. So it’s not just a case of wrapping everything in one extra if statement, checking if the product is available (narrowing down the results) and then rendering the relevant products as you currently do (including current pagination etc.)? You know your plugin better then I, so feel free to ignore my high level suggestion. I will see if I can hack this myself too 🙂