boxhamster
Forum Replies Created
-
Ahh, 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 7 months, 2 weeks 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! ??
Thanks! A few weeks back somehow the webhook was showing as disconnected in PMPro and I clicked on it to connect it again. I guess that duplicated it.
I see the following. Can I delete one of the 2 top ones?Thank you for your answer and suggestion.
Do you mean the “Use theme fonts” setting? That’s the only setting under “Course Player” somewhat related to fonts.
I’ve now toggled that on. (I couldn’t find it in your documentation btw. https://docs.stylemixthemes.com/masterstudy-theme-documentation/lms-settings/course-player)
But that didn’t change anything. Any other ideas?Forum: Plugins
In reply to: [LiteSpeed Cache] LSCache runs processes that render my page 503 unavailableYes, I did play around and I think it was VPI.
I was able to “reset” everything by getting the basic preset to be activated. That resolved the issue, although I was hoping to utilise the VPI functionality. Not sure what to do now.
CCSS also seems to not get scheduled. Bit odd.