This snippet was fetched automatically from WPDistro.cz projects.
<?php
add_action("woocommerce_order_status_changed", "wpd_order_pickup_email");
function wpd_order_pickup_email($order_id, $checkout=null) {
global $woocommerce;
$order = new WC_Order( $order_id );
if($order->status === 'pickingup' and $order->get_meta('_shipping_id') === "napobocce" ) {
// Create a mailer
$mailer = $woocommerce->mailer();
$message_body = "Dobrý den, <br />
Vaše objednávka je již připravena k osobnímu odběru. Můžete si ji vyzvednout na naší adrese v níže uvedených hodinách. <br />
<br />
Mail Step a.s. <br />
Do Čertous 2760/10 <br />
Praha 9 – Horní Počernice, 193 00 <br />
Výdej osobních odběrů: <br />
Pondělí: 10:00–16:30 <br />
Úterý: 10:00–16:30 <br />
Středa: 10:00–16:00 <br />
Čtvrtek: 10:00–15:00 <br />
Pátek: 10:00–15:00";
$message = $mailer->wrap_message(
// Message head and message body.
sprintf( __( 'Vaše objednávka z Reclar: %s k vyzvednutí', 'code-snippets' ), $order->get_order_number() ), $message_body );
// Cliente email, email subject and message.
$mailer->send( $order->billing_email, sprintf( __( 'Vaše objednávka z Reclar: %s k vyzvednutí', 'code-snippets' ), $order->get_order_number() ), $message );
}
}
This snippet was fetched automatically from WPDistro.cz projects.
Cookie | Duration | Description |
---|---|---|
__stripe_mid | 1 year | Stripe sets this cookie cookie to process payments. |
__stripe_sid | 30 minutes | Stripe sets this cookie cookie to process payments. |
cookielawinfo-checkbox-advertisement | 1 year | Set by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Advertisement" category . |
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
elementor | never | This cookie is used by the website's WordPress theme. It allows the website owner to implement or change the website's content in real-time. |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
Cookie | Duration | Description |
---|---|---|
_gh_sess | session | GitHub sets this cookie for temporary application and framework state between pages like what step the user is on in a multiple step form. |
Cookie | Duration | Description |
---|---|---|
_octo | 1 year | No description available. |
logged_in | 1 year | No description available. |
m | 2 years | No description available. |
TDPrJV | 1 day | No description |
wNiYbt | 1 day | No description |