352digital
Forum Replies Created
-
Forum: Plugins
In reply to: [Mailgun for WordPress] Error Exception@devdavi’s reply fixed it for me.
Forum: Plugins
In reply to: [Post My CF7 Form] Set category instead of asking users to choose// Save the your_category in transient add_action('wpcf7_before_send_mail', 'save_your_category_in_transient'); function save_your_category_in_transient($contact_form){ $submission = WPCF7_Submission::get_instance(); if ($submission) { $posted_data = $submission->get_posted_data(); $your_category = sanitize_text_field($posted_data['your-category']); // Save the your_category in the transient for 1 hour set_transient( 'your_category', $your_category, HOUR_IN_SECONDS ); } } // Function to update the category of a post add_action('save_post_leaderboard_entry', 'assign_category_to_post', 10, 3); function assign_category_to_post( $post_id ) { // Get the your_category from the transient $your_category = get_transient('your_category'); // If your_category is not empty, get term and set it for the post if (!empty($your_category)) { // Get term by slug $term = get_term_by( 'slug', $your_category, 'box' ); // If term exists, set it for the post if ($term) { wp_set_object_terms( $post_id, $term->term_id, 'box' ); } // Delete the your_category transient delete_transient('your_category'); } }In the end i managed it with this above and in my form
[select your-category class:hidden-select default:1 "box1" "box2" "box3"]Setting category as a transient with wpcf7_before_send_mail from the form and updating the custom taxonomy after. Couldn’t work out how to use the plugin to set a category instead of making the user choose it.
Forum: Plugins
In reply to: [Post My CF7 Form] Set category instead of asking users to chooseThanks for your reply – you said:
programmatically set your post term by hooking the action at the end of the post creation/saving process.
That is what my php at the top of the ticket is about – when i’m doing that using CF7_2_POST_FORM_POSTED it doesn’t seem to find the post id so doesn’t work.
Using this in the CF7 form seems to be the same too and looks like box 1 is passed to the nest step just not as a category perhaps:
[select your-category class:hidden-select default:1 “box1” “box2” “box3”]
In the email sent to the user:

When i do the mapping, initially i see the taxonomy info and click Save:

I connect it to your-category here and Save the form:

Then i see this and Boxes has disappeared like it’s not connected anymore –

Boxes is not in the dropdown list like you see in the first screenshot i sent BUT box is filled in the slug field…:

Is perhaps this not functioning like it should the cause of the issue and the code at the top should be working to save the category after the form is sent?
Thanks again for your help! This is the last piece of a puzzle and i’ve been scratching my head for days about it!
- This reply was modified 2 years, 10 months ago by 352digital. Reason: added screenshots
- This reply was modified 2 years, 10 months ago by 352digital.
Forum: Plugins
In reply to: [Post My CF7 Form] Set category instead of asking users to chooseHi – maybe i didn’t explain well. What i mean is, i’m trying to pass the category to post my cf7 form using this in the cf7 form:
[select your-category class:hidden-select value=”box1″]
This correctly passes box1 as the category but Post my cf7 Form is not registering it when it creates the post. The posts are saved with no category.
If i put box1, box2, box3 as options in the select it works perfect but i do not want users to choose the category and it should be set per form.
Looking at this in the settings now, i do not see the name of the taxonomy “boxes” “box”, https://snipboard.io/c2hKfG.jpg but think it should be there?
Testing this with WP Gift Cards pro I created an editor user and logged in but still cannot see the gift card orders.
It’s not right only admins can manage the plug-in and see orders.
At least for a woo commerce shop the shop manager needs to be able to see vouchers that have been bought.
Hi. I’m having this problem again and checking if there’s a solution yet.
With AAM I cannot give the management permission for gifts to the shop manager user type. Which access plug-in are you talking about that allows this?
Since it says “Woocommerce” supported and the shop manager has greater permissions than the editor user, why not allow the shop manager access? They need to see vouchers and codes.
This wasn’t resolved. I have disabled registration for events instead so there is no ticket generated.
The tickets are not even as nice as the woo commerce email confirmation (no logo, QR etc) so woo commerce email is better for now BUT in the event that someone needs to distribute PDF tickets for an event, they should be able to do that and the tickets should have the company logo and some kind of scannable code.
I got this problem with events page 404 after wp 5.8.3 update.
Fortunately i have switched off auto updates of all kind on the site after the last problem so this didn’t occur for long.
Would prefer to have updates for security in WP core switched on and not have problems with this plugin after updates…
Saved permalinks again a couple of times and the page displays again.
Yes this is fixed thanks
Forum: Plugins
In reply to: [TemplatesNext ToolKit] header-logo & menu disappearHi – any news here?
Hi – the issue is as you mention and “the title which is shown on browser tab heading”
It’s the Meta title of events archive page.
There is no need to install and configure a translation plugin to change that. It’s done by the plugin and you just need to remove the eventin part.
This is also indexed so when that page displays in a search result it says Eventin too see https://snipboard.io/HTvgxh.jpg.
It’s confusing to users because they are not familiar with ‘Eventin” and don’t need to be.
Sorry if i am not being clear – here is a screenshot – https://snipboard.io/JBGj9q.jpg
“Meta title of events archive page is called Eventin Events Archive”
For me this should be “SITENAME Events Archive” or just “All Events”
Thanks for the info.
In the meantime, to make the checkout more straightforward for free items i have put this in a plugin to remove the payment methods on checkout and show a button saying “Place Order” instead.
/** when cart total is zero don't show payment options **/ add_filter( 'woocommerce_cart_needs_payment', 'filter_cart_needs_payment_callback', 100, 2 ); function filter_cart_needs_payment_callback( $needs_payment, $cart ) { return $cart->subtotal > 0 ? $needs_payment : false; }- This reply was modified 4 years, 5 months ago by 352digital.
Hi – Enable attendee registration – doesn’t this disable tickets too?
I’ve disabled this option to resolve another problem but now users do not get tickets and we need to use the woo order refs and need another plugin to export the orders as a list…
Edit to add – With covid around, I see a lot of “events” that are free but need registration. I’d vote to bump anything you’re working on to make “free” events easier to register for 🙂
- This reply was modified 4 years, 5 months ago by 352digital.
Hi,
I doubled the server capacities but it doesn’t change the situation or make the site any faster. You said memory_limit = 600M – that’s pretty high. Most clients cannot afford a VPS and no shared hosting i know gives you that. It’s using 512M now and works well.
I think this time the problem was related to creating PDFs. I see this critical failure error when I click to download the ticket from the email confirmation too.
To overcome this i had to disable this gift voucher plugin which is not an ideal solution this time of year… https://ww.wp.xz.cn/plugins/gift-voucher/
It looks like it uses this to create PDFs: https://github.com/Setasign/tFPDF
The other plugin works fine when Eventin is enabled but not the other way round.
If not perhaps it’s a wp 5.8 problem? Do you have an update planned soon?
Do you have any ideas on how to fix this problem in the meantime?
Edit – to add to that, when i disable “Enable attendee registration” (4th tab in settings) i’m able to checkout and get a woocommerce confirmation with an order ref but with registration and tickets enabled i get the critical error message again when downloading the PDF using the link in the emails it sends. For now switching off “Enable attendee registration” will allow both plugins to be active at once but this isn’t a fix…
- This reply was modified 4 years, 5 months ago by 352digital.
- This reply was modified 4 years, 5 months ago by 352digital.