kmcwepc
Forum Replies Created
-
Forum: Plugins
In reply to: [Greenshift - animation and page builder blocks] wrap-reverse on flexbox?Thank you, looking forward to the update! I don’t believe the behaviour is as you describe (fixed width breakpoint). I manually tested it by adding wrap-reverse with custom CSS and resizing the browser window. wrap-reverse triggered as soon as there was a need to wrap (which was content width specific), whereas mobile-specific settings in Greenshift are triggered later, at a fixed but smaller viewport width.
Forum: Plugins
In reply to: [Greenshift - animation and page builder blocks] wrap-reverse on flexbox?Very sorry, I’ve been really busy lately and didn’t have time to properly look into your response. However, I believe your suggestion doesn’t solve my problem since setting row-reverse or column-reverse in general reverses the order in any layout. Setting row-reverse or column-reverse in mobile only, is equivalent to setting the column order in mobile only. But my problem remains that the “mobile” setting doesn’t kick in until the viewport width reaches a certain fixed width, and not when the viewport width is smaller than the content which is when wrapping happens. For example if I have two columns of 400px width, when the browser will wrap them into rows when the browser window is less than 800px, but the mobile-specific CSS takes effect at let’s say 700px width. I hope that makes sense.
Forum: Plugins
In reply to: [Greenshift - animation and page builder blocks] wrap-reverse on flexbox?That’s used so that when the width of the screen becomes too small and the items wrpa, the column order is reversed. You cannot achieve the same thing by setting the column order on mobile view, since the “mobile” CSS kicks in at a fixed device width, and not necessarily when the columns wrap. I’ve tried that and confirmed it’s the case. This is why the wrap-reverse option is implemented in browsers.
Forum: Themes and Templates
In reply to: [Ollie] Can’t change link color or decorationOh, the colour of the link was indeed set on one of the parent blocks, apologies. However, the underlining isn’t, and when I inspect the stylesheet on the element I see that the following is applied in
/wp-content/themes/ollie/style.css?ver=1.1.0
a, a:focus, a:hover { text-decoration: underline; text-decoration-line: underline; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; }
This is despite me having set text decoration to none in the Typography > Links Style settings.
Forum: Plugins
In reply to: [GetPaid > Wallet] SQL query upon plugin activationHi and thank you for replying. This is the version:
Server version: 5.7.39-42-log
Client version: mysqlnd 7.4.33Or alternatively, override the price of a single unit of an item (but allow it to be added multiple times with different prices). Maybe I should explain my usecase/goal. Let’s say I want to sell tickets for an event. I need to have a single item as the ticket so that stock levels work, but I need to allow different rates, e.g. child, unwaged, member, etc. So is there a way to add an item multiple times to the cart, but at different prices?
Just to add an interim solution for anyone who’s looking to do this. This snippet will add a meta box to each item that shows associated invoices:
https://gist.github.com/aayla-secura/40ea9c2da127914774743987ae209bc7
That’s great thank you ?? Do you know approximately when the next update will come out? Also, are you planning on implementing the ability to set a variable price for an item based on the user’s role?
So entries for a form that doesn’t contain payment show up, but as soon as I submit a form with a payment the Entries page gets somehow messed up and the table is blank. I can see in the network tab that the call to fetch the entries as a JSON is working but it’s not being populated on the page. As soon as I delete the payment form (and all its entries), the issue is resolved and previous entries for non-payment forms show up again. I assume this is a bug?
Done, thank you ??
Please consider implementing such a feature: assigning a given user role when a specific subscription is purchased, and removing it when the subscription is no longer active.
After some digging around the code I found the solution:
function _dbg_log( $data ) { // error_log( print_r( $data, true ) ); } function get_membership_roles() { return array( // <name of item> => <slug of wordpress user role> "Class Membership" => "class_member_gp", "Centre Membership" => "centre_member_gp", "Study Membership" => "study_member_gp", "Great Benefactor" => "great_benefactor_gp", ); } function edit_member_role( $method, $subscription ) { $roles = array( // <name of item> => <slug of wordpress user role> "Class Membership" => "class_member_gp", "Centre Membership" => "centre_member_gp", "Study Membership" => "study_member_gp", "Great Benefactor" => "great_benefactor_gp", ); $user_id = $subscription->get_customer_id(); $mem_product = get_the_title( $subscription->get_product_id() ); _dbg_log( "Called edit_member_role with {$method}, {$user_id}, {$mem_product}" ); $user = get_userdata( $user_id ); if ( $user == false ) { return; } _dbg_log( "edit_member_role found a user with ID {$user_id}" ); if ( !array_key_exists( $mem_product, $roles ) ) { _dbg_log( "edit_member_role did not find a user role for product {$mem_product}" ); return; } _dbg_log( "edit_member_role found a user role for product {$mem_product} => {$roles[$mem_product]}. Using {$method}" ); $user->$method( $roles[$mem_product] ); } /* add_action( 'getpaid_new_subscription', 'set_user_role_on_new_subscription', 10, 1 ); function set_user_role_on_new_subscription( $subscription ) { _dbg_log( 'Called set_user_role_on_new_subscription' ); edit_member_role( 'add_role', $subscription ); } */ add_action( 'getpaid_subscription_status_changed', 'set_user_role_on_change_subscription_status', 10, 3 ); function set_user_role_on_change_subscription_status( $subscription, $from, $to ) { _dbg_log( 'Called set_user_role_on_change_subscription_status' ); if ( in_array( $to, array('active', 'trialling')) ) { $method = 'add_role'; } else { $method = 'remove_role'; } edit_member_role( $method, $subscription ); } // do we need to hook into both of these, or just getpaid_delete_subscription? add_action( 'getpaid_delete_subscription', 'set_user_role_on_delete_subscription', 10, 1 ); add_action( 'getpaid_authenticated_admin_action_subscription_manual_delete', 'set_user_role_on_delete_subscription', 10, 1 ); function set_user_role_on_delete_subscription( $subscription ) { _dbg_log( 'Called set_user_role_on_delete_subscription' ); edit_member_role( 'remove_role', $subscription ); } /* add_action( 'getpaid_update_subscription', 'set_user_role_on_update_subscription', 10, 1 ); function set_user_role_on_update_subscription( $subscription ) { } */
- This reply was modified 1 year, 5 months ago by kmcwepc.
Hi and thank you for replying. I should have clarified, I have this add on installed, this is how I assign the roles to members in the first place. What I’m saying is that the roles do not revert back when a membership ends, which I believe should be considered a bug. Or am I missing something?
Oh, I figured it out: I hadn’t set up billing in my Google account, so the requests with this API key were being rejected.
Hi, thanks for replying. As I already mentioned in my original post, I’m aware of how to include individual events, but this is unmanageable as each recurring child seems to need to be included. May I submit a suggestion/feature request to you to implement category based coupons? I just found out how to submit my idea using your roadmaps, so I’ll do that.
- This reply was modified 1 year, 7 months ago by kmcwepc.