Forum Replies Created
-
AuthorPosts
-
October 25, 2017 at 10:43 am in reply to: WC_Product::get_post_data is deprecated since version 3.0! Use get_post instead. #1368798Christian ThomsonParticipant
Hi Cliff,
I wasn’t able to figure that out… however I found a code snippet that adds the date to the event in the order details, and that does the trick for me. I got it from here:
https://theeventscalendar.com/knowledgebase/adding-the-event-date-to-ticket-emails/Thanks!
CintiaOctober 16, 2017 at 11:11 pm in reply to: Different email notifications for Tickets and Product orders #1364422Christian ThomsonParticipantHi Victor,
The code snippet you provided worked great. I ended up moving it to the Customer order email templates instead of functions.php, so I could customize the message depending on the type of email.
Thank you very much!
Cintia
October 14, 2017 at 10:58 am in reply to: Book Now button leads to page not found. WC_Cart::get_cart_url deprecated #1363780Christian ThomsonParticipantThis reply is private.
October 14, 2017 at 10:47 am in reply to: Different email notifications for Tickets and Product orders #1363777Christian ThomsonParticipantHi Victor,
Thank you so much for your reply, I will give this a try as soon as I’m able to solve another issue I’m having with my Store, with regards to another support thread I opened:
https://theeventscalendar.com/support/forums/topic/book-now-button-leads-to-page-not-found-wc_cartget_cart_url-deprecated/I figured out a short-term solution, by replacing
action="<?php echo esc_url( $woocommerce->cart->get_cart_url() ) ?>"
withaction="https://valleyfirstaidtraining.ca/cart/"
And now I no longer get the 404 errors I was getting, but I’d still like to find out how to fix the deprecated code correctly.I’ll be in touch soon. Thanks!
October 12, 2017 at 5:57 pm in reply to: Different email notifications for Tickets and Product orders #1362995Christian ThomsonParticipantHi Victor,
Thanks for the reply!
What I’m looking for, is to customize the messages depending on the mix of
orders made by the customer. Eg:1) Event ticket + WC product
2) Event ticket only
3) WC Product onlyThere are these 3 possibilities, but I want to include messages based on
those 3 types of purchases. Eg:1) “Thanks for singing up for the course X. Note that you need to bring
your own paper and pen.Here are the products you ordered.
{table with products}
If you chose to have it shipped, please note we’ll ship after payment is
confirmed”.2) “Thanks for singing up for the course X. Note that you need to bring
your own paper and pen.”3) “Here are the products you ordered.
{table with products}
If you chose to have it shipped, please note we’ll ship after payment is
confirmed”I guess I need conditionals based on the type of product? The tickets are
also products under WooCommerce Products, so how to create conditionals
based on that?Thanks!!!!
Cintia
—
*Cintia Stela*
*Graphic and Web Designer*
*Marwick Internet Marketing**The Trusted Search Marketing Agency – Premier Google Partner Agency*
*Web: MarwickMarketing.com*
*Call: 1-888-564-9340 ** *
Christian ThomsonParticipantHi Andras,
The issue was exactly that! I had figured it out, and forgot to close the thread. I appreciate the good guess 🙂
Cheers!
CintiaChristian ThomsonParticipantI’m staying tuned, and also trying to get access to GoDaddy so I can open a support ticket there as well. Thanks!
Christian ThomsonParticipantThank you, George. I’ll stay tuned for updates.
- This reply was modified 7 years, 2 months ago by Christian Thomson.
Christian ThomsonParticipantHi George,
Thanks for the quick reply!
So, the answer to your questions:
1. When did these issues start happening, specifically? Was everything
totally fine for a lone time, then you just updated the plugins recently
and then the issues started happening?
*It was fine since ever. The issues started happening recently, maybe a day
or so ago. Even before I updated the plugins. The client reached out
yesterday with the issue, and I thought that by updating everything it
would solve things, but it seems to have made things kind of worse?*2. How are you hosting your website, specifically? Are you using a web host
like GoDaddy, MediaTemplate, BlueHost, DreamHost, etc.? If so, which web
host specifically?
*We are hosting the website with GoDaddy.*3. A server log is mentioned in the messages you posted — do you have
access to this server log? If so, can you copy and paste the full contents
of the server log into a Gist at http://gist.github.com and then share a
link to that Gist here in your response?*We are hosting the website with GoDaddy, but at the moment I have no
access to the GoDaddy cPanel to get access to a log. I still was able to
access the website files via FTP, and I found one log file, for Woocomerce
Moneris Gateway. The log is in the
Gist: https://gist.github.com/MarwickWebsite/51338a6e813b26ebdf729fede1d1e922
**Thank you so much! Looking forward to hearing from you.*
*Cintia**Cintia Stela*
*Graphic & Web Designer**Marwick Internet Marketing*
*Call:* 604 614 0174
*Web:* MarwickMarketing.com[image: http://marwickmarketing.com]
Marwick Internet Marketing is an accredited Google Partner Agency
registered in BC, Canada. It is our mission to be at the forefront of
digital marketing trends. To be the trusted partner for small to medium
business owners in the world of digital marketing. It is our duty to
provide exceptional customer service, positive ROI for marketing budgets
and transparent reporting.—————————————————————————————————————
Christian ThomsonParticipantHi Geoff,
Thanks again for the reply. I tried your code (modified it a bit), but I’m having a few problems:
– The event start and end dates are showing today’s date and current time (see screenshot attached). And the Register button is linking to that Course’s page URL. Why is that?
– The problem with this loop is that I can’t include the “else: include my no-courses-available.php” file (see my previous courses-loop.php file to see how my loop worked).I tested the changes on my local copy of the site. The code I inserted is:
`<section class=”courses”>
<?php
if (is_page(413) ) {
$events = tribe_get_events( array(
‘posts_per_page’ => -1,
‘start_date’ => date( ‘Y-m-d H:i:s’ ),
‘tribe_events_cat’ => ‘occupational-first-aid-level-1’,
) );?>
<ul>
<li>
<div class=”Date”><h3>Day / Date / Time</h3></div>
<div class=”Location”><h3>Course Location</h3></div>
<div class=”Cost”><h3>Cost</h3></div>
<div class=”Register”><h3>Registration</h3>
</li>
<?php foreach ( $events as $event ) {
include(‘courses-loop.php’); } ?>
</ul>
<?php } ?>
</div>`And my courses-loop.php code is changed to:
`<li>
<div class=”Date”>
<b><?php echo tribe_get_start_date($post->ID, true, $format = ‘F j, Y – l’ );?></b><br>
<?php echo tribe_get_start_date($post->ID, false, $format = ‘g:i a’ );?> to <?php echo tribe_get_end_date($post->ID, false, $format = ‘g:i a’ );?></div>
<div class=”Location”><b><?php echo tribe_get_venue()?></b><br><?php echo tribe_get_address()?></div>
<div class=”Cost”><?php echo tribe_get_cost($post->ID, true)?></div>
<div class=”Register”><a class=”download_button” href=”<?php the_permalink() ?>”>Register</a></div>
</li>`Can you help me figure out how to keep the functionality of the if/else (no course available) and also get the course dates to show correctly… and only when the course date is in the future?
Thanks!!!
Christian ThomsonParticipantHi Geoff! Of course, I should have included that, on the page template for the Courses, I have several queries for the different categories:
<?php if (is_page(413) ) { query_posts(array( 'post_type' => 'tribe_events' , 'tribe_events_cat' => 'occupational-first-aid-level-1', 'posts_per_page' => -1 ) ) ; include('courses-loop.php'); } elseif (is_page(422) ) { query_posts(array( 'post_type' => 'tribe_events' , 'tribe_events_cat' => 'occupational-first-aid-level-2', 'posts_per_page' => -1 ) ) ; include('courses-loop.php'); } elseif (is_page(424) ) { query_posts(array( 'post_type' => 'tribe_events' , 'tribe_events_cat' => 'occupational-first-aid-level-3', 'posts_per_page' => -1 ) ) ; include('courses-loop.php'); }
and so on…
Do you think we can modify so we can filter it? Or write the query differently?
Thank you so much!
CintiaChristian ThomsonParticipantHi Geoff,
Thanks for your reply. This is my loop:
<?php if (have_posts()) : ?> <ul> <li> <div class="Date"><h3>Day / Date / Time</h3></div> <div class="Location"><h3>Course Location</h3></div> <div class="Cost"><h3>Cost</h3></div> <div class="Register"><h3>Registration</h3> </li> <?php while (have_posts()) : the_post(); ?> <li> <div class="Date"> <b><?php echo tribe_get_start_date($post->ID, true, $format = 'F j, Y - l' );?></b><br> <?php echo tribe_get_start_date($post->ID, false, $format = 'g:i a' );?> to <?php echo tribe_get_end_date($post->ID, false, $format = 'g:i a' );?></div> <div class="Location"><b><?php echo tribe_get_venue()?></b><br><?php echo tribe_get_address()?></div> <div class="Cost"><?php echo tribe_get_cost($post->ID, true)?></div> <div class="Register"><a class="download_button" href="<?php the_permalink() ?>">Register</a></div> </li> <?php endwhile; ?> </ul> <?php else: ?> <?php include('courses-noavailable.php'); ?> <?php endif; ?>
Do you think there’s a way to modify it?
Thanks!
Cintia
[email protected]July 18, 2016 at 10:32 pm in reply to: Fatal error: Class 'Tribe__Events__Tickets__Woo__Main' not found in… #1141338Christian ThomsonParticipantThank you! That was it!
June 18, 2015 at 9:17 am in reply to: Fatal error: Class 'TribeWooTickets' not found in …/functions.php on line # #970963Christian ThomsonParticipantThanks Brian! The fatal error is gone 🙂
Cheers!February 27, 2015 at 10:51 am in reply to: How to replace the 'out of stock' text on my woocommerce site? #945209Christian ThomsonParticipantYes, that worked! Thanks!
-
AuthorPosts