Hi- how can I create a link to the event page from the WooCommerce cart? So if a ticket is listed and is linked to an event, have a hyperlink to that event single page…
By default WooCommerce redirects you to the event. So if you add a ticket to an event it will be added to the tickets category in WooCom. If you go into that ticket in the WooCom admin and change it to visible, it will become visible while in the WooCom shop. But, if you click on it from the WooCom frontend you should be redirected right to the event, and have your usual add to cart area at the bottom of the event. If you try those steps, does it work as you expect? Does that solve the problem you are facing? If not, could you please describe to me what you are doing and on which page you want that link to appear, perhaps linking me to that page if possible. Thanks a bunch!
That is possible. It would require some crafting though. You can hook into the wp_update_post() function, and search for Woo’s visible flag. If it is a ticket, simply switch it from hidden to visible. Not super difficult if you are familiar with WP Plugin APIs.
Please let me know if you have any more questions. Thanks hodephinitely.
Since this topic has gone for a spell without a response I am going to archive it. But please do not hesitate to open a new topic you need anything else. Cheers!
– Brook
Author
Posts
Viewing 5 posts - 1 through 5 (of 5 total)
The topic ‘Link To Event From Cart’ is closed to new replies.