boxhamster
Forum Replies Created
-
Dang. That was fast! And works like a charm.
Thank you so much. Will head over to the reviews and give you a five star review. ThanksYou’d add that to the template for your products.
I finally found a solution for this problem by myself, after being sent back and forth between PMPro and MSLMS support.
PMPro said that as I activate the PMPro checkout template and the problem disappears, it has nothing to do with their problem. MSLMS said as above that I somehow modified this template myself. I didn’t and wouldn’t even know how to. I kept searching and searching for where this odd code was from.
In the end I tested out removing various elements from the page in Elementor and found the solution. Removing the checkout shortcode, saving the page and putting it back again somehow “updated” the code on that page. With that this error disappeared.
It’s very strange behaviour, but finally solved the issue.Hi @stephanstylemixthemes
Thank you for making changes to this part. I just updated the theme to version 4.8.72.
I’m afraid though that the issue persists. Tested in FF, Edge and Chrome.
https://swingdancehome.com/en/membership-account-2/membership-payment/?level=3- This reply was modified 1 month ago by boxhamster.
- This reply was modified 1 month ago by boxhamster.
Thank you for your reply. The theme was also updated yesterday (till I get notification from ThemeForest it takes a good few hours actually). I am on theme 4.8.71 as of yesterday afternoon and the problem persists.
Note that PMPro still vies the “3.1 Outdated Template <small>Theme:
masterstudy
</small>” warning.I just updated to MS 3.4.4, but the problem continues.
(Note that I have to switch the checkout template on my live website to the PMPro to continue to have functionality). See attached video: https://drive.google.com/file/d/1kR649yeaRKwbJLDesjCbLep3Fhq-g4hj/view?usp=sharing
I’d be grateful for your help. ??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