Hi
I’m trying to follow your guidelines regarding the MOP variables configuration but for some reason it doesn’t work. I’ll appreciate your help. here is the code I’m trying to use in my membership option page:
Configuration mop variables
You can’t just add PHP to a WP page. You need something like the ezPHP plugin to make this work. See https://wordpress.org/plugins/ezphp/
thanks a lot for the timely response.
I added it to the template, not to the page in Wordpress so that’s not the problem.
The thing is I always get the default result no matter what (welcome to finansitaSTORE).
any suggestions?
I’m not sure that I understand your “cases”. I think you are intending them to refer to membership levels, but they don’t correspond to the $requirement_type_value
variable you use in your conditional.
Take a look at this explanation: https://s2member.com/kb-article/s2mop-shortcode/ You might find that shortcodes are the way to go.
Thanks for the article. I’d a look a the bottom of that link you sent where it’s explained in more details and I see that the [requirement type value] variable should indicate 1 for level 1 for example. obviously there’s a problem with the variable’s value but I can’t figure out why.
this is the URL of the redirect by the way:
http://finansita.co.il/ias-17-חכירות/?_s2member_vars=catg..level..1..catg..431..Lz9jYXQ9NDMx&_s2member_sig=1496668126-2de49fbd1990d10c199ad4a6fc0e8b75
But only if you have specified that the value is referring to level, which you haven’t done. So your code provides a value, but doesn’t specify to what that value refers.
I’m sorry but I’m not quite sure what did you mean (I’m not a professional programmer really). could you please give me some more details how to fix it?
I really appreciate your efforts
Neither am I!
The problem is that the value (e.g. 1) could refer to a post ID, or a user ID, or a URI, or a ccap, or a membership level (and probably other things too). Unless you also specify to what the value refers, all your cases will get ignored and only the default will be used.
ok, I see ((
so do you have any idea how to achieve this specification? I have no clue
Why don’t you just use the shortcodes at the top of the page to which I referred?
mainly because I need more flexibility which doing it inside a page is too complicated (in terms of design for example).
so, any suggestions my friend?
You can still use do_shortcode
inside a template and get what you want.
do_shortcode could be an option. only that I want to keep it pure php.
good news though.
somehow when I refreshed the page I finally managed to get the result I wanted (in this case it was case number 1) so it seems to be working now.
thanks for your help. really appreciated