Replies
- Tosin on August 30, 2022 at 7:19 am in reply to: [Resolved] Pay Per Post by selling access with WooCommerce #46230
Hello Niculae,
I solved this problem using the code to empty cart on (create-new-post) page load.
/* Empty woocommerce cart on a specific page to avoid conflict with buddyblog pay per post */ add_action( 'template_redirect', 'woocommerce_clear_post_cart_url' ); function woocommerce_clear_post_cart_url() { global $post; $slug = $post->post_name; if($slug == 'create-new-post') { global $woocommerce; $woocommerce->cart->empty_cart(); } }
@brajesh I’ll like to ask regarding the code above. what effect will the code have when multiple users load the (create-new-post) page. I hope it would not affect site performance, if it will, can the code be refined for better optimisation.
Maybe adding a condition not to run the code when user cart is empty
Thanks
- Tosin on August 29, 2022 at 9:02 pm in reply to: buddyblog medium editor not displaying embeds #46222
Gentle reminder sir
Thanks
- Tosin on August 28, 2022 at 1:56 pm in reply to: [Resolved] Pay Per Post by selling access with WooCommerce #46193
Hello Brajesh,
I just tested the plugin 8 times now but users aren’t redirected to cart or checkout even when product pricing has been selected. They aren’t redirected to cart or checkout even if the option (Enable Force Purchase) is enabled or disabled.
All posts are being submitted freely
Just in case i have this code enabled
/*Auto Complete Paid WooCommerce Orders*/ function wc_autocomplete_processing_orders() { return 'completed'; } add_filter( 'woocommerce_payment_complete_order_status', 'wc_autocomplete_processing_orders', 9999 );
Thanks
- This reply was modified 2 years, 3 months ago by Tosin.
Please note that I dont want to hide the Following tab using css
- Tosin on August 25, 2022 at 8:13 pm in reply to: buddyblog medium editor not displaying embeds #46166
There is a lot of space in the embed also when I use chrome inspect element I can see this in the video embed
<p> <!--?xml version="1.0" standalone="yes"?--> <br> <br> <br> </p>
see space at https://ibb.co/nj9Qh6n
- Tosin on August 25, 2022 at 7:47 pm in reply to: buddyblog medium editor not displaying embeds #46165
Thanks Brajesh
I just tested it and the embeds are working now. The only difference now is when the video link is added via the editor the video preview does not show again like before. I am not sure maybe this is intentional but I also think its good because now the video preview does not interfere with the user writing experience.
OHH OK
I’ve decided to stop using the code above and reuse the Facebook like activity stream plugin, now while using the plugin ill like to achieve the following
1. Remove the following tab in sitewide activity directory
2. I recently noticed an issue with the Facebook like activity stream plugin, when a user logs in to the sitewide activity directory the activities of users im following is loaded and everything works smoothly but when I click on a different tab like (favorites tab) or (mentions tab) and click back to (All members tab) the content loaded now changes to activities of all members on the site instead of enforcing only the content of members im following.
- Tosin on August 23, 2022 at 10:45 am in reply to: buddyblog medium editor not displaying embeds #46120
Kind reminder sir, today is 23rd
Thanks
OMG please Henk do you have any idea how many registered members they have
- Tosin on August 21, 2022 at 6:31 pm in reply to: [Resolved] Pay Per Post by selling access with WooCommerce #46103
Kind Reminder Ravi