boxhamster
Forum Replies Created
-
Thank you for providing further guidance and the screenshot.
That is great that exists. I wonder though if it’s the most intuitive for users?Thank you for looking into the issues.
1: that CSS code fixed the issue. Great!
2a: LiteSpeed Cache is not active for admins and logged in users, so that shouldn’t be the issue. TranslatePress. WPML back then when I looked, didn’t work for me. TranslatePress worked great for me. And you have to understand that it was hard work getting everything translated. Redoing it with WPML is not an option. I’m also a bit frustrated that I always get the same message that TranslatePress is not supported. I know, but not everybody can/wants to use it and I am also not the only TranslatePress+MSLMS user out there.
2b: Excellent. Thanks πHi
The given code only adds some functionality in the backend, so it actually has nothing to do with the theme itself.
I guess I need to figure out now why that code doesn’t work anymore due to a recent update of WC.
ThanksAhh, you’re a star!
I was startled for a minute why that specific option disappeared when changing theme, but then looking into my them (Blocksy, Child theme), I had added this code a while ago, but it looks like it is not working anymore:
`</p> <p>/**</p> <ul> <li>Allow redownloads for customers https://gist.github.com/bdaley/d6cdb1d52ca8011003c79e072ef02391#file-wc-regenerate-and-notify-php-L32<br>*/<br>add_filter(‘woocommerce_order_actions’, ‘wc_regenerate_and_notify_custom_order_action’);<br>function wc_regenerate_and_notify_custom_order_action( $actions ) { // Remove the woocommerce option to regenerate to avoid confusion<br>unset($actions[‘regenerate_download_permissions’]); // Add our new action (executed below)<br>$actions[‘wc_regenerate_and_notify’] = __(‘Regenerate permissions & send link to customer’, ‘wc-regenerate-and-notify’);<br>return $actions;<br>}</li> </ul> <p>/**</p> <ul> <li>We need to do 4 things:</li> <li>1) Reset the download counter</li> <li>2) Reset the download expiration date</li> <li>3) Send order confirmation (again) with the download links</li> <li>4) Add a note for recording purposes. *<br>*/<br>add_action(‘woocommerce_order_action_wc_regenerate_and_notify’, function($order){ // 1) Reset the download counter<br>$data_store = WC_Data_Store::load( ‘customer-download’ );<br>$data_store->delete_by_order_id( $order->ID );<br>wc_downloadable_product_permissions( $order->ID, true ); // 2) Retrieve Download and remove the access expiration. (Our poor customer has had enough trouble)<br>// Set the expiration date to +3 days<br>$expiration = new DateTime(‘+3 days’); $downloads = $data_store->get_downloads(array(‘order_id’ => $order->ID) );<br>if(is_array($downloads)){<br>foreach($downloads as $download){<br>$download->set_access_expires($expiration); // Use expiration date here<br>$download->save();<br>}<br>} // 3 & 4) Yay! Send an updated invoice to the customer with this message:<br>$order->add_order_note( __( “We’ve reset your download permissions. Please try downloading again.”, ‘woocommerce’ ), true, true );<br>});`Ahh, great you have everything working already.
Unfortunately, I had stumbled into the same issue recently and have yet to find a solution. I’m not sure if it’s a TPR or MS issue though. πI have MS succesfully integrated with TranslatePress.
These are some screenshots from the settings tab. You might need to adapt yours. (note, I don’t use a subdomain)
https://ibb.co/HVKVM7n
https://ibb.co/JCX0CLH
Maybe that can help with your issues.For me, bringing users back to their User Account doesn’t make sense. A user, while in a course and lesson would likely want to go back to the course overview/enrolled courses, to switch courses. But the User Account? What can they do there while learning? It doesn’t make sense to me.
As is typical, minutes later I find the solution….
This was of course not a PMPro issue.
I had to go into the course, click on “Not included in membership” under Pricing of the course and then uncheck that box again.
This is an issue with the MasterStudy integration into PMPro.Thanks for the insight.
I do wonder though as the PMPro template works just fine (active right now as I need the site running) and the MS template is not working. Would that still be a PMPro issueM
Found out this was a Brizy issue. Downgrading resolves the issue: https://support.brizy.io/hc/en-us/community/posts/20456730414866-Langage-switcher-not-working-fine
Elementor Theme Builder.
Thank you.
I’ve just updated to the new theme file.
The main issue is that the Discount code button is not working and basically all my customers use a discount code due to the nature how we advertise. You can use code SWINGMAPS20 for example.
You can see the checkout page here: https://swingdancehome.com/en/membership-account-2/membership-payment/
(without caching plugin: https://swingdancehome.com/en/membership-account-2/membership-payment/?LSCWP_CTRL=before_optm)
There is a few issues in the console. I’m not even sure why there is an error regarding hCaptcha. Would you know- This reply was modified 1 year, 9 months ago by boxhamster.
Dear Kim
Thank you so much for your guidance. That has removed the duplications now. πForum: Plugins
In reply to: [LiteSpeed Cache] LSCache runs processes that render my page 503 unavailableOk, I’ll check with Hostinger. Thanks π
Excellent! Thanks, Bowo! π