Home › Forums › Calendar Products › Events Calendar PRO › Woo Commerce [products] not working –
- This topic has 8 replies, 3 voices, and was last updated 10 years, 5 months ago by
Support Droid.
-
AuthorPosts
-
October 3, 2015 at 7:06 pm #1011245
laughmasters
ParticipantThis doesn’t work:
/*FORCE THE EVENTS CALENDAR EVENTS TO DISPLAY IN WOO COMMERCE SHORTCODES*/
add_action( ‘wootickets_after_save_ticket’, ‘tribe_set_wootickets_to_public_visibility’ );function tribe_set_wootickets_to_public_visibility( $ticket_id ) {
update_post_meta( $ticket_id, ‘_visibility’, ‘visible’ );
}October 3, 2015 at 7:13 pm #1011246laughmasters
ParticipantAnd the mouseover > Edit in WooCommerce option/solution suggested at the link below isn’t working anymore either. Very frustrating. Nothing appears on hover – anywhere.
October 5, 2015 at 10:54 am #1011553Nico
MemberHi @laughmasters,
Glad to help you out once again in the forums! Sorry to hear about this issue…
Regarding the snippet, I just tested it locally and it’s working on my end. Maybe you switched themes and that function wasn’t migrated?
I’m also seeing the hover options when I’m over the product name. It’s really strange that you are not seeing that, Can you check in the browser console if there are any JS errors? If you are not sure how to check for that please take a look at this article: https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors#Step_3:_Diagnosis.
You can also edit your tickets in WP-Admin > Products > Products, and change the visibility manually until we can get this right,
Please let me know if you can see in errors in the console, or if you manage to make the hover appear.
Best,
NicoOctober 5, 2015 at 4:08 pm #1011656laughmasters
ParticipantI have 4 errors, but they don’t seem related? http://imgur.com/qKa41TQ
Event is published, but still not showing up http://imgur.com/Nw6A0MK
I have not changed themes.
October 5, 2015 at 4:39 pm #1011664laughmasters
ParticipantHere’s a vid of the event – no hover/ pop ups
https://vid.me/LPSQOctober 6, 2015 at 4:08 pm #1012076Nico
MemberHey @laughmasters,
Thanks for following-up with some much ‘evidence’ 🙂
You are not seeing the hover because you need to create a ticket first. Go ahead create a ticket and let me know if the hover is there when you are on top of the ticket title.
Regarding the code, Can you make sure it’s in place? It’s working on my end and don’t see any reasons why it shouldn’t. If it doesn’t we may need to take some additional steps to trouble shoot this.
Please let me know about those,
Best,
NicoOctober 7, 2015 at 4:25 am #1012176laughmasters
ParticipantDuh. Create a ticket. Newbie error.
As for products not showing up – the problem is that the ID number for the woo commerce product (ticket) is different than the ID number for the event. I noticed this by accident. It seems to me that TEC Pro and Woo Commerce could play more nicely together and I look forward to the process of creating events getting easier moving forward.
Right now its a LOT of steps.
October 7, 2015 at 5:37 am #1012188Nico
MemberHey @laughmasters,
NP about that!
As for products not showing up – the problem is that the ID number for the woo commerce product (ticket) is different than the ID number for the event.
In fact that’s how it works! Tickets and Events should not have the same ID. The code provided by George, grabs the ticket ID after it was created and sets the visibility property to ‘visible’. This should be working in your site, if you confirm it’s in place but not working we can trouble shoot that in depth.
add_action( ‘wootickets_after_save_ticket’, ‘tribe_set_wootickets_to_public_visibility’ );function tribe_set_wootickets_to_public_visibility( $ticket_id ) {
update_post_meta( $ticket_id, ‘_visibility’, ‘visible’ );
}
Right now its a LOT of steps.
What do you mean? Event + tickets creation takes a lot of steps? Or you where just referring to this visibility change?
Please let me know, we are always interested in hearing your feedback,
Best,
NicoOctober 22, 2015 at 7:05 am #1016856Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Woo Commerce [products] not working –’ is closed to new replies.
