Ok thanks for answering, I didn't update it's too complicated and risky for a live site to update now, I have a test site... so.. waiting for some good update to come
hope you can sort things out and make something great relatively quickly !
Regards
ohhh thanks I didn't see that ! thanks very much
Hello,
well it wasn't so complicated to make it work, I don't understand you guys...
I'm even not a develloper and I could adapt this little code in 1 hour and make wplms work with armember membership wich is a real amazing membership plug in !
It's an amazing plug in with much more possibilities and amazing UI much better then pmpro !
I'll clean up the code and share it with you I'm sure a lot of people will like that
you should implement it you'll get more sales !
Hello thanks for your answer, but now I'm confused ! So I should just use the subscription plug in if I want recurring payment, but is it giving a membership possibility to the site ? people pays every month to access to all courses.
sorry but now I don't understand how I can achieve this If those plugins are not compatible together ? ..
thanks for any help
Hello, thanks very much for those info, so I should use woocommerce membership + subscription to make it recurring that's it ? But I read in several posts that those two can not work together in wplms.. is this solved and the two plugins can work good ?
Do you know an cheaper alternative maybe ?
thanks for your time... :)
Ok thanks no problem ! :)
Hello I could resolve my problem by using this css
.wplms_registration_form .field-visibility-settings-toggle {display:block !important;}
.profile .field_terms-and-conditions{display:none;}
What am I doing wrong ?
is there something I missed, an option to do that simplier ?
I just loose my time with this kind of stuff.. Terms and conditions checkbox should be implemented automatically... I should do my courses instead of learning css :( :(
did I miss something, am I a completely noob ?? :(
thanks
OK I could solve it it was a problem on the mailchimp form not your plugin !!
look also the reg form.. everything is assigned properly
https://prnt.sc/sw2rut
Hello I tried everything but it was not working.. finally I tried changing the name of the page where the blog is from 'blog' to 'blog-en' and it worked ...
not sure why ibut now it's ok ..
Hello, thanks for the message,
I think that there's a problem when you create unit with the upfront system ! it creates it with some wrong parameter (maybe it put the unit in english and then forbid to access it because we are in french or something like that)
It's not the first time that I have strange problem like that :( :(
I have to investigate but before I have to finish to recreate the 30++ unit for this course :( :( and hope it works
if you can try or have any idea to solve this ... Thanks in advance
This reply has been marked as private.
Hello !! Ok I did it ! I disabled the direct checkout option and changes the code to:
add_action('template_redirect', 'show_products_woocommerce');
function show_products_woocommerce()
{
global $post;
if ($post->post_type == 'product') {
$product_categories = get_the_terms( $post->ID, 'product_cat' );
foreach ($product_categories as $key => $value) {
if ($value->slug == 'nameyourprice' or $value->slug == 'nameyourprice-fr' ) { $donotredirect = true; }
}
if ($donotredirect!=true) {
global $woocommerce;
$woocommerce->cart->add_to_cart( $post->ID );
$checkout_url = $woocommerce->cart->get_checkout_url();
wp_redirect($checkout_url); // my custom page
exit(); }
}
}
Maybe my code could be optimised a little bit more but now it's working good!!! :) :)
Thanks !
Hello, thank you for your answer, well I don't understand what I did wrong look at that:
https://screencast-o-matic.com/watch/cYhuj0p0eH
Clicking on the curriculum unit doesn't work...
I'm added to the course of course, I tried ressetting the course in admin, I tried with several accounts :(
what should I check ?
Hellooo woaaww thanks very much I think we're close !
the problem is that I want to direct to the product (if he got 'nameyourpric' categorie and not go to the checkout... so I did:
if ($value->slug == 'nameyourprice')
{
$lurl = get_permalink($post->ID);
wp_redirect($lurl); // my custom page
exit();
}
but it loops and I get a ERR_TOO_MANY_REDIRECTS page... I guess because this fonction is in the product page ?
What's the solution ? so just to be clear I would like :
When clicking on take the course:
if product is in category: "nameyourprice" :
Don't redirect directly to checkout
if not:
redirect directly to checkout as normal...
hope it's possible
thanks again ! :)