התראות על הזמנה בהמתנה / הזמנה בהשהייה בחנות

על מנת לשלוח התראה במייל על הזמנה בהמתנה (אחרי שנרשמה במערכת, לפני שבוצעה סליקה),
או התראה במייל על הזמנה בהשהייה (הזמנה עם תשלום בביט / העברה, אחרי שנרשמה במערכת),
יש לשבץ קוד ייעודי בקובץ functions.php של התבנית לטובת הנושא.

חשוב! עריכה של קבצי מקור של התבנית צריכה להיות לאחר וידוא שיש גיבוי, כי טעות אחת קטנה יכולה לגרום לאתר לא לעלות.
כמו כן, לוודא שכל שינוי כזה מתועד בקובץ TXT בתיקיית ה-Programming של הלקוח.

להלן הקודים – להזמנה בהמתנה:

// New order notification for "Pending" Order status
add_action( 'woocommerce_checkout_order_processed', 'pending_new_order_notification', 20, 1 );
function pending_new_order_notification( $order_id ) {
    // Get an instance of the WC_Order object
    $order = wc_get_order( $order_id );

    // For "pending" order status
    if( ! $order->has_status( 'pending' ) ) return;

    // Get an instance of the WC_Email_New_Order object
    $wc_email = WC()->mailer()->get_emails()['WC_Email_New_Order'];

    ## -- Customizing Heading, subject (and optionally add recipients)  -- ##
    // Change Subject
    $wc_email->settings['subject'] = __('{site_title} - הזמנה חדשה ממתינה לתשלום ({order_number}) - {order_date}');
    // Change Heading
    $wc_email->settings['heading'] = __('ההזמנה נרשמה, אישור תשלום במייל נפרד'); 
    $wc_email->settings['recipient'] = 'client@gmail.com'; // Add email recipients (coma separated)

    // Send "New Email" notification (to admin)
    $wc_email->trigger( $order_id );
}

להזמנה בהשהייה:

// New order notification only for "On Hold" Order status
add_action( 'woocommerce_checkout_order_processed', 'onhold_new_order_notification', 20, 1 );
function onhold_new_order_notification( $order_id ) {
    // Get an instance of the WC_Order object
    $order = wc_get_order( $order_id );

    // Only for "pending" order status
    if( ! $order->has_status( 'on-hold' ) ) return;

    // Get an instance of the WC_Email_New_Order object
    $wc_email = WC()->mailer()->get_emails()['WC_Email_New_Order'];

    ## -- Customizing Heading, subject (and optionally add recipients)  -- ##
    // Change Subject
    $wc_email->settings['subject'] = __('{site_title} - הזמנה חדשה לתשלום (ביט / העברה) ({order_number}) - {order_date}');
    // Change Heading
    $wc_email->settings['heading'] = __('ההזמנה נרשמה, יש ליצור קשר עם הלקוח כדי לגבות תשלום, ולעדכן לסטטוס "בטיפול" במערכת'); 
    $wc_email->settings['recipient'] = 'client@gmail.com'; // Add email recipients (coma separated)

    // Send "New Email" notification (to admin)
    $wc_email->trigger( $order_id );
}
x
סייען נגישות
הגדלת גופן
הקטנת גופן
גופן קריא
גווני אפור
גווני מונוכרום
איפוס צבעים
הקטנת תצוגה
הגדלת תצוגה
איפוס תצוגה

אתר מונגש

אנו רואים חשיבות עליונה בהנגשת אתר האינטרנט שלנו לאנשים עם מוגבלויות, וכך לאפשר לכלל האוכלוסיה להשתמש באתרנו בקלות ובנוחות. באתר זה בוצעו מגוון פעולות להנגשת האתר, הכוללות בין השאר התקנת רכיב נגישות ייעודי.

סייגי נגישות

למרות מאמצנו להנגיש את כלל הדפים באתר באופן מלא, יתכן ויתגלו חלקים באתר שאינם נגישים. במידה ואינם מסוגלים לגלוש באתר באופן אופטימלי, אנה צרו איתנו קשר

רכיב נגישות

באתר זה הותקן רכיב נגישות מתקדם, מבית all internet - בניית אתרים. רכיב זה מסייע בהנגשת האתר עבור אנשים בעלי מוגבלויות.