Changeset 3296674
- Timestamp:
- 05/19/2025 04:42:19 PM (10 months ago)
- Location:
- marketking-multivendor-marketplace-for-woocommerce/trunk
- Files:
-
- 17 edited
-
includes/class-marketking-core.php (modified) (3 diffs)
-
languages/marketking-multivendor-marketplace-for-woocommerce.pot (modified) (105 diffs)
-
marketking-core.php (modified) (3 diffs)
-
public/assets/js/public.js (modified) (2 diffs)
-
public/class-marketking-core-public.php (modified) (3 diffs)
-
public/dashboard/marketking-dashboard-login.php (modified) (8 diffs)
-
public/emails/class-marketking-new-announcement-email.php (modified) (1 diff)
-
public/emails/class-marketking-new-message-email.php (modified) (1 diff)
-
public/emails/class-marketking-new-payout-email.php (modified) (1 diff)
-
public/emails/class-marketking-new-product-requires-approval-email.php (modified) (1 diff)
-
public/emails/class-marketking-new-rating-email.php (modified) (1 diff)
-
public/emails/class-marketking-new-refund-email.php (modified) (1 diff)
-
public/emails/class-marketking-new-vendor-requires-approval-email.php (modified) (1 diff)
-
public/emails/class-marketking-new-verification-email.php (modified) (1 diff)
-
public/emails/class-marketking-product-has-been-approved-email.php (modified) (1 diff)
-
public/emails/class-marketking-your-account-approved-email.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
marketking-multivendor-marketplace-for-woocommerce/trunk/includes/class-marketking-core.php
r3241511 r3296674 683 683 684 684 // only for html emails for now 685 if ($args['plain_text'] === false && $args['sent_to_admin'] === false){685 //if ($args['plain_text'] === false && $args['sent_to_admin'] === false){ 686 686 687 687 … … 695 695 } 696 696 697 }697 //} 698 698 } 699 699 … … 3672 3672 array_push($data['data'], apply_filters('marketking_products_table_ajax_columns', array($col1, $col2, $col3, $col4, $col5, $col6, $col7, $col8, $col9, $col10))); 3673 3673 } else { 3674 array_push($data['data'], apply_filters('marketking_products_table_ajax_columns', array($col1, $col _advertising, $col2, $col3, $col4, $col5, $col6, $col7, $col8, $col9, $col10)));3674 array_push($data['data'], apply_filters('marketking_products_table_ajax_columns', array($col1, $col2, $col_advertising, $col3, $col4, $col5, $col6, $col7, $col8, $col9, $col10))); 3675 3675 } 3676 3676 -
marketking-multivendor-marketplace-for-woocommerce/trunk/languages/marketking-multivendor-marketplace-for-woocommerce.pot
r3241511 r3296674 3 3 msgstr "" 4 4 "Project-Id-Version: MarketKing Core\n" 5 "POT-Creation-Date: 2025-0 2-16 20:56+0100\n"6 "PO-Revision-Date: 2025-0 2-16 20:56+0100\n"5 "POT-Creation-Date: 2025-05-19 18:05+0200\n" 6 "PO-Revision-Date: 2025-05-19 18:05+0200\n" 7 7 "Last-Translator: \n" 8 8 "Language-Team: \n" … … 234 234 #: includes/class-marketking-core-activator.php:189 235 235 #: public/class-marketking-core-public.php:266 236 #: public/class-marketking-core-public.php:9 48237 #: public/class-marketking-core-public.php:17 45236 #: public/class-marketking-core-public.php:968 237 #: public/class-marketking-core-public.php:1765 238 238 #: public/dashboard/templates/header-bar.php:339 239 239 msgid "Vendor" … … 337 337 #: admin/class-marketking-core-admin.php:1549 338 338 #: admin/class-marketking-core-admin.php:5685 339 #: public/class-marketking-core-public.php:24 64339 #: public/class-marketking-core-public.php:2484 340 340 msgid "Print" 341 341 msgstr "" … … 949 949 #: admin/class-marketking-core-admin.php:3063 950 950 #: includes/class-marketking-core.php:3853 includes/elementor/classes.php:515 951 #: public/dashboard/marketking-dashboard-login.php: 944951 #: public/dashboard/marketking-dashboard-login.php:1003 952 952 #: public/dashboard/products.php:35 public/dashboard/templates/sidebar.php:132 953 953 #: public/templates/store-page.php:221 … … 1311 1311 #: admin/class-marketking-core-admin.php:4726 1312 1312 #: admin/class-marketking-core-admin.php:4733 1313 #: public/emails/class-marketking-new-message-email.php:191314 1313 #: public/emails/class-marketking-new-message-email.php:20 1315 #: public/emails/class-marketking-new-message-email.php: 481314 #: public/emails/class-marketking-new-message-email.php:21 1316 1315 #: public/emails/class-marketking-new-message-email.php:49 1316 #: public/emails/class-marketking-new-message-email.php:50 1317 1317 msgid "New message" 1318 1318 msgstr "" … … 1329 1329 #: admin/class-marketking-core-admin.php:4744 1330 1330 #: includes/class-marketking-core.php:4697 1331 #: public/class-marketking-core-public.php:30 511331 #: public/class-marketking-core-public.php:3071 1332 1332 msgid "Inquiry" 1333 1333 msgstr "" … … 1579 1579 1580 1580 #: admin/class-marketking-core-admin.php:5661 1581 #: public/class-marketking-core-public.php:30 411581 #: public/class-marketking-core-public.php:3061 1582 1582 msgid "This URL is available!" 1583 1583 msgstr "" … … 1620 1620 1621 1621 #: admin/class-marketking-core-admin.php:5684 1622 #: public/class-marketking-core-public.php:24 761622 #: public/class-marketking-core-public.php:2496 1623 1623 msgid "Are you sure you want to create this shipment?" 1624 1624 msgstr "" 1625 1625 1626 1626 #: admin/class-marketking-core-admin.php:5686 1627 #: public/class-marketking-core-public.php:24 651627 #: public/class-marketking-core-public.php:2485 1628 1628 msgid "Edit Columns" 1629 1629 msgstr "" … … 2314 2314 2315 2315 #: admin/class-marketking-core-settings.php:1535 2316 #: public/dashboard/marketking-dashboard-login.php:1 1822316 #: public/dashboard/marketking-dashboard-login.php:1241 2317 2317 msgid "Disabled" 2318 2318 msgstr "" … … 2539 2539 2540 2540 #: includes/class-marketking-core-activator.php:51 2541 #: public/class-marketking-core-public.php:27 252542 #: public/dashboard/marketking-dashboard-login.php:2 3982541 #: public/class-marketking-core-public.php:2745 2542 #: public/dashboard/marketking-dashboard-login.php:2457 2543 2543 msgid "Become a Vendor" 2544 2544 msgstr "" … … 2612 2612 #: includes/class-marketking-core-helper.php:207 2613 2613 #: includes/elementor/classes.php:853 2614 #: public/class-marketking-core-public.php:6 692614 #: public/class-marketking-core-public.php:689 2615 2615 msgid "Vendor Information" 2616 2616 msgstr "" … … 2618 2618 #: includes/class-marketking-core-helper.php:213 2619 2619 #: includes/elementor/classes.php:859 2620 #: public/class-marketking-core-public.php: 6802621 #: public/class-marketking-core-public.php:9 262620 #: public/class-marketking-core-public.php:700 2621 #: public/class-marketking-core-public.php:946 2622 2622 #: public/emails/templates/new-product-requires-approval-email-template.php:23 2623 2623 #: public/emails/templates/plain-new-product-requires-approval-email-template.php:16 … … 2628 2628 #: includes/class-marketking-core.php:5687 includes/elementor/classes.php:797 2629 2629 #: includes/elementor/classes.php:887 2630 #: public/class-marketking-core-public.php:7 002630 #: public/class-marketking-core-public.php:720 2631 2631 #: public/templates/store-page.php:363 public/templates/stores-list.php:144 2632 2632 msgid "review" … … 2636 2636 #: includes/class-marketking-core.php:5689 includes/elementor/classes.php:799 2637 2637 #: includes/elementor/classes.php:889 2638 #: public/class-marketking-core-public.php:7 022638 #: public/class-marketking-core-public.php:722 2639 2639 #: public/templates/store-page.php:365 public/templates/stores-list.php:146 2640 2640 msgid "reviews" … … 2644 2644 #: includes/class-marketking-core.php:5691 includes/elementor/classes.php:801 2645 2645 #: includes/elementor/classes.php:891 2646 #: public/class-marketking-core-public.php:7 042646 #: public/class-marketking-core-public.php:724 2647 2647 #: public/templates/store-page.php:367 public/templates/stores-list.php:148 2648 2648 msgid "Rating:" … … 2652 2652 #: includes/class-marketking-core.php:5691 includes/elementor/classes.php:801 2653 2653 #: includes/elementor/classes.php:891 2654 #: public/class-marketking-core-public.php:7 042654 #: public/class-marketking-core-public.php:724 2655 2655 #: public/templates/store-page.php:367 2656 2656 msgid "rating from" … … 2659 2659 #: includes/class-marketking-core-helper.php:257 2660 2660 #: includes/elementor/classes.php:902 2661 #: public/class-marketking-core-public.php:7 102661 #: public/class-marketking-core-public.php:730 2662 2662 msgid "Company:" 2663 2663 msgstr "" … … 2675 2675 #: includes/class-marketking-core-helper.php:323 2676 2676 #: includes/elementor/classes.php:966 2677 #: public/class-marketking-core-public.php:7 272677 #: public/class-marketking-core-public.php:747 2678 2678 #: public/dashboard/manage-order.php:270 2679 2679 msgid "Phone:" … … 2682 2682 #: includes/class-marketking-core-helper.php:328 2683 2683 #: includes/elementor/classes.php:972 2684 #: public/class-marketking-core-public.php:7 302684 #: public/class-marketking-core-public.php:750 2685 2685 #: public/dashboard/manage-order.php:265 2686 2686 msgid "Email:" … … 2733 2733 #: includes/class-marketking-core.php:1345 2734 2734 #: includes/class-marketking-core.php:1366 2735 #: public/dashboard/marketking-dashboard-login.php:9 352735 #: public/dashboard/marketking-dashboard-login.php:994 2736 2736 #: public/dashboard/templates/sidebar.php:193 2737 2737 msgid "Bookings" … … 3028 3028 3029 3029 #: includes/class-marketking-core.php:3613 3030 #: public/class-marketking-core-public.php:24 693030 #: public/class-marketking-core-public.php:2489 3031 3031 #: public/dashboard/dashboard-content.php:166 public/dashboard/products.php:59 3032 3032 #: public/dashboard/products.php:436 … … 3071 3071 3072 3072 #: includes/class-marketking-core.php:3997 3073 #: public/class-marketking-core-public.php:24 683073 #: public/class-marketking-core-public.php:2488 3074 3074 #: public/dashboard/dashboard-content.php:160 3075 3075 #: public/dashboard/dashboard-content.php:417 … … 3086 3086 3087 3087 #: includes/class-marketking-core.php:4003 3088 #: public/class-marketking-core-public.php:24 703088 #: public/class-marketking-core-public.php:2490 3089 3089 #: public/dashboard/dashboard-content.php:172 3090 3090 #: public/dashboard/manage-order.php:211 public/dashboard/orders.php:51 … … 3146 3146 3147 3147 #: includes/class-marketking-core.php:4488 3148 #: public/class-marketking-core-public.php:30 523148 #: public/class-marketking-core-public.php:3072 3149 3149 msgid "Support Request" 3150 3150 msgstr "" … … 3240 3240 3241 3241 #: includes/class-marketking-core.php:5770 3242 #: public/class-marketking-core-public.php:9 743242 #: public/class-marketking-core-public.php:994 3243 3243 msgid "Go to the Vendor Dashboard" 3244 3244 msgstr "" … … 3278 3278 3279 3279 #: includes/class-marketking-core.php:5845 3280 #: public/dashboard/marketking-dashboard-login.php:2 3683280 #: public/dashboard/marketking-dashboard-login.php:2427 3281 3281 msgid "Password" 3282 3282 msgstr "" … … 3426 3426 3427 3427 #: includes/elementor/classes.php:519 3428 #: public/class-marketking-core-public.php:7 453428 #: public/class-marketking-core-public.php:765 3429 3429 #: public/templates/store-page.php:225 3430 3430 msgid "Vendor Details" … … 3448 3448 3449 3449 #: includes/elementor/classes.php:645 3450 #: public/class-marketking-core-public.php:30 603450 #: public/class-marketking-core-public.php:3080 3451 3451 #: public/templates/store-page.php:274 public/templates/stores-list.php:94 3452 3452 #: public/templates/stores-list.php:196 public/templates/stores-list.php:261 … … 3455 3455 3456 3456 #: includes/elementor/classes.php:647 3457 #: public/class-marketking-core-public.php:30 613457 #: public/class-marketking-core-public.php:3081 3458 3458 #: public/templates/store-page.php:276 public/templates/stores-list.php:198 3459 3459 msgid "Following" … … 3475 3475 #: public/class-marketking-core-public.php:220 3476 3476 #: public/class-marketking-core-public.php:230 3477 msgid "You rcannot purchase your own products!"3477 msgid "You cannot purchase your own products!" 3478 3478 msgstr "" 3479 3479 … … 3498 3498 msgstr "" 3499 3499 3500 #: public/class-marketking-core-public.php:5 703500 #: public/class-marketking-core-public.php:590 3501 3501 msgid "This vendor doesn't have any products yet..." 3502 3502 msgstr "" 3503 3503 3504 #: public/class-marketking-core-public.php:7 563504 #: public/class-marketking-core-public.php:776 3505 3505 msgid "Product Inquiry" 3506 3506 msgstr "" 3507 3507 3508 #: public/class-marketking-core-public.php:7 703508 #: public/class-marketking-core-public.php:790 3509 3509 msgid "Product Support" 3510 3510 msgstr "" 3511 3511 3512 #: public/class-marketking-core-public.php: 7843512 #: public/class-marketking-core-public.php:804 3513 3513 msgid "Other Offers" 3514 3514 msgstr "" 3515 3515 3516 #: public/class-marketking-core-public.php:9 643516 #: public/class-marketking-core-public.php:984 3517 3517 msgid "We are currently reviewing your vendor application and it is pending." 3518 3518 msgstr "" 3519 3519 3520 #: public/class-marketking-core-public.php: 9943520 #: public/class-marketking-core-public.php:1014 3521 3521 msgid "Your account is waiting for approval. Until approved, you cannot login." 3522 3522 msgstr "" 3523 3523 3524 #: public/class-marketking-core-public.php:10 103524 #: public/class-marketking-core-public.php:1030 3525 3525 msgid "" 3526 3526 "Before you can login, your account requires manual approval. Our team will " … … 3528 3528 msgstr "" 3529 3529 3530 #: public/class-marketking-core-public.php:10 413530 #: public/class-marketking-core-public.php:1061 3531 3531 msgid "" 3532 3532 "Your account has been succesfully created. We are now reviewing your " … … 3534 3534 msgstr "" 3535 3535 3536 #: public/class-marketking-core-public.php:10 483536 #: public/class-marketking-core-public.php:1068 3537 3537 msgid "" 3538 3538 "Thank you for registering. Your vendor account requires manual approval. " … … 3540 3540 msgstr "" 3541 3541 3542 #: public/class-marketking-core-public.php:15 523542 #: public/class-marketking-core-public.php:1572 3543 3543 #: public/dashboard/templates/header-bar.php:156 3544 3544 msgid "Recent Messages" 3545 3545 msgstr "" 3546 3546 3547 #: public/class-marketking-core-public.php:16 553548 #: public/class-marketking-core-public.php:17 153547 #: public/class-marketking-core-public.php:1675 3548 #: public/class-marketking-core-public.php:1735 3549 3549 #: public/dashboard/templates/header-bar.php:258 3550 3550 #: public/dashboard/templates/header-bar.php:315 … … 3552 3552 msgstr "" 3553 3553 3554 #: public/class-marketking-core-public.php:16 793554 #: public/class-marketking-core-public.php:1699 3555 3555 #: public/dashboard/templates/header-bar.php:279 3556 3556 msgid "Unread Announcements" 3557 3557 msgstr "" 3558 3558 3559 #: public/class-marketking-core-public.php:1 7913559 #: public/class-marketking-core-public.php:1811 3560 3560 #: public/dashboard/templates/header-bar.php:384 3561 3561 msgid "Go to My Store" 3562 3562 msgstr "" 3563 3563 3564 #: public/class-marketking-core-public.php:18 003564 #: public/class-marketking-core-public.php:1820 3565 3565 #: public/dashboard/templates/header-bar.php:393 3566 3566 msgid "Store Settings" 3567 3567 msgstr "" 3568 3568 3569 #: public/class-marketking-core-public.php:18 093569 #: public/class-marketking-core-public.php:1829 3570 3570 #: public/dashboard/templates/header-bar.php:402 3571 3571 msgid "Sign out" 3572 3572 msgstr "" 3573 3573 3574 #: public/class-marketking-core-public.php:19 133574 #: public/class-marketking-core-public.php:1933 3575 3575 msgid "WooCommerce" 3576 3576 msgstr "" 3577 3577 3578 #: public/class-marketking-core-public.php:19 753579 #: public/class-marketking-core-public.php:22 453578 #: public/class-marketking-core-public.php:1995 3579 #: public/class-marketking-core-public.php:2265 3580 3580 msgctxt "enhanced select" 3581 3581 msgid "No matches found" 3582 3582 msgstr "" 3583 3583 3584 #: public/class-marketking-core-public.php:19 763585 #: public/class-marketking-core-public.php:22 463584 #: public/class-marketking-core-public.php:1996 3585 #: public/class-marketking-core-public.php:2266 3586 3586 msgctxt "enhanced select" 3587 3587 msgid "Loading failed" 3588 3588 msgstr "" 3589 3589 3590 #: public/class-marketking-core-public.php:19 773591 #: public/class-marketking-core-public.php:22 473590 #: public/class-marketking-core-public.php:1997 3591 #: public/class-marketking-core-public.php:2267 3592 3592 msgctxt "enhanced select" 3593 3593 msgid "Please enter 1 or more characters" 3594 3594 msgstr "" 3595 3595 3596 #: public/class-marketking-core-public.php:19 783597 #: public/class-marketking-core-public.php:22 483596 #: public/class-marketking-core-public.php:1998 3597 #: public/class-marketking-core-public.php:2268 3598 3598 msgctxt "enhanced select" 3599 3599 msgid "Please enter %qty% or more characters" 3600 3600 msgstr "" 3601 3601 3602 #: public/class-marketking-core-public.php:19 793603 #: public/class-marketking-core-public.php:22 493602 #: public/class-marketking-core-public.php:1999 3603 #: public/class-marketking-core-public.php:2269 3604 3604 msgctxt "enhanced select" 3605 3605 msgid "Please delete 1 character" 3606 3606 msgstr "" 3607 3607 3608 #: public/class-marketking-core-public.php: 19803609 #: public/class-marketking-core-public.php:22 503608 #: public/class-marketking-core-public.php:2000 3609 #: public/class-marketking-core-public.php:2270 3610 3610 msgctxt "enhanced select" 3611 3611 msgid "Please delete %qty% characters" 3612 3612 msgstr "" 3613 3613 3614 #: public/class-marketking-core-public.php: 19813615 #: public/class-marketking-core-public.php:22 513614 #: public/class-marketking-core-public.php:2001 3615 #: public/class-marketking-core-public.php:2271 3616 3616 msgctxt "enhanced select" 3617 3617 msgid "You can only select 1 item" 3618 3618 msgstr "" 3619 3619 3620 #: public/class-marketking-core-public.php: 19823621 #: public/class-marketking-core-public.php:22 523620 #: public/class-marketking-core-public.php:2002 3621 #: public/class-marketking-core-public.php:2272 3622 3622 msgctxt "enhanced select" 3623 3623 msgid "You can only select %qty% items" 3624 3624 msgstr "" 3625 3625 3626 #: public/class-marketking-core-public.php: 19833627 #: public/class-marketking-core-public.php:22 533626 #: public/class-marketking-core-public.php:2003 3627 #: public/class-marketking-core-public.php:2273 3628 3628 msgctxt "enhanced select" 3629 3629 msgid "Loading more results…" 3630 3630 msgstr "" 3631 3631 3632 #: public/class-marketking-core-public.php: 19843633 #: public/class-marketking-core-public.php:22 543632 #: public/class-marketking-core-public.php:2004 3633 #: public/class-marketking-core-public.php:2274 3634 3634 msgctxt "enhanced select" 3635 3635 msgid "Searching…" … … 3637 3637 3638 3638 #. translators: %s: decimal 3639 #: public/class-marketking-core-public.php:20 263639 #: public/class-marketking-core-public.php:2046 3640 3640 #, php-format 3641 3641 msgid "Please enter with one decimal point (%s) without thousand separators." … … 3643 3643 3644 3644 #. translators: %s: price decimal separator 3645 #: public/class-marketking-core-public.php:20 283645 #: public/class-marketking-core-public.php:2048 3646 3646 #, php-format 3647 3647 msgid "" … … 3650 3650 msgstr "" 3651 3651 3652 #: public/class-marketking-core-public.php:20 293652 #: public/class-marketking-core-public.php:2049 3653 3653 msgid "Please enter in country code with two capital letters." 3654 3654 msgstr "" 3655 3655 3656 #: public/class-marketking-core-public.php:20 303656 #: public/class-marketking-core-public.php:2050 3657 3657 msgid "Please enter in a value less than the regular price." 3658 3658 msgstr "" 3659 3659 3660 #: public/class-marketking-core-public.php:20 313660 #: public/class-marketking-core-public.php:2051 3661 3661 msgid "" 3662 3662 "This product has produced sales and may be linked to existing orders. Are " … … 3664 3664 msgstr "" 3665 3665 3666 #: public/class-marketking-core-public.php:20 323666 #: public/class-marketking-core-public.php:2052 3667 3667 msgid "" 3668 3668 "This action cannot be reversed. Are you sure you wish to erase personal data " … … 3670 3670 msgstr "" 3671 3671 3672 #: public/class-marketking-core-public.php:20 373672 #: public/class-marketking-core-public.php:2057 3673 3673 #: public/dashboard/products.php:103 3674 3674 msgid "Import" 3675 3675 msgstr "" 3676 3676 3677 #: public/class-marketking-core-public.php:20 383677 #: public/class-marketking-core-public.php:2058 3678 3678 #: public/dashboard/products.php:113 3679 3679 msgid "Export" 3680 3680 msgstr "" 3681 3681 3682 #: public/class-marketking-core-public.php:20 583682 #: public/class-marketking-core-public.php:2078 3683 3683 msgid "Enable reviews" 3684 3684 msgstr "" 3685 3685 3686 3686 #. translators: %d: Number of variations 3687 #: public/class-marketking-core-public.php:2 0893687 #: public/class-marketking-core-public.php:2109 3688 3688 #, php-format 3689 3689 msgid "" … … 3693 3693 msgstr "" 3694 3694 3695 #: public/class-marketking-core-public.php:2 0903696 #: public/dashboard/marketking-dashboard-login.php:1 6863695 #: public/class-marketking-core-public.php:2110 3696 #: public/dashboard/marketking-dashboard-login.php:1745 3697 3697 msgid "Enter a value" 3698 3698 msgstr "" 3699 3699 3700 #: public/class-marketking-core-public.php:2 0913700 #: public/class-marketking-core-public.php:2111 3701 3701 msgid "Variation menu order (determines position in the list of variations)" 3702 3702 msgstr "" 3703 3703 3704 #: public/class-marketking-core-public.php:2 0923705 #: public/dashboard/marketking-dashboard-login.php:1 6873704 #: public/class-marketking-core-public.php:2112 3705 #: public/dashboard/marketking-dashboard-login.php:1746 3706 3706 msgid "Enter a value (fixed or %)" 3707 3707 msgstr "" 3708 3708 3709 #: public/class-marketking-core-public.php:2 0933709 #: public/class-marketking-core-public.php:2113 3710 3710 msgid "Are you sure you want to delete all variations? This cannot be undone." 3711 3711 msgstr "" 3712 3712 3713 #: public/class-marketking-core-public.php:2 0943713 #: public/class-marketking-core-public.php:2114 3714 3714 msgid "Last warning, are you sure?" 3715 3715 msgstr "" 3716 3716 3717 #: public/class-marketking-core-public.php:2 0953717 #: public/class-marketking-core-public.php:2115 3718 3718 msgid "Choose an image" 3719 3719 msgstr "" 3720 3720 3721 #: public/class-marketking-core-public.php:2 0963721 #: public/class-marketking-core-public.php:2116 3722 3722 msgid "Set variation image" 3723 3723 msgstr "" 3724 3724 3725 #: public/class-marketking-core-public.php:2 0973725 #: public/class-marketking-core-public.php:2117 3726 3726 msgid "variation added" 3727 3727 msgstr "" 3728 3728 3729 #: public/class-marketking-core-public.php:2 0983729 #: public/class-marketking-core-public.php:2118 3730 3730 msgid "variations added" 3731 3731 msgstr "" 3732 3732 3733 #: public/class-marketking-core-public.php:2 0993733 #: public/class-marketking-core-public.php:2119 3734 3734 msgid "No variations added" 3735 3735 msgstr "" 3736 3736 3737 #: public/class-marketking-core-public.php:21 003737 #: public/class-marketking-core-public.php:2120 3738 3738 msgid "Are you sure you want to remove this variation?" 3739 3739 msgstr "" 3740 3740 3741 #: public/class-marketking-core-public.php:21 013741 #: public/class-marketking-core-public.php:2121 3742 3742 msgid "Sale start date (YYYY-MM-DD format or leave blank)" 3743 3743 msgstr "" 3744 3744 3745 #: public/class-marketking-core-public.php:21 023745 #: public/class-marketking-core-public.php:2122 3746 3746 msgid "Sale end date (YYYY-MM-DD format or leave blank)" 3747 3747 msgstr "" 3748 3748 3749 #: public/class-marketking-core-public.php:21 033749 #: public/class-marketking-core-public.php:2123 3750 3750 msgid "Save changes before changing page?" 3751 3751 msgstr "" 3752 3752 3753 #: public/class-marketking-core-public.php:21 043753 #: public/class-marketking-core-public.php:2124 3754 3754 msgid "%qty% variation" 3755 3755 msgstr "" 3756 3756 3757 #: public/class-marketking-core-public.php:21 053757 #: public/class-marketking-core-public.php:2125 3758 3758 msgid "%qty% variations" 3759 3759 msgstr "" 3760 3760 3761 #: public/class-marketking-core-public.php:21 193762 #: public/class-marketking-core-public.php:22 443761 #: public/class-marketking-core-public.php:2139 3762 #: public/class-marketking-core-public.php:2264 3763 3763 msgid "Select an option…" 3764 3764 msgstr "" 3765 3765 3766 #: public/class-marketking-core-public.php:21 223766 #: public/class-marketking-core-public.php:2142 3767 3767 msgid "Name (required)" 3768 3768 msgstr "" 3769 3769 3770 #: public/class-marketking-core-public.php:21 233770 #: public/class-marketking-core-public.php:2143 3771 3771 msgid "Value (required)" 3772 3772 msgstr "" 3773 3773 3774 #: public/class-marketking-core-public.php:21 323774 #: public/class-marketking-core-public.php:2152 3775 3775 msgid "Generate coupon code" 3776 3776 msgstr "" 3777 3777 3778 #: public/class-marketking-core-public.php:21 413778 #: public/class-marketking-core-public.php:2161 3779 3779 msgid "Are you sure you want to remove the selected items?" 3780 3780 msgstr "" 3781 3781 3782 #: public/class-marketking-core-public.php:21 423782 #: public/class-marketking-core-public.php:2162 3783 3783 msgid "Are you sure you want to remove the selected fees?" 3784 3784 msgstr "" 3785 3785 3786 #: public/class-marketking-core-public.php:21 433786 #: public/class-marketking-core-public.php:2163 3787 3787 msgid "Are you sure you want to remove the selected shipping?" 3788 3788 msgstr "" 3789 3789 3790 #: public/class-marketking-core-public.php:21 513790 #: public/class-marketking-core-public.php:2171 3791 3791 msgid "You may need to manually restore the item's stock." 3792 3792 msgstr "" 3793 3793 3794 #: public/class-marketking-core-public.php:21 583794 #: public/class-marketking-core-public.php:2178 3795 3795 msgid "Please select some items." 3796 3796 msgstr "" 3797 3797 3798 #: public/class-marketking-core-public.php:21 593798 #: public/class-marketking-core-public.php:2179 3799 3799 msgid "" 3800 3800 "Are you sure you wish to process this refund? This action cannot be undone." 3801 3801 msgstr "" 3802 3802 3803 #: public/class-marketking-core-public.php:21 603803 #: public/class-marketking-core-public.php:2180 3804 3804 msgid "" 3805 3805 "Are you sure you wish to delete this refund? This action cannot be undone." 3806 3806 msgstr "" 3807 3807 3808 #: public/class-marketking-core-public.php:21 613808 #: public/class-marketking-core-public.php:2181 3809 3809 msgid "" 3810 3810 "Are you sure you wish to delete this tax column? This action cannot be " … … 3812 3812 msgstr "" 3813 3813 3814 #: public/class-marketking-core-public.php:21 623814 #: public/class-marketking-core-public.php:2182 3815 3815 msgid "Remove this item meta?" 3816 3816 msgstr "" 3817 3817 3818 #: public/class-marketking-core-public.php:21 633818 #: public/class-marketking-core-public.php:2183 3819 3819 msgid "Remove this attribute?" 3820 3820 msgstr "" 3821 3821 3822 #: public/class-marketking-core-public.php:21 643822 #: public/class-marketking-core-public.php:2184 3823 3823 #: public/dashboard/products.php:141 3824 3824 msgid "Name" 3825 3825 msgstr "" 3826 3826 3827 #: public/class-marketking-core-public.php:2165 3827 #: public/class-marketking-core-public.php:2185 3828 #: public/dashboard/marketking-dashboard-login.php:801 3828 3829 msgid "Remove" 3829 3830 msgstr "" 3830 3831 3831 #: public/class-marketking-core-public.php:21 663832 #: public/class-marketking-core-public.php:2186 3832 3833 msgid "Click to toggle" 3833 3834 msgstr "" 3834 3835 3835 #: public/class-marketking-core-public.php:21 673836 #: public/class-marketking-core-public.php:2187 3836 3837 msgid "Value(s)" 3837 3838 msgstr "" 3838 3839 3839 #: public/class-marketking-core-public.php:21 683840 #: public/class-marketking-core-public.php:2188 3840 3841 msgid "Enter some text, or some attributes by pipe (|) separating values." 3841 3842 msgstr "" 3842 3843 3843 #: public/class-marketking-core-public.php:21 693844 #: public/class-marketking-core-public.php:2189 3844 3845 msgid "Visible on the product page" 3845 3846 msgstr "" 3846 3847 3847 #: public/class-marketking-core-public.php:21 703848 #: public/class-marketking-core-public.php:2190 3848 3849 msgid "Used for variations" 3849 3850 msgstr "" 3850 3851 3851 #: public/class-marketking-core-public.php:21 713852 #: public/class-marketking-core-public.php:2191 3852 3853 msgid "Enter a name for the new attribute term:" 3853 3854 msgstr "" 3854 3855 3855 #: public/class-marketking-core-public.php:21 723856 #: public/class-marketking-core-public.php:2192 3856 3857 msgid "" 3857 3858 "Recalculate totals? This will calculate taxes based on the customers country " … … 3859 3860 msgstr "" 3860 3861 3861 #: public/class-marketking-core-public.php:21 733862 #: public/class-marketking-core-public.php:2193 3862 3863 msgid "" 3863 3864 "Copy billing information to shipping information? This will remove any " … … 3865 3866 msgstr "" 3866 3867 3867 #: public/class-marketking-core-public.php:21 743868 #: public/class-marketking-core-public.php:2194 3868 3869 msgid "" 3869 3870 "Load the customer's billing information? This will remove any currently " … … 3871 3872 msgstr "" 3872 3873 3873 #: public/class-marketking-core-public.php:21 753874 #: public/class-marketking-core-public.php:2195 3874 3875 msgid "" 3875 3876 "Load the customer's shipping information? This will remove any currently " … … 3877 3878 msgstr "" 3878 3879 3879 #: public/class-marketking-core-public.php:21 763880 #: public/class-marketking-core-public.php:2196 3880 3881 msgid "Featured" 3881 3882 msgstr "" 3882 3883 3883 #: public/class-marketking-core-public.php:2 1803884 #: public/class-marketking-core-public.php:2200 3884 3885 msgid "No customer selected" 3885 3886 msgstr "" 3886 3887 3887 #: public/class-marketking-core-public.php:22 043888 #: public/class-marketking-core-public.php:2224 3888 3889 msgid "" 3889 3890 "Could not grant access - the user may already have permission for this file " … … 3892 3893 msgstr "" 3893 3894 3894 #: public/class-marketking-core-public.php:22 053895 #: public/class-marketking-core-public.php:2225 3895 3896 msgid "Are you sure you want to revoke access to this download?" 3896 3897 msgstr "" 3897 3898 3898 #: public/class-marketking-core-public.php:22 063899 #: public/class-marketking-core-public.php:2226 3899 3900 msgid "You cannot add the same tax rate twice!" 3900 3901 msgstr "" 3901 3902 3902 #: public/class-marketking-core-public.php:22 073903 #: public/class-marketking-core-public.php:2227 3903 3904 msgid "" 3904 3905 "Are you sure you wish to delete this note? This action cannot be undone." 3905 3906 msgstr "" 3906 3907 3907 #: public/class-marketking-core-public.php:22 083908 #: public/class-marketking-core-public.php:2228 3908 3909 msgid "" 3909 3910 "Enter a coupon code to apply. Discounts are applied to line totals, before " … … 3911 3912 msgstr "" 3912 3913 3913 #: public/class-marketking-core-public.php:22 093914 #: public/class-marketking-core-public.php:2229 3914 3915 msgid "Enter a fixed amount or percentage to apply as a fee." 3915 3916 msgstr "" 3916 3917 3917 #: public/class-marketking-core-public.php:22 103918 #: public/class-marketking-core-public.php:2230 3918 3919 msgid "" 3919 3920 "<b>Simple –</b> covers the vast majority of any products you may sell. " … … 3921 3922 msgstr "" 3922 3923 3923 #: public/class-marketking-core-public.php:22 113924 #: public/class-marketking-core-public.php:2231 3924 3925 msgid "" 3925 3926 "<b>Grouped –</b> a collection of related products that can be purchased " … … 3928 3929 msgstr "" 3929 3930 3930 #: public/class-marketking-core-public.php:22 123931 #: public/class-marketking-core-public.php:2232 3931 3932 msgid "" 3932 3933 "<b>External or Affiliate –</b> one that you list and describe on your " … … 3934 3935 msgstr "" 3935 3936 3936 #: public/class-marketking-core-public.php:22 133937 #: public/class-marketking-core-public.php:2233 3937 3938 msgid "" 3938 3939 "<b>Variable –</b> a product with variations, each of which may have a " … … 3941 3942 msgstr "" 3942 3943 3943 #: public/class-marketking-core-public.php:22 143944 #: public/class-marketking-core-public.php:2234 3944 3945 msgid "" 3945 3946 "Product types define available product details and attributes, such as " … … 3948 3949 msgstr "" 3949 3950 3950 #: public/class-marketking-core-public.php:22 153951 #: public/class-marketking-core-public.php:2235 3951 3952 msgid "" 3952 3953 "Describe this product. What makes it unique? What are its most important " … … 3954 3955 msgstr "" 3955 3956 3956 #: public/class-marketking-core-public.php:22 163957 #: public/class-marketking-core-public.php:2236 3957 3958 msgid "" 3958 3959 "Summarize this product in 1-2 short sentences. We’ll show it at the top of " … … 3961 3962 3962 3963 #. translators: %1$s: maximum file size 3963 #: public/class-marketking-core-public.php:22 183964 #: public/class-marketking-core-public.php:2238 3964 3965 #, php-format 3965 3966 msgid "" … … 3968 3969 msgstr "" 3969 3970 3970 #: public/class-marketking-core-public.php:22 193971 #: public/class-marketking-core-public.php:2239 3971 3972 msgid "" 3972 3973 "If you remove this attribute, customers will no longer be able to purchase " … … 3974 3975 msgstr "" 3975 3976 3976 #: public/class-marketking-core-public.php:22 203977 #: public/class-marketking-core-public.php:2240 3977 3978 msgid "Adding new attribute failed." 3978 3979 msgstr "" 3979 3980 3980 3981 #. translators: %s: WC_DELIMITER 3981 #: public/class-marketking-core-public.php:22 223982 #: public/class-marketking-core-public.php:2242 3982 3983 #, php-format 3983 3984 msgid "Enter some descriptive text. Use “%s” to separate different values." 3984 3985 msgstr "" 3985 3986 3986 #: public/class-marketking-core-public.php:22 233987 #: public/class-marketking-core-public.php:2243 3987 3988 #, php-format 3988 3989 msgid "" … … 3991 3992 msgstr "" 3992 3993 3993 #: public/class-marketking-core-public.php:23 223994 #: public/class-marketking-core-public.php:25 083994 #: public/class-marketking-core-public.php:2342 3995 #: public/class-marketking-core-public.php:2528 3995 3996 msgid "Min. Quantity" 3996 3997 msgstr "" 3997 3998 3998 #: public/class-marketking-core-public.php:23 233999 #: public/class-marketking-core-public.php:25 093999 #: public/class-marketking-core-public.php:2343 4000 #: public/class-marketking-core-public.php:2529 4000 4001 msgid "Final Price" 4001 4002 msgstr "" 4002 4003 4003 #: public/class-marketking-core-public.php:23 244004 #: public/class-marketking-core-public.php:25 104004 #: public/class-marketking-core-public.php:2344 4005 #: public/class-marketking-core-public.php:2530 4005 4006 msgid "Label" 4006 4007 msgstr "" 4007 4008 4008 #: public/class-marketking-core-public.php:23 254009 #: public/class-marketking-core-public.php:25 254009 #: public/class-marketking-core-public.php:2345 4010 #: public/class-marketking-core-public.php:2545 4010 4011 msgid "Text" 4011 4012 msgstr "" 4012 4013 4013 #: public/class-marketking-core-public.php:23 264014 #: public/class-marketking-core-public.php:2346 4014 4015 msgid "X" 4015 4016 msgstr "" 4016 4017 4017 #: public/class-marketking-core-public.php:23 284018 #: public/class-marketking-core-public.php:2348 4018 4019 msgid "Are you sure you want to publish this offer?" 4019 4020 msgstr "" 4020 4021 4021 #: public/class-marketking-core-public.php:23 294022 #: public/class-marketking-core-public.php:2349 4022 4023 msgid "Are you sure you want to delete this offer?" 4023 4024 msgstr "" 4024 4025 4025 #: public/class-marketking-core-public.php:23 304026 #: public/class-marketking-core-public.php:2350 4026 4027 msgid "Are you sure you want to publish this rule?" 4027 4028 msgstr "" 4028 4029 4029 #: public/class-marketking-core-public.php:2331 4030 #: public/class-marketking-core-public.php:2351 4031 #: public/class-marketking-core-public.php:2379 4032 msgid "Are you sure you want to delete this rule?" 4033 msgstr "" 4034 4035 #: public/class-marketking-core-public.php:2352 4036 msgid "You must enter a title for the rule!" 4037 msgstr "" 4038 4039 #: public/class-marketking-core-public.php:2353 4040 msgid "You must enter a title for the offer!" 4041 msgstr "" 4042 4043 #: public/class-marketking-core-public.php:2354 4044 msgid "You must have at least 1 product with quantity and price!" 4045 msgstr "" 4046 4047 #: public/class-marketking-core-public.php:2355 4048 msgid "Cart Total Quantity" 4049 msgstr "" 4050 4051 #: public/class-marketking-core-public.php:2356 4052 msgid "Cart Total Value" 4053 msgstr "" 4054 4055 #: public/class-marketking-core-public.php:2357 4056 msgid "Category Product Quantity" 4057 msgstr "" 4058 4059 #: public/class-marketking-core-public.php:2358 4060 msgid "Category Product Value" 4061 msgstr "" 4062 4030 4063 #: public/class-marketking-core-public.php:2359 4031 msgid "Are you sure you want to delete this rule?"4032 msgstr ""4033 4034 #: public/class-marketking-core-public.php:23324035 msgid "You must enter a title for the rule!"4036 msgstr ""4037 4038 #: public/class-marketking-core-public.php:23334039 msgid "You must enter a title for the offer!"4040 msgstr ""4041 4042 #: public/class-marketking-core-public.php:23344043 msgid "You must have at least 1 product with quantity and price!"4044 msgstr ""4045 4046 #: public/class-marketking-core-public.php:23354047 msgid "Cart Total Quantity"4048 msgstr ""4049 4050 #: public/class-marketking-core-public.php:23364051 msgid "Cart Total Value"4052 msgstr ""4053 4054 #: public/class-marketking-core-public.php:23374055 msgid "Category Product Quantity"4056 msgstr ""4057 4058 #: public/class-marketking-core-public.php:23384059 msgid "Category Product Value"4060 msgstr ""4061 4062 #: public/class-marketking-core-public.php:23394063 4064 msgid "Product Quantity" 4064 4065 msgstr "" 4065 4066 4066 #: public/class-marketking-core-public.php:23 404067 #: public/class-marketking-core-public.php:2360 4067 4068 msgid "Product Value" 4068 4069 msgstr "" 4069 4070 4070 #: public/class-marketking-core-public.php:23 414071 #: public/class-marketking-core-public.php:2361 4071 4072 msgid "greater (>)" 4072 4073 msgstr "" 4073 4074 4074 #: public/class-marketking-core-public.php:23 424075 #: public/class-marketking-core-public.php:2362 4075 4076 msgid "equal (=)" 4076 4077 msgstr "" 4077 4078 4078 #: public/class-marketking-core-public.php:23 434079 #: public/class-marketking-core-public.php:2363 4079 4080 msgid "smaller (<)" 4080 4081 msgstr "" 4081 4082 4082 #: public/class-marketking-core-public.php:23 444083 #: public/class-marketking-core-public.php:2364 4083 4084 #: public/dashboard/integrations/woo_vou_pdf_vouchers.php:185 4084 4085 msgid "Delete" 4085 4086 msgstr "" 4086 4087 4087 #: public/class-marketking-core-public.php:23 454088 #: public/class-marketking-core-public.php:2365 4088 4089 msgid "Enter the quantity/value" 4089 4090 msgstr "" 4090 4091 4091 #: public/class-marketking-core-public.php:23 464092 #: public/class-marketking-core-public.php:2366 4092 4093 msgid "Add Condition" 4093 4094 msgstr "" 4094 4095 4095 #: public/class-marketking-core-public.php:23 474096 #: public/class-marketking-core-public.php:2367 4096 4097 msgid "Conditions must apply cumulatively." 4097 4098 msgstr "" 4098 4099 4099 #: public/class-marketking-core-public.php:23 484100 #: public/class-marketking-core-public.php:2368 4100 4101 msgid "Each product must meet all product conditions." 4101 4102 msgstr "" 4102 4103 4103 #: public/class-marketking-core-public.php:23 524104 #: public/class-marketking-core-public.php:25 324104 #: public/class-marketking-core-public.php:2372 4105 #: public/class-marketking-core-public.php:2552 4105 4106 msgid "" 4106 4107 "Your cart contains items from multiple vendors. Quote requests can only be " … … 4108 4109 msgstr "" 4109 4110 4110 #: public/class-marketking-core-public.php:23 544111 #: public/class-marketking-core-public.php:2374 4111 4112 msgid "Email Offer" 4112 4113 msgstr "" 4113 4114 4114 #: public/class-marketking-core-public.php:23 554115 #: public/class-marketking-core-public.php:2375 4115 4116 msgid "" 4116 4117 "This offer will be emailed to ALL users that have visibility. That includes " … … 4120 4121 msgstr "" 4121 4122 4122 #: public/class-marketking-core-public.php:23 564123 #: public/class-marketking-core-public.php:2376 4123 4124 msgid "The offer has been emailed successfully." 4124 4125 msgstr "" 4125 4126 4126 #: public/class-marketking-core-public.php:23 584127 #: public/class-marketking-core-public.php:2378 4127 4128 msgid "The offer has been saved. Do you want to also email it to the user?" 4128 4129 msgstr "" 4129 4130 4130 #: public/class-marketking-core-public.php:24 414131 #: public/class-marketking-core-public.php:2461 4131 4132 msgid "" 4132 4133 "Are you sure you want to permanently CANCEL this subscription? This is " … … 4134 4135 msgstr "" 4135 4136 4136 #: public/class-marketking-core-public.php:24 424137 #: public/class-marketking-core-public.php:2462 4137 4138 msgid "Are you sure you want to delete this coupon?" 4138 4139 msgstr "" 4139 4140 4140 #: public/class-marketking-core-public.php:24 434141 #: public/class-marketking-core-public.php:2463 4141 4142 msgid "Are you sure you want to save this cart?" 4142 4143 msgstr "" 4143 4144 4144 #: public/class-marketking-core-public.php:24 444145 #: public/class-marketking-core-public.php:30 764145 #: public/class-marketking-core-public.php:2464 4146 #: public/class-marketking-core-public.php:3096 4146 4147 msgid "Are you sure you want to send this refund request?" 4147 4148 msgstr "" 4148 4149 4149 #: public/class-marketking-core-public.php:24 454150 #: public/class-marketking-core-public.php:2465 4150 4151 msgid "Are you sure you want to delete this cart?" 4151 4152 msgstr "" 4152 4153 4153 #: public/class-marketking-core-public.php:24 464154 #: public/class-marketking-core-public.php:2466 4154 4155 msgid "Are you sure you want to add this customer?" 4155 4156 msgstr "" 4156 4157 4157 #: public/class-marketking-core-public.php:24 474158 #: public/class-marketking-core-public.php:2467 4158 4159 msgid "Are you sure you want to add this team member?" 4159 4160 msgstr "" 4160 4161 4161 #: public/class-marketking-core-public.php:24 484162 #: public/class-marketking-core-public.php:2468 4162 4163 msgid "Are you sure you want to save the payout info?" 4163 4164 msgstr "" 4164 4165 4165 #: public/class-marketking-core-public.php:24 494166 #: public/class-marketking-core-public.php:2469 4166 4167 msgid "Are you sure you want to disconnect this Stripe account?" 4167 4168 msgstr "" 4168 4169 4169 #: public/class-marketking-core-public.php:24 504170 #: public/class-marketking-core-public.php:2470 4170 4171 msgid "Are you sure you want to make the withdrawal request?" 4171 4172 msgstr "" 4172 4173 4173 #: public/class-marketking-core-public.php:24 514174 #: public/class-marketking-core-public.php:2471 4174 4175 msgid "Are you sure you want to cancel your current withdrawal request?" 4175 4176 msgstr "" 4176 4177 4177 #: public/class-marketking-core-public.php:24 524178 #: public/class-marketking-core-public.php:2472 4178 4179 msgid "The requested withdrawal amount is below the minimum limit." 4179 4180 msgstr "" 4180 4181 4181 #: public/class-marketking-core-public.php:24 534182 #: public/class-marketking-core-public.php:2473 4182 4183 msgid "You do not have sufficient funds for this withdrawal." 4183 4184 msgstr "" 4184 4185 4185 #: public/class-marketking-core-public.php:24 544186 #: public/class-marketking-core-public.php:2474 4186 4187 msgid "Ready" 4187 4188 msgstr "" 4188 4189 4189 #: public/class-marketking-core-public.php:24 554190 #: public/class-marketking-core-public.php:2475 4190 4191 msgid "Link copied" 4191 4192 msgstr "" 4192 4193 4193 #: public/class-marketking-core-public.php:24 564194 #: public/class-marketking-core-public.php:2476 4194 4195 msgid "Copied" 4195 4196 msgstr "" 4196 4197 4197 #: public/class-marketking-core-public.php:24 574198 #: public/class-marketking-core-public.php:2477 4198 4199 msgid "Search " 4199 4200 msgstr "" 4200 4201 4201 #: public/class-marketking-core-public.php:24 584202 #: public/class-marketking-core-public.php:2478 4202 4203 msgid "Copy" 4203 4204 msgstr "" 4204 4205 4205 #: public/class-marketking-core-public.php:24 594206 #: public/class-marketking-core-public.php:2479 4206 4207 msgid "" 4207 4208 "The customer account has been created. An email has been sent to the " … … 4209 4210 msgstr "" 4210 4211 4211 #: public/class-marketking-core-public.php:24 604212 #: public/class-marketking-core-public.php:2480 4212 4213 msgid "" 4213 4214 "The customer account could not be created. It may be because the username or " … … 4215 4216 msgstr "" 4216 4217 4217 #: public/class-marketking-core-public.php:24 614218 #: public/class-marketking-core-public.php:2481 4218 4219 msgid "" 4219 4220 "The team member account has been created. An email has been sent to them " … … 4221 4222 msgstr "" 4222 4223 4223 #: public/class-marketking-core-public.php:24 624224 #: public/class-marketking-core-public.php:2482 4224 4225 msgid "Please fill all required (*) fields / resolve all validation errors." 4225 4226 msgstr "" 4226 4227 4227 #: public/class-marketking-core-public.php:24 634228 #: public/class-marketking-core-public.php:2483 4228 4229 msgid "" 4229 4230 "The team member account could not be created. It may be because the username " … … 4231 4232 msgstr "" 4232 4233 4233 #: public/class-marketking-core-public.php:24 714234 #: public/class-marketking-core-public.php:2491 4234 4235 msgid "orders" 4235 4236 msgstr "" 4236 4237 4237 #: public/class-marketking-core-public.php:24 724238 #: public/class-marketking-core-public.php:2492 4238 4239 msgid "Upload Image" 4239 4240 msgstr "" 4240 4241 4241 #: public/class-marketking-core-public.php:24 754242 #: public/class-marketking-core-public.php:2495 4242 4243 msgid "Are you sure you want to delete this product?" 4243 4244 msgstr "" 4244 4245 4245 #: public/class-marketking-core-public.php:24 774246 #: public/class-marketking-core-public.php:2497 4246 4247 msgid "Are you sure you want to advertise this product?" 4247 4248 msgstr "" 4248 4249 4249 #: public/class-marketking-core-public.php:24 784250 #: public/class-marketking-core-public.php:2498 4250 4251 msgid "You have insufficient credits for this advertisement" 4251 4252 msgstr "" 4252 4253 4253 #: public/class-marketking-core-public.php:24 794254 #: public/class-marketking-core-public.php:2499 4254 4255 msgid "You have successfully advertised this product" 4255 4256 msgstr "" 4256 4257 4257 #: public/class-marketking-core-public.php:2 4804258 #: public/class-marketking-core-public.php:2500 4258 4259 msgid "" 4259 4260 "Are you sure you want to delete this team member account? This is " … … 4261 4262 msgstr "" 4262 4263 4263 #: public/class-marketking-core-public.php:2 4814264 #: public/class-marketking-core-public.php:2501 4264 4265 msgid "Are you sure you want to delete this shipping method?" 4265 4266 msgstr "" 4266 4267 4267 #: public/class-marketking-core-public.php:2 4824268 #: public/class-marketking-core-public.php:2502 4268 4269 msgid "Are you sure you want to add this shipping method?" 4269 4270 msgstr "" 4270 4271 4271 #: public/class-marketking-core-public.php:2 4854272 #: public/class-marketking-core-public.php:2505 4272 4273 msgid "The product must have a name (title)!" 4273 4274 msgstr "" 4274 4275 4275 #: public/class-marketking-core-public.php:2 4994276 #: public/class-marketking-core-public.php:2519 4276 4277 msgid "This coupon code is already in use. Please use a different code." 4277 4278 msgstr "" 4278 4279 4279 #: public/class-marketking-core-public.php:25 134280 #: public/class-marketking-core-public.php:2533 4280 4281 msgid "Choose an attribute:" 4281 4282 msgstr "" 4282 4283 4283 #: public/class-marketking-core-public.php:25 264284 #: public/class-marketking-core-public.php:2546 4284 4285 msgid "You must save the product first before you can configure attributes." 4285 4286 msgstr "" 4286 4287 4287 #: public/class-marketking-core-public.php:25 274288 #: public/class-marketking-core-public.php:2547 4288 4289 msgid "You must save the product first before you can configure variations." 4289 4290 msgstr "" 4290 4291 4291 #: public/class-marketking-core-public.php:25 334292 #: public/class-marketking-core-public.php:30 704292 #: public/class-marketking-core-public.php:2553 4293 #: public/class-marketking-core-public.php:3090 4293 4294 msgid "" 4294 4295 "Are you sure you want to submit this reply? Please note that you can only " … … 4296 4297 msgstr "" 4297 4298 4298 #: public/class-marketking-core-public.php:25 344299 #: public/class-marketking-core-public.php:2554 4299 4300 msgid "Are you sure you want to approve this refund? This is irreversible." 4300 4301 msgstr "" 4301 4302 4302 #: public/class-marketking-core-public.php:25 354303 #: public/class-marketking-core-public.php:2555 4303 4304 msgid "" 4304 4305 "Are you sure you want to save this product as a draft? It will no longer be " … … 4306 4307 msgstr "" 4307 4308 4308 #: public/class-marketking-core-public.php:25 364309 #: public/class-marketking-core-public.php:2556 4309 4310 msgid "Are you sure you want to deny this refund? This is irreversible." 4310 4311 msgstr "" 4311 4312 4312 #: public/class-marketking-core-public.php:25 374313 #: public/class-marketking-core-public.php:30 734313 #: public/class-marketking-core-public.php:2557 4314 #: public/class-marketking-core-public.php:3093 4314 4315 msgid "Your reply has been submitted." 4315 4316 msgstr "" 4316 4317 4317 #: public/class-marketking-core-public.php:25 384318 #: public/class-marketking-core-public.php:30 744318 #: public/class-marketking-core-public.php:2558 4319 #: public/class-marketking-core-public.php:3094 4319 4320 msgid "Your report has been submitted." 4320 4321 msgstr "" 4321 4322 4322 #: public/class-marketking-core-public.php:25 394323 #: public/class-marketking-core-public.php:2559 4323 4324 msgid "Are you sure you want to submit this for verification?" 4324 4325 msgstr "" 4325 4326 4326 #: public/class-marketking-core-public.php:25 404327 #: public/class-marketking-core-public.php:2560 4327 4328 msgid "Are you sure?" 4328 4329 msgstr "" 4329 4330 4330 #: public/class-marketking-core-public.php:25 414331 #: public/class-marketking-core-public.php:2561 4331 4332 msgid "Yes, continue" 4332 4333 msgstr "" 4333 4334 4334 #: public/class-marketking-core-public.php:25 424335 #: public/class-marketking-core-public.php:2562 4335 4336 #: public/dashboard/integrations/woo_vou_pdf_vouchers.php:184 4336 4337 #: public/dashboard/profile.php:253 public/dashboard/profile.php:315 … … 4339 4340 msgstr "" 4340 4341 4341 #: public/class-marketking-core-public.php:25 434342 #: public/class-marketking-core-public.php:2563 4342 4343 msgid "Please select a file." 4343 4344 msgstr "" 4344 4345 4345 #: public/class-marketking-core-public.php:25 564346 #: public/class-marketking-core-public.php:2576 4346 4347 #: public/dashboard/products.php:195 4347 4348 msgid "type" 4348 4349 msgstr "" 4349 4350 4350 #: public/class-marketking-core-public.php:25 594351 #: public/class-marketking-core-public.php:2579 4351 4352 msgid "Loading shipping data..." 4352 4353 msgstr "" 4353 4354 4354 #: public/class-marketking-core-public.php:27 724355 #: public/class-marketking-core-public.php:2792 4355 4356 msgid "User Type" 4356 4357 msgstr "" 4357 4358 4358 #: public/class-marketking-core-public.php:29 134359 #: public/class-marketking-core-public.php:2933 4359 4360 msgid "Supported file types: jpg, jpeg, png, txt, pdf, doc, docx" 4360 4361 msgstr "" 4361 4362 4362 #: public/class-marketking-core-public.php: 29944363 #: public/class-marketking-core-public.php:3014 4363 4364 msgid "State / County" 4364 4365 msgstr "" 4365 4366 4366 #: public/class-marketking-core-public.php:30 424367 #: public/class-marketking-core-public.php:3062 4367 4368 msgid "This URL is not available!" 4368 4369 msgstr "" 4369 4370 4370 #: public/class-marketking-core-public.php:30 434371 #: public/class-marketking-core-public.php:3063 4371 4372 msgid "Searching availability..." 4372 4373 msgstr "" 4373 4374 4374 #: public/class-marketking-core-public.php:30 444375 #: public/class-marketking-core-public.php:3064 4375 4376 msgid "The URL is too short..." 4376 4377 msgstr "" 4377 4378 4378 #: public/class-marketking-core-public.php:30 464379 #: public/class-marketking-core-public.php:3066 4379 4380 msgid "There are no sellers yet..." 4380 4381 msgstr "" 4381 4382 4382 #: public/class-marketking-core-public.php:30 494383 #: public/class-marketking-core-public.php:3069 4383 4384 msgid "" 4384 4385 "Your message has been received. We will get back to you as soon as possible." 4385 4386 msgstr "" 4386 4387 4387 #: public/class-marketking-core-public.php:30 504388 #: public/class-marketking-core-public.php:3070 4388 4389 msgid "" 4389 4390 "Your support request has been received. The vendor will get back to you as " … … 4391 4392 msgstr "" 4392 4393 4393 #: public/class-marketking-core-public.php:30 534394 #: public/class-marketking-core-public.php:3073 4394 4395 msgid "Send inquiry" 4395 4396 msgstr "" 4396 4397 4397 #: public/class-marketking-core-public.php:30 544398 #: public/class-marketking-core-public.php:3074 4398 4399 msgid "Please fill all fields to submit the inquiry" 4399 4400 msgstr "" 4400 4401 4401 #: public/class-marketking-core-public.php:30 554402 #: public/class-marketking-core-public.php:3075 4402 4403 msgid "The email address you entered is invalid" 4403 4404 msgstr "" 4404 4405 4405 #: public/class-marketking-core-public.php:30 594406 #: public/class-marketking-core-public.php:3079 4406 4407 msgid "" 4407 4408 "Your cart contains items from multiple vendors. Quote requests can only be " … … 4410 4411 msgstr "" 4411 4412 4412 #: public/class-marketking-core-public.php:30 624413 #: public/class-marketking-core-public.php:3082 4413 4414 msgid "Are you sure you want to submit this abuse report?" 4414 4415 msgstr "" 4415 4416 4416 #: public/class-marketking-core-public.php:30 634417 #: public/class-marketking-core-public.php:3083 4417 4418 msgid "" 4418 4419 "Are you sure you want to mark this order as Received? This means you are " … … 4421 4422 msgstr "" 4422 4423 4423 #: public/class-marketking-core-public.php:30 644424 #: public/class-marketking-core-public.php:3084 4424 4425 msgid "Thank you for your submission. Your report has been received." 4425 4426 msgstr "" 4426 4427 4427 #: public/class-marketking-core-public.php:30 654428 #: public/class-marketking-core-public.php:3085 4428 4429 msgid "Your abuse report has been received." 4429 4430 msgstr "" 4430 4431 4431 #: public/class-marketking-core-public.php:30 664432 #: public/class-marketking-core-public.php:3086 4432 4433 msgid "The product has been added to your store" 4433 4434 msgstr "" 4434 4435 4435 #: public/class-marketking-core-public.php:30 754436 #: public/class-marketking-core-public.php:3095 4436 4437 msgid "Your request has been sent." 4437 4438 msgstr "" 4438 4439 4439 #: public/class-marketking-core-public.php:30 774440 #: public/class-marketking-core-public.php:3097 4440 4441 msgid "The value requested cannot exceed the order value." 4441 4442 msgstr "" 4442 4443 4443 #: public/class-marketking-core-public.php:3 0844444 #: public/class-marketking-core-public.php:3104 4444 4445 #: public/templates/stores-list.php:37 4445 4446 msgid "All Categories" … … 5348 5349 5349 5350 #: public/dashboard/marketking-dashboard-login.php:185 5350 #: public/dashboard/marketking-dashboard-login.php:1 7895351 #: public/dashboard/marketking-dashboard-login.php:1848 5351 5352 msgid "Error" 5352 5353 msgstr "" … … 5463 5464 msgstr "" 5464 5465 5465 #: public/dashboard/marketking-dashboard-login.php:69 25466 #: public/dashboard/marketking-dashboard-login.php:696 5466 5467 msgid "No row selected" 5467 5468 msgstr "" 5468 5469 5469 #: public/dashboard/marketking-dashboard-login.php:69 35470 #: public/dashboard/marketking-dashboard-login.php:697 5470 5471 msgid "Product ID" 5471 5472 msgstr "" 5472 5473 5473 #: public/dashboard/marketking-dashboard-login.php:69 45474 #: public/dashboard/marketking-dashboard-login.php:698 5474 5475 msgid "Country Code" 5475 5476 msgstr "" 5476 5477 5477 #: public/dashboard/marketking-dashboard-login.php:69 55478 #: public/dashboard/marketking-dashboard-login.php:699 5478 5479 msgid "State/County Code" 5479 5480 msgstr "" 5480 5481 5481 #: public/dashboard/marketking-dashboard-login.php: 6965482 #: public/dashboard/marketking-dashboard-login.php:700 5482 5483 msgid "Zip/Postal Code" 5483 5484 msgstr "" 5484 5485 5485 #: public/dashboard/marketking-dashboard-login.php: 6975486 #: public/dashboard/marketking-dashboard-login.php:701 5486 5487 msgid "Cost" 5487 5488 msgstr "" 5488 5489 5489 #: public/dashboard/marketking-dashboard-login.php: 6985490 #: public/dashboard/marketking-dashboard-login.php:702 5490 5491 msgid "Item Cost" 5491 5492 msgstr "" 5492 5493 5493 #: public/dashboard/marketking-dashboard-login.php: 7525494 #: public/dashboard/marketking-dashboard-login.php:809 5494 5495 msgid "Insert delivery time name, slug or id." 5495 5496 msgstr "" 5496 5497 5497 #: public/dashboard/marketking-dashboard-login.php: 7535498 #: public/dashboard/marketking-dashboard-login.php:810 5498 5499 msgid "Insert product units amount." 5499 5500 msgstr "" 5500 5501 5501 #: public/dashboard/marketking-dashboard-login.php:8 215502 #: public/dashboard/marketking-dashboard-login.php:880 5502 5503 msgid "No data available in table" 5503 5504 msgstr "" 5504 5505 5505 #: public/dashboard/marketking-dashboard-login.php:8 225506 #: public/dashboard/marketking-dashboard-login.php:881 5506 5507 msgid "Showing _START_ to _END_ of _TOTAL_ entries" 5507 5508 msgstr "" 5508 5509 5509 #: public/dashboard/marketking-dashboard-login.php:8 235510 #: public/dashboard/marketking-dashboard-login.php:882 5510 5511 msgid "Showing 0 to 0 of 0 entries" 5511 5512 msgstr "" 5512 5513 5513 #: public/dashboard/marketking-dashboard-login.php:8 245514 #: public/dashboard/marketking-dashboard-login.php:883 5514 5515 msgid "(filtered from _MAX_ total entries)" 5515 5516 msgstr "" 5516 5517 5517 #: public/dashboard/marketking-dashboard-login.php:8 255518 #: public/dashboard/marketking-dashboard-login.php:884 5518 5519 msgid "Show _MENU_ entries" 5519 5520 msgstr "" 5520 5521 5521 #: public/dashboard/marketking-dashboard-login.php:8 265522 #: public/dashboard/marketking-dashboard-login.php:885 5522 5523 msgid "Loading..." 5523 5524 msgstr "" 5524 5525 5525 #: public/dashboard/marketking-dashboard-login.php:8 275526 #: public/dashboard/marketking-dashboard-login.php:886 5526 5527 msgid "Processing..." 5527 5528 msgstr "" 5528 5529 5529 #: public/dashboard/marketking-dashboard-login.php:8 285530 #: public/dashboard/marketking-dashboard-login.php:887 5530 5531 msgid "Search:" 5531 5532 msgstr "" 5532 5533 5533 #: public/dashboard/marketking-dashboard-login.php:8 295534 #: public/dashboard/marketking-dashboard-login.php:888 5534 5535 msgid "No matching records found" 5535 5536 msgstr "" 5536 5537 5537 #: public/dashboard/marketking-dashboard-login.php:8 315538 #: public/dashboard/marketking-dashboard-login.php:890 5538 5539 msgid "First" 5539 5540 msgstr "" 5540 5541 5541 #: public/dashboard/marketking-dashboard-login.php:8 325542 #: public/dashboard/marketking-dashboard-login.php:891 5542 5543 msgid "Last" 5543 5544 msgstr "" 5544 5545 5545 #: public/dashboard/marketking-dashboard-login.php:8 335546 #: public/dashboard/marketking-dashboard-login.php:892 5546 5547 msgid "Next" 5547 5548 msgstr "" 5548 5549 5549 #: public/dashboard/marketking-dashboard-login.php:8 345550 #: public/dashboard/marketking-dashboard-login.php:893 5550 5551 msgid "Previous" 5551 5552 msgstr "" 5552 5553 5553 #: public/dashboard/marketking-dashboard-login.php:8 375554 #: public/dashboard/marketking-dashboard-login.php:896 5554 5555 msgid ": activate to sort column ascending" 5555 5556 msgstr "" 5556 5557 5557 #: public/dashboard/marketking-dashboard-login.php:8 385558 #: public/dashboard/marketking-dashboard-login.php:897 5558 5559 msgid ": activate to sort column descending" 5559 5560 msgstr "" 5560 5561 5561 #: public/dashboard/marketking-dashboard-login.php: 9535562 #: public/dashboard/marketking-dashboard-login.php:1012 5562 5563 msgid "Resources" 5563 5564 msgstr "" 5564 5565 5565 #: public/dashboard/marketking-dashboard-login.php: 9625566 #: public/dashboard/marketking-dashboard-login.php:1021 5566 5567 msgid "Calendar" 5567 5568 msgstr "" 5568 5569 5569 #: public/dashboard/marketking-dashboard-login.php: 9745570 #: public/dashboard/marketking-dashboard-login.php:1033 5570 5571 #: public/dashboard/templates/profile-sidebar.php:194 5571 5572 msgid "Google Calendar Integration" 5572 5573 msgstr "" 5573 5574 5574 #: public/dashboard/marketking-dashboard-login.php:1 1835575 #: public/dashboard/marketking-dashboard-login.php:1242 5575 5576 msgid "Inherit from product" 5576 5577 msgstr "" 5577 5578 5578 #: public/dashboard/marketking-dashboard-login.php:1 1845579 #: public/dashboard/marketking-dashboard-login.php:1243 5579 5580 msgid "Inherit from chosen variation" 5580 5581 msgstr "" 5581 5582 5582 #: public/dashboard/marketking-dashboard-login.php:1 1855583 #: public/dashboard/marketking-dashboard-login.php:1244 5583 5584 msgid "Override product" 5584 5585 msgstr "" 5585 5586 5586 #: public/dashboard/marketking-dashboard-login.php:1 1865587 #: public/dashboard/marketking-dashboard-login.php:1245 5587 5588 msgid "Override all variations" 5588 5589 msgstr "" 5589 5590 5590 #: public/dashboard/marketking-dashboard-login.php:1 1875591 #: public/dashboard/marketking-dashboard-login.php:1246 5591 5592 msgid "Discount to apply to the product when this plan is selected." 5592 5593 msgstr "" 5593 5594 5594 #: public/dashboard/marketking-dashboard-login.php:1 1885595 #: public/dashboard/marketking-dashboard-login.php:1247 5595 5596 msgid "Discount to apply to the chosen variation when this plan is selected." 5596 5597 msgstr "" 5597 5598 5598 #: public/dashboard/marketking-dashboard-login.php:1 2725599 #: public/dashboard/marketking-dashboard-login.php:1331 5599 5600 msgid "" 5600 5601 "Trashing this order will also trash the subscriptions purchased with the " … … 5602 5603 msgstr "" 5603 5604 5604 #: public/dashboard/marketking-dashboard-login.php:1 2835605 #: public/dashboard/marketking-dashboard-login.php:1342 5605 5606 msgid "The trial period cannot exceed the maximum" 5606 5607 msgstr "" 5607 5608 5608 #: public/dashboard/marketking-dashboard-login.php:1 2845609 #: public/dashboard/marketking-dashboard-login.php:1343 5609 5610 msgid "Enter the new period, either day, week, month or year:" 5610 5611 msgstr "" 5611 5612 5612 #: public/dashboard/marketking-dashboard-login.php:1 2855613 #: public/dashboard/marketking-dashboard-login.php:1344 5613 5614 msgid "Enter a new length (e.g. 5):" 5614 5615 msgstr "" 5615 5616 5616 #: public/dashboard/marketking-dashboard-login.php:1 2865617 #: public/dashboard/marketking-dashboard-login.php:1345 5617 5618 msgid "" 5618 5619 "Enter a new interval as a single number (e.g. to charge every 2nd month, " … … 5620 5621 msgstr "" 5621 5622 5622 #: public/dashboard/marketking-dashboard-login.php:1 2875623 #: public/dashboard/marketking-dashboard-login.php:1346 5623 5624 msgid "Delete all variations without a subscription" 5624 5625 msgstr "" 5625 5626 5626 #: public/dashboard/marketking-dashboard-login.php:1 2905627 #: public/dashboard/marketking-dashboard-login.php:1349 5627 5628 msgid "" 5628 5629 "The product type can not be changed because this product is associated with " … … 5630 5631 msgstr "" 5631 5632 5632 #: public/dashboard/marketking-dashboard-login.php:1 2935633 #: public/dashboard/marketking-dashboard-login.php:1352 5633 5634 msgid "" 5634 5635 "An error occurred determining if that variation can be deleted. Please try " … … 5636 5637 msgstr "" 5637 5638 5638 #: public/dashboard/marketking-dashboard-login.php:1 2945639 #: public/dashboard/marketking-dashboard-login.php:1353 5639 5640 msgid "" 5640 5641 "That variation can not be removed because it is associated with active " … … 5643 5644 msgstr "" 5644 5645 5645 #: public/dashboard/marketking-dashboard-login.php:1 2955646 #: public/dashboard/marketking-dashboard-login.php:1354 5646 5647 msgid "" 5647 5648 "You are about to trash one or more orders which contain a subscription.\n" … … 5651 5652 msgstr "" 5652 5653 5653 #: public/dashboard/marketking-dashboard-login.php:1 2975654 #: public/dashboard/marketking-dashboard-login.php:1356 5654 5655 msgid "" 5655 5656 "WARNING: Bad things are about to happen!\n" … … 5663 5664 msgstr "" 5664 5665 5665 #: public/dashboard/marketking-dashboard-login.php:1 2985666 #: public/dashboard/marketking-dashboard-login.php:1357 5666 5667 msgid "" 5667 5668 "You are deleting a subscription item. You will also need to manually cancel " … … 5669 5670 msgstr "" 5670 5671 5671 #: public/dashboard/marketking-dashboard-login.php:13 335672 #: public/dashboard/marketking-dashboard-login.php:1392 5672 5673 msgid "Please enter a start date in the past." 5673 5674 msgstr "" 5674 5675 5675 #: public/dashboard/marketking-dashboard-login.php:13 345676 #: public/dashboard/marketking-dashboard-login.php:1393 5676 5677 msgid "Please enter a date at least 2 minutes into the future." 5677 5678 msgstr "" 5678 5679 5679 #: public/dashboard/marketking-dashboard-login.php:13 345680 #: public/dashboard/marketking-dashboard-login.php:1393 5680 5681 msgid "Please enter a date at least one hour into the future." 5681 5682 msgstr "" 5682 5683 5683 #: public/dashboard/marketking-dashboard-login.php:13 355684 #: public/dashboard/marketking-dashboard-login.php:1394 5684 5685 msgid "Please enter a date after the trial end." 5685 5686 msgstr "" 5686 5687 5687 #: public/dashboard/marketking-dashboard-login.php:13 365688 #: public/dashboard/marketking-dashboard-login.php:13 375688 #: public/dashboard/marketking-dashboard-login.php:1395 5689 #: public/dashboard/marketking-dashboard-login.php:1396 5689 5690 msgid "Please enter a date after the start date." 5690 5691 msgstr "" 5691 5692 5692 #: public/dashboard/marketking-dashboard-login.php:13 385693 #: public/dashboard/marketking-dashboard-login.php:1397 5693 5694 msgid "Please enter a date before the next payment." 5694 5695 msgstr "" 5695 5696 5696 #: public/dashboard/marketking-dashboard-login.php:13 395697 #: public/dashboard/marketking-dashboard-login.php:1398 5697 5698 msgid "Please enter a date after the next payment." 5698 5699 msgstr "" 5699 5700 5700 #: public/dashboard/marketking-dashboard-login.php:13 405701 #: public/dashboard/marketking-dashboard-login.php:1399 5701 5702 msgid "" 5702 5703 "Are you sure you want to process a renewal?\n" … … 5706 5707 msgstr "" 5707 5708 5708 #: public/dashboard/marketking-dashboard-login.php:1 3535709 #: public/dashboard/marketking-dashboard-login.php:1412 5709 5710 msgid "" 5710 5711 "Are you sure you want to retry payment for this renewal order?\n" … … 5714 5715 msgstr "" 5715 5716 5716 #: public/dashboard/marketking-dashboard-login.php:14 075717 #: public/dashboard/marketking-dashboard-login.php:1 4485717 #: public/dashboard/marketking-dashboard-login.php:1466 5718 #: public/dashboard/marketking-dashboard-login.php:1507 5718 5719 msgid "Are you sure you want to delete this zone? This action cannot be undone" 5719 5720 msgstr "" 5720 5721 5721 #: public/dashboard/marketking-dashboard-login.php:14 085722 #: public/dashboard/marketking-dashboard-login.php:1 4495722 #: public/dashboard/marketking-dashboard-login.php:1467 5723 #: public/dashboard/marketking-dashboard-login.php:1508 5723 5724 msgid "Zone" 5724 5725 msgstr "" 5725 5726 5726 #: public/dashboard/marketking-dashboard-login.php:14 255727 #: public/dashboard/marketking-dashboard-login.php:1 4685727 #: public/dashboard/marketking-dashboard-login.php:1484 5728 #: public/dashboard/marketking-dashboard-login.php:1527 5728 5729 #, php-format 5729 5730 msgid "" … … 5732 5733 msgstr "" 5733 5734 5734 #: public/dashboard/marketking-dashboard-login.php:14 265735 #: public/dashboard/marketking-dashboard-login.php:1 4695735 #: public/dashboard/marketking-dashboard-login.php:1485 5736 #: public/dashboard/marketking-dashboard-login.php:1528 5736 5737 msgid "" 5737 5738 "The first IP not empty of your server variables does not match with your " … … 5739 5740 msgstr "" 5740 5741 5741 #: public/dashboard/marketking-dashboard-login.php:14 275742 #: public/dashboard/marketking-dashboard-login.php:1 4705742 #: public/dashboard/marketking-dashboard-login.php:1486 5743 #: public/dashboard/marketking-dashboard-login.php:1529 5743 5744 msgid "The MaxMind GeoIP database is required." 5744 5745 msgstr "" 5745 5746 5746 #: public/dashboard/marketking-dashboard-login.php:1 5925747 #: public/dashboard/marketking-dashboard-login.php:1651 5747 5748 msgid "Not available in your browser" 5748 5749 msgstr "" 5749 5750 5750 #: public/dashboard/marketking-dashboard-login.php:1 5935751 #: public/dashboard/marketking-dashboard-login.php:1652 5751 5752 msgid "Model not found!" 5752 5753 msgstr "" 5753 5754 5754 #: public/dashboard/marketking-dashboard-login.php:1 5945755 #: public/dashboard/marketking-dashboard-login.php:1653 5755 5756 msgid "Please enable Preview Model in the settings of the plugin" 5756 5757 msgstr "" 5757 5758 5758 #: public/dashboard/marketking-dashboard-login.php:1 5955759 #: public/dashboard/marketking-dashboard-login.php:1654 5759 5760 msgid "Please upload the model first" 5760 5761 msgstr "" 5761 5762 5762 #: public/dashboard/marketking-dashboard-login.php:1 5965763 #: public/dashboard/marketking-dashboard-login.php:1655 5763 5764 msgid "WEBM rendering works only in Chrome browser" 5764 5765 msgstr "" 5765 5766 5766 #: public/dashboard/marketking-dashboard-login.php:1 5975767 #: public/dashboard/marketking-dashboard-login.php:1656 5767 5768 msgid "Please don't switch to other tabs while rendering" 5768 5769 msgstr "" 5769 5770 5770 #: public/dashboard/marketking-dashboard-login.php:1 5985771 #: public/dashboard/marketking-dashboard-login.php:1657 5771 5772 msgid "" 5772 5773 "The amount of data we are going to submit is larger than post_max_size in " … … 5774 5775 msgstr "" 5775 5776 5776 #: public/dashboard/marketking-dashboard-login.php:1 5995777 #: public/dashboard/marketking-dashboard-login.php:1658 5777 5778 msgid "Repairing.." 5778 5779 msgstr "" 5779 5780 5780 #: public/dashboard/marketking-dashboard-login.php:16 005781 #: public/dashboard/marketking-dashboard-login.php:1659 5781 5782 msgid "Repairing.. done!" 5782 5783 msgstr "" 5783 5784 5784 #: public/dashboard/marketking-dashboard-login.php:16 015785 #: public/dashboard/marketking-dashboard-login.php:1660 5785 5786 msgid "Error report:" 5786 5787 msgstr "" 5787 5788 5788 #: public/dashboard/marketking-dashboard-login.php:16 025789 #: public/dashboard/marketking-dashboard-login.php:1661 5789 5790 msgid "Repairing.. fail!" 5790 5791 msgstr "" 5791 5792 5792 #: public/dashboard/marketking-dashboard-login.php:16 035793 #: public/dashboard/marketking-dashboard-login.php:1662 5793 5794 msgid "No errors found." 5794 5795 msgstr "" 5795 5796 5796 #: public/dashboard/marketking-dashboard-login.php:16 045797 #: public/dashboard/marketking-dashboard-login.php:1663 5797 5798 msgid "Degenerate facets" 5798 5799 msgstr "" 5799 5800 5800 #: public/dashboard/marketking-dashboard-login.php:16 055801 #: public/dashboard/marketking-dashboard-login.php:1664 5801 5802 msgid "Edges fixed" 5802 5803 msgstr "" 5803 5804 5804 #: public/dashboard/marketking-dashboard-login.php:16 065805 #: public/dashboard/marketking-dashboard-login.php:1665 5805 5806 msgid "Facets removed" 5806 5807 msgstr "" 5807 5808 5808 #: public/dashboard/marketking-dashboard-login.php:16 075809 #: public/dashboard/marketking-dashboard-login.php:1666 5809 5810 msgid "Facets added" 5810 5811 msgstr "" 5811 5812 5812 #: public/dashboard/marketking-dashboard-login.php:16 085813 #: public/dashboard/marketking-dashboard-login.php:1667 5813 5814 msgid "Facets reversed" 5814 5815 msgstr "" 5815 5816 5816 #: public/dashboard/marketking-dashboard-login.php:16 095817 #: public/dashboard/marketking-dashboard-login.php:1668 5817 5818 msgid "Backwards edges" 5818 5819 msgstr "" 5819 5820 5820 #: public/dashboard/marketking-dashboard-login.php:16 115821 #: public/dashboard/marketking-dashboard-login.php:1670 5821 5822 msgid "Can not repair textured models yet!" 5822 5823 msgstr "" 5823 5824 5824 #: public/dashboard/marketking-dashboard-login.php:16 125825 #: public/dashboard/marketking-dashboard-login.php:1671 5825 5826 msgid "Can repair only STL and OBJ models" 5826 5827 msgstr "" 5827 5828 5828 #: public/dashboard/marketking-dashboard-login.php:16 135829 #: public/dashboard/marketking-dashboard-login.php:1672 5829 5830 msgid "" 5830 5831 "The model will be sent to our server for repair.\n" … … 5834 5835 msgstr "" 5835 5836 5836 #: public/dashboard/marketking-dashboard-login.php:16 145837 #: public/dashboard/marketking-dashboard-login.php:1673 5837 5838 msgid "Reducing.." 5838 5839 msgstr "" 5839 5840 5840 #: public/dashboard/marketking-dashboard-login.php:16 155841 #: public/dashboard/marketking-dashboard-login.php:1674 5841 5842 msgid "Reducing.. done!" 5842 5843 msgstr "" 5843 5844 5844 #: public/dashboard/marketking-dashboard-login.php:16 165845 #: public/dashboard/marketking-dashboard-login.php:1675 5845 5846 msgid "No reduction needed" 5846 5847 msgstr "" 5847 5848 5848 #: public/dashboard/marketking-dashboard-login.php:16 175849 #: public/dashboard/marketking-dashboard-login.php:1676 5849 5850 #, no-php-format 5850 5851 msgid "% of triangles to reduce" 5851 5852 msgstr "" 5852 5853 5853 #: public/dashboard/marketking-dashboard-login.php:16 185854 #: public/dashboard/marketking-dashboard-login.php:1677 5854 5855 msgid "Can not reduce textured models yet!" 5855 5856 msgstr "" 5856 5857 5857 #: public/dashboard/marketking-dashboard-login.php:16 195858 #: public/dashboard/marketking-dashboard-login.php:1678 5858 5859 msgid "Can reduce only STL and OBJ models" 5859 5860 msgstr "" 5860 5861 5861 #: public/dashboard/marketking-dashboard-login.php:16 205862 #: public/dashboard/marketking-dashboard-login.php:1679 5862 5863 msgid "" 5863 5864 "The model will be sent to our server for polygon reduction.\n" … … 5865 5866 msgstr "" 5866 5867 5867 #: public/dashboard/marketking-dashboard-login.php:1 7835868 #: public/dashboard/marketking-dashboard-login.php:1842 5868 5869 msgid "There are no saved variations yet." 5869 5870 msgstr "" 5870 5871 5871 #: public/dashboard/marketking-dashboard-login.php:1 7845872 #: public/dashboard/marketking-dashboard-login.php:1843 5872 5873 msgid "You cannot add any more extra options." 5873 5874 msgstr "" 5874 5875 5875 #: public/dashboard/marketking-dashboard-login.php:1 7855876 #: public/dashboard/marketking-dashboard-login.php:1844 5876 5877 msgid "Are you sure you want to remove this option?" 5877 5878 msgstr "" 5878 5879 5879 #: public/dashboard/marketking-dashboard-login.php:1 7865880 #: public/dashboard/marketking-dashboard-login.php:1845 5880 5881 msgid "" 5881 5882 "Before adding Extra Product Options, add and save some attributes on the " … … 5883 5884 msgstr "" 5884 5885 5885 #: public/dashboard/marketking-dashboard-login.php:1 7875886 #: public/dashboard/marketking-dashboard-login.php:1846 5886 5887 msgid "Fixed amount" 5887 5888 msgstr "" 5888 5889 5889 #: public/dashboard/marketking-dashboard-login.php:1 7885890 #: public/dashboard/marketking-dashboard-login.php:1847 5890 5891 msgid "Percent of the original price" 5891 5892 msgstr "" 5892 5893 5893 #: public/dashboard/marketking-dashboard-login.php:18 245894 #: public/dashboard/marketking-dashboard-login.php:1883 5894 5895 msgid "Clear" 5895 5896 msgstr "" 5896 5897 5897 #: public/dashboard/marketking-dashboard-login.php:18 255898 #: public/dashboard/marketking-dashboard-login.php:1884 5898 5899 msgid "Default" 5899 5900 msgstr "" 5900 5901 5901 #: public/dashboard/marketking-dashboard-login.php:18 265902 #: public/dashboard/marketking-dashboard-login.php:1885 5902 5903 msgid "Select Color" 5903 5904 msgstr "" 5904 5905 5905 #: public/dashboard/marketking-dashboard-login.php:18 275906 #: public/dashboard/marketking-dashboard-login.php:1886 5906 5907 msgid "Current Color" 5907 5908 msgstr "" 5908 5909 5909 #: public/dashboard/marketking-dashboard-login.php:1 8435910 #: public/dashboard/marketking-dashboard-login.php:1902 5910 5911 msgid "Delete this group?" 5911 5912 msgstr "" 5912 5913 5913 #: public/dashboard/marketking-dashboard-login.php:1 8445914 #: public/dashboard/marketking-dashboard-login.php:1903 5914 5915 msgid "" 5915 5916 "Delete this field? Deleting this field will also delete any conditions " … … 5917 5918 msgstr "" 5918 5919 5919 #: public/dashboard/marketking-dashboard-login.php:1 8455920 #: public/dashboard/marketking-dashboard-login.php:1904 5920 5921 msgid "Delete this option?" 5921 5922 msgstr "" 5922 5923 5923 #: public/dashboard/marketking-dashboard-login.php:1 8465924 #: public/dashboard/marketking-dashboard-login.php:1905 5924 5925 msgid "Checked" 5925 5926 msgstr "" 5926 5927 5927 #: public/dashboard/marketking-dashboard-login.php:1 8475928 #: public/dashboard/marketking-dashboard-login.php:1906 5928 5929 msgid "" 5929 5930 "This field is used in a condition. Changing its field type may affect the " … … 5931 5932 msgstr "" 5932 5933 5933 #: public/dashboard/marketking-dashboard-login.php:1 8485934 #: public/dashboard/marketking-dashboard-login.php:1907 5934 5935 msgid "copy" 5935 5936 msgstr "" 5936 5937 5937 #: public/dashboard/marketking-dashboard-login.php:1 8495938 #: public/dashboard/marketking-dashboard-login.php:1908 5938 5939 msgid " -- Select a field -- " 5939 5940 msgstr "" 5940 5941 5941 #: public/dashboard/marketking-dashboard-login.php:1 8955942 #: public/dashboard/marketking-dashboard-login.php:1954 5942 5943 msgid "" 5943 5944 "All fields must have a title and/or option name. Please review the settings " … … 5945 5946 msgstr "" 5946 5947 5947 #: public/dashboard/marketking-dashboard-login.php:1 8965948 #: public/dashboard/marketking-dashboard-login.php:1955 5948 5949 msgid "Limit price range" 5949 5950 msgstr "" 5950 5951 5951 #: public/dashboard/marketking-dashboard-login.php:1 8975952 #: public/dashboard/marketking-dashboard-login.php:1956 5952 5953 msgid "Limit quantity range" 5953 5954 msgstr "" 5954 5955 5955 #: public/dashboard/marketking-dashboard-login.php:1 8985956 #: public/dashboard/marketking-dashboard-login.php:1957 5956 5957 msgid "Limit character length" 5957 5958 msgstr "" 5958 5959 5959 #: public/dashboard/marketking-dashboard-login.php:1 8995960 #: public/dashboard/marketking-dashboard-login.php:1958 5960 5961 msgid "Restrictions" 5961 5962 msgstr "" 5962 5963 5963 #: public/dashboard/marketking-dashboard-login.php:19 005964 #: public/dashboard/marketking-dashboard-login.php:1959 5964 5965 msgid "Are you sure you want remove this add-on field?" 5965 5966 msgstr "" 5966 5967 5967 #: public/dashboard/marketking-dashboard-login.php:19 015968 #: public/dashboard/marketking-dashboard-login.php:1960 5968 5969 msgid "Are you sure you want delete this option?" 5969 5970 msgstr "" 5970 5971 5971 #: public/dashboard/marketking-dashboard-login.php:19 025972 #: public/dashboard/marketking-dashboard-login.php:1961 5972 5973 msgid "Add Image Swatch" 5973 5974 msgstr "" 5974 5975 5975 #: public/dashboard/marketking-dashboard-login.php:19 035976 #: public/dashboard/marketking-dashboard-login.php:1962 5976 5977 msgid "Add Image" 5977 5978 msgstr "" 5978 5979 5979 #: public/dashboard/marketking-dashboard-login.php: 19645980 #: public/dashboard/marketking-dashboard-login.php:2023 5980 5981 msgid "Cannot edit price while a pricing table is active" 5981 5982 msgstr "" 5982 5983 5983 #: public/dashboard/marketking-dashboard-login.php: 19895984 #: public/dashboard/marketking-dashboard-login.php:2048 5984 5985 msgid "One or more emails entered appear to be invalid" 5985 5986 msgstr "" 5986 5987 5987 #: public/dashboard/marketking-dashboard-login.php: 19905988 #: public/dashboard/marketking-dashboard-login.php:2049 5988 5989 #: public/dashboard/products.php:483 5989 5990 msgid "Add" 5990 5991 msgstr "" 5991 5992 5992 #: public/dashboard/marketking-dashboard-login.php: 19915993 #: public/dashboard/marketking-dashboard-login.php:2050 5993 5994 msgid "No users selected" 5994 5995 msgstr "" 5995 5996 5996 #: public/dashboard/marketking-dashboard-login.php: 19925997 #: public/dashboard/marketking-dashboard-login.php:2051 5997 5998 msgid "No action selected" 5998 5999 msgstr "" 5999 6000 6000 #: public/dashboard/marketking-dashboard-login.php: 19936001 #: public/dashboard/marketking-dashboard-login.php:2052 6001 6002 msgid "View User Profile" 6002 6003 msgstr "" 6003 6004 6004 #: public/dashboard/marketking-dashboard-login.php: 19946005 #: public/dashboard/marketking-dashboard-login.php:2053 6005 6006 msgid "Go" 6006 6007 msgstr "" 6007 6008 6008 #: public/dashboard/marketking-dashboard-login.php: 19956009 #: public/dashboard/marketking-dashboard-login.php:2054 6009 6010 msgid "Update Options" 6010 6011 msgstr "" 6011 6012 6012 #: public/dashboard/marketking-dashboard-login.php: 19966013 #: public/dashboard/marketking-dashboard-login.php:2055 6013 6014 msgid "" 6014 6015 "Waitlists may be appear inaccurate due to an update to variations. Please " … … 6016 6017 msgstr "" 6017 6018 6018 #: public/dashboard/marketking-dashboard-login.php:2 0626019 #: public/dashboard/marketking-dashboard-login.php:2121 6019 6020 msgid "Do you really want to delete this request?" 6020 6021 msgstr "" 6021 6022 6022 #: public/dashboard/marketking-dashboard-login.php:2 2676023 #: public/dashboard/marketking-dashboard-login.php:2326 6023 6024 msgid "Invalid Account" 6024 6025 msgstr "" 6025 6026 6026 #: public/dashboard/marketking-dashboard-login.php:2 2686027 #: public/dashboard/marketking-dashboard-login.php:2327 6027 6028 msgid "" 6028 6029 "Your current account is not a vendor or has been deactivated. To login as a " … … 6030 6031 msgstr "" 6031 6032 6032 #: public/dashboard/marketking-dashboard-login.php:2 2766033 #: public/dashboard/marketking-dashboard-login.php:2335 6033 6034 msgid "Log out" 6034 6035 msgstr "" 6035 6036 6036 #: public/dashboard/marketking-dashboard-login.php:23 316037 #: public/dashboard/marketking-dashboard-login.php:2390 6037 6038 msgid "Username is empty" 6038 6039 msgstr "" 6039 6040 6040 #: public/dashboard/marketking-dashboard-login.php:23 346041 #: public/dashboard/marketking-dashboard-login.php:2393 6041 6042 msgid "Password is empty" 6042 6043 msgstr "" 6043 6044 6044 #: public/dashboard/marketking-dashboard-login.php:23 376045 #: public/dashboard/marketking-dashboard-login.php:2396 6045 6046 msgid "Incorrect user or password" 6046 6047 msgstr "" 6047 6048 6048 #: public/dashboard/marketking-dashboard-login.php:2 3436049 #: public/dashboard/marketking-dashboard-login.php:2402 6049 6050 msgid "Login failed" 6050 6051 msgstr "" 6051 6052 6052 #: public/dashboard/marketking-dashboard-login.php:2 3506053 #: public/dashboard/marketking-dashboard-login.php:2409 6053 6054 msgid "Sign-In" 6054 6055 msgstr "" 6055 6056 6056 #: public/dashboard/marketking-dashboard-login.php:2 3526057 #: public/dashboard/marketking-dashboard-login.php:2411 6057 6058 msgid "Access your vendor dashboard and data." 6058 6059 msgstr "" 6059 6060 6060 #: public/dashboard/marketking-dashboard-login.php:2 3626061 #: public/dashboard/marketking-dashboard-login.php:2421 6061 6062 msgid "Email or Username" 6062 6063 msgstr "" 6063 6064 6064 #: public/dashboard/marketking-dashboard-login.php:2 3646065 #: public/dashboard/marketking-dashboard-login.php:2423 6065 6066 msgid "Enter your email address or username" 6066 6067 msgstr "" 6067 6068 6068 #: public/dashboard/marketking-dashboard-login.php:2 3696069 #: public/dashboard/marketking-dashboard-login.php:2428 6069 6070 msgid "Forgot password?" 6070 6071 msgstr "" 6071 6072 6072 #: public/dashboard/marketking-dashboard-login.php:2 3766073 #: public/dashboard/marketking-dashboard-login.php:2435 6073 6074 msgid "Enter your password" 6074 6075 msgstr "" 6075 6076 6076 #: public/dashboard/marketking-dashboard-login.php:2 3826077 #: public/dashboard/marketking-dashboard-login.php:2441 6077 6078 msgid "Sign in" 6078 6079 msgstr "" 6079 6080 6080 #: public/dashboard/marketking-dashboard-login.php:2 3896081 #: public/dashboard/marketking-dashboard-login.php:2448 6081 6082 msgid "New on our platform?" 6082 6083 msgstr "" … … 6592 6593 msgstr "" 6593 6594 6594 #: public/emails/class-marketking-new-announcement-email.php:1 36595 #: public/emails/class-marketking-new-announcement-email.php:14 6595 6596 msgid "New Announcement" 6596 6597 msgstr "" 6597 6598 6598 #: public/emails/class-marketking-new-announcement-email.php:1 66599 #: public/emails/class-marketking-new-announcement-email.php:17 6599 6600 msgid "" 6600 6601 "This email is sent when a new announcement is released to vendors " … … 6602 6603 msgstr "" 6603 6604 6604 #: public/emails/class-marketking-new-announcement-email.php:196605 6605 #: public/emails/class-marketking-new-announcement-email.php:20 6606 #: public/emails/class-marketking-new-announcement-email.php: 466606 #: public/emails/class-marketking-new-announcement-email.php:21 6607 6607 #: public/emails/class-marketking-new-announcement-email.php:47 6608 #: public/emails/class-marketking-new-announcement-email.php:48 6608 6609 msgid "New announcement" 6609 6610 msgstr "" 6610 6611 6611 #: public/emails/class-marketking-new-announcement-email.php:10 06612 #: public/emails/class-marketking-new-message-email.php:12 26613 #: public/emails/class-marketking-new-payout-email.php:9 66614 #: public/emails/class-marketking-new-product-requires-approval-email.php: 896615 #: public/emails/class-marketking-new-rating-email.php:9 56616 #: public/emails/class-marketking-new-refund-email.php:9 66617 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:9 76618 #: public/emails/class-marketking-new-verification-email.php:9 86619 #: public/emails/class-marketking-product-has-been-approved-email.php:9 56620 #: public/emails/class-marketking-your-account-approved-email.php: 996612 #: public/emails/class-marketking-new-announcement-email.php:101 6613 #: public/emails/class-marketking-new-message-email.php:123 6614 #: public/emails/class-marketking-new-payout-email.php:97 6615 #: public/emails/class-marketking-new-product-requires-approval-email.php:90 6616 #: public/emails/class-marketking-new-rating-email.php:96 6617 #: public/emails/class-marketking-new-refund-email.php:97 6618 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:98 6619 #: public/emails/class-marketking-new-verification-email.php:99 6620 #: public/emails/class-marketking-product-has-been-approved-email.php:96 6621 #: public/emails/class-marketking-your-account-approved-email.php:100 6621 6622 msgid "Enable/Disable" 6622 6623 msgstr "" 6623 6624 6624 #: public/emails/class-marketking-new-announcement-email.php:10 26625 #: public/emails/class-marketking-new-message-email.php:12 46626 #: public/emails/class-marketking-new-payout-email.php:9 86627 #: public/emails/class-marketking-new-product-requires-approval-email.php:9 16628 #: public/emails/class-marketking-new-rating-email.php:9 76629 #: public/emails/class-marketking-new-refund-email.php:9 86630 #: public/emails/class-marketking-new-vendor-requires-approval-email.php: 996631 #: public/emails/class-marketking-new-verification-email.php:10 06632 #: public/emails/class-marketking-product-has-been-approved-email.php:9 76633 #: public/emails/class-marketking-your-account-approved-email.php:10 16625 #: public/emails/class-marketking-new-announcement-email.php:103 6626 #: public/emails/class-marketking-new-message-email.php:125 6627 #: public/emails/class-marketking-new-payout-email.php:99 6628 #: public/emails/class-marketking-new-product-requires-approval-email.php:92 6629 #: public/emails/class-marketking-new-rating-email.php:98 6630 #: public/emails/class-marketking-new-refund-email.php:99 6631 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:100 6632 #: public/emails/class-marketking-new-verification-email.php:101 6633 #: public/emails/class-marketking-product-has-been-approved-email.php:98 6634 #: public/emails/class-marketking-your-account-approved-email.php:102 6634 6635 msgid "Enable this email notification" 6635 6636 msgstr "" 6636 6637 6637 #: public/emails/class-marketking-new-announcement-email.php:10 86638 #: public/emails/class-marketking-new-message-email.php:13 06639 #: public/emails/class-marketking-new-payout-email.php:10 46640 #: public/emails/class-marketking-new-product-requires-approval-email.php:10 46641 #: public/emails/class-marketking-new-rating-email.php:10 36642 #: public/emails/class-marketking-new-refund-email.php:10 46643 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:11 26644 #: public/emails/class-marketking-new-verification-email.php:10 66645 #: public/emails/class-marketking-product-has-been-approved-email.php:10 36646 #: public/emails/class-marketking-your-account-approved-email.php:10 76638 #: public/emails/class-marketking-new-announcement-email.php:109 6639 #: public/emails/class-marketking-new-message-email.php:131 6640 #: public/emails/class-marketking-new-payout-email.php:105 6641 #: public/emails/class-marketking-new-product-requires-approval-email.php:105 6642 #: public/emails/class-marketking-new-rating-email.php:104 6643 #: public/emails/class-marketking-new-refund-email.php:105 6644 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:113 6645 #: public/emails/class-marketking-new-verification-email.php:107 6646 #: public/emails/class-marketking-product-has-been-approved-email.php:104 6647 #: public/emails/class-marketking-your-account-approved-email.php:108 6647 6648 msgid "" 6648 6649 "This controls the email subject line. Leave blank to use the default " … … 6650 6651 msgstr "" 6651 6652 6652 #: public/emails/class-marketking-new-announcement-email.php:11 36653 #: public/emails/class-marketking-new-message-email.php:13 56654 #: public/emails/class-marketking-new-payout-email.php:1 096655 #: public/emails/class-marketking-new-product-requires-approval-email.php:1 096656 #: public/emails/class-marketking-new-rating-email.php:10 86657 #: public/emails/class-marketking-new-refund-email.php:1 096658 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:11 76659 #: public/emails/class-marketking-new-verification-email.php:11 16660 #: public/emails/class-marketking-product-has-been-approved-email.php:10 86661 #: public/emails/class-marketking-your-account-approved-email.php:11 26653 #: public/emails/class-marketking-new-announcement-email.php:114 6654 #: public/emails/class-marketking-new-message-email.php:136 6655 #: public/emails/class-marketking-new-payout-email.php:110 6656 #: public/emails/class-marketking-new-product-requires-approval-email.php:110 6657 #: public/emails/class-marketking-new-rating-email.php:109 6658 #: public/emails/class-marketking-new-refund-email.php:110 6659 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:118 6660 #: public/emails/class-marketking-new-verification-email.php:112 6661 #: public/emails/class-marketking-product-has-been-approved-email.php:109 6662 #: public/emails/class-marketking-your-account-approved-email.php:113 6662 6663 msgid "Email Heading" 6663 6664 msgstr "" 6664 6665 6665 #: public/emails/class-marketking-new-announcement-email.php:11 56666 #: public/emails/class-marketking-new-message-email.php:13 76667 #: public/emails/class-marketking-new-payout-email.php:11 16668 #: public/emails/class-marketking-new-product-requires-approval-email.php:11 16669 #: public/emails/class-marketking-new-rating-email.php:11 06670 #: public/emails/class-marketking-new-refund-email.php:11 16671 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:1 196672 #: public/emails/class-marketking-new-verification-email.php:11 36673 #: public/emails/class-marketking-product-has-been-approved-email.php:11 06674 #: public/emails/class-marketking-your-account-approved-email.php:11 46666 #: public/emails/class-marketking-new-announcement-email.php:116 6667 #: public/emails/class-marketking-new-message-email.php:138 6668 #: public/emails/class-marketking-new-payout-email.php:112 6669 #: public/emails/class-marketking-new-product-requires-approval-email.php:112 6670 #: public/emails/class-marketking-new-rating-email.php:111 6671 #: public/emails/class-marketking-new-refund-email.php:112 6672 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:120 6673 #: public/emails/class-marketking-new-verification-email.php:114 6674 #: public/emails/class-marketking-product-has-been-approved-email.php:111 6675 #: public/emails/class-marketking-your-account-approved-email.php:115 6675 6676 msgid "" 6676 6677 "This controls the main heading contained within the email notification. " … … 6678 6679 msgstr "" 6679 6680 6680 #: public/emails/class-marketking-new-announcement-email.php:12 06681 #: public/emails/class-marketking-new-message-email.php:14 26682 #: public/emails/class-marketking-new-payout-email.php:11 66683 #: public/emails/class-marketking-new-product-requires-approval-email.php:11 66684 #: public/emails/class-marketking-new-rating-email.php:11 56685 #: public/emails/class-marketking-new-refund-email.php:11 66686 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:12 46687 #: public/emails/class-marketking-new-verification-email.php:11 86688 #: public/emails/class-marketking-product-has-been-approved-email.php:11 56689 #: public/emails/class-marketking-your-account-approved-email.php:1 196681 #: public/emails/class-marketking-new-announcement-email.php:121 6682 #: public/emails/class-marketking-new-message-email.php:143 6683 #: public/emails/class-marketking-new-payout-email.php:117 6684 #: public/emails/class-marketking-new-product-requires-approval-email.php:117 6685 #: public/emails/class-marketking-new-rating-email.php:116 6686 #: public/emails/class-marketking-new-refund-email.php:117 6687 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:125 6688 #: public/emails/class-marketking-new-verification-email.php:119 6689 #: public/emails/class-marketking-product-has-been-approved-email.php:116 6690 #: public/emails/class-marketking-your-account-approved-email.php:120 6690 6691 msgid "Email type" 6691 6692 msgstr "" 6692 6693 6693 #: public/emails/class-marketking-new-announcement-email.php:12 26694 #: public/emails/class-marketking-new-message-email.php:14 46695 #: public/emails/class-marketking-new-payout-email.php:11 86696 #: public/emails/class-marketking-new-product-requires-approval-email.php:11 86697 #: public/emails/class-marketking-new-rating-email.php:11 76698 #: public/emails/class-marketking-new-refund-email.php:11 86699 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:12 66700 #: public/emails/class-marketking-new-verification-email.php:12 06701 #: public/emails/class-marketking-product-has-been-approved-email.php:11 76702 #: public/emails/class-marketking-your-account-approved-email.php:12 16694 #: public/emails/class-marketking-new-announcement-email.php:123 6695 #: public/emails/class-marketking-new-message-email.php:145 6696 #: public/emails/class-marketking-new-payout-email.php:119 6697 #: public/emails/class-marketking-new-product-requires-approval-email.php:119 6698 #: public/emails/class-marketking-new-rating-email.php:118 6699 #: public/emails/class-marketking-new-refund-email.php:119 6700 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:127 6701 #: public/emails/class-marketking-new-verification-email.php:121 6702 #: public/emails/class-marketking-product-has-been-approved-email.php:118 6703 #: public/emails/class-marketking-your-account-approved-email.php:122 6703 6704 msgid "Choose which format of email to send." 6704 6705 msgstr "" 6705 6706 6706 #: public/emails/class-marketking-new-message-email.php:1 36707 #: public/emails/class-marketking-new-message-email.php:14 6707 6708 msgid "New Message" 6708 6709 msgstr "" 6709 6710 6710 #: public/emails/class-marketking-new-message-email.php:1 66711 #: public/emails/class-marketking-new-message-email.php:17 6711 6712 msgid "This email is sent when a new message is sent (marketking)" 6712 6713 msgstr "" 6713 6714 6714 #: public/emails/class-marketking-new-payout-email.php:13 6715 #: public/emails/class-marketking-new-payout-email.php:19 6715 #: public/emails/class-marketking-new-payout-email.php:14 6716 6716 #: public/emails/class-marketking-new-payout-email.php:20 6717 #: public/emails/class-marketking-new-payout-email.php: 466717 #: public/emails/class-marketking-new-payout-email.php:21 6718 6718 #: public/emails/class-marketking-new-payout-email.php:47 6719 #: public/emails/class-marketking-new-payout-email.php:48 6719 6720 msgid "New Payout" 6720 6721 msgstr "" 6721 6722 6722 #: public/emails/class-marketking-new-payout-email.php:1 66723 #: public/emails/class-marketking-new-payout-email.php:17 6723 6724 msgid "This email is sent when a payout is saved (marketking)" 6724 6725 msgstr "" 6725 6726 6726 #: public/emails/class-marketking-new-product-requires-approval-email.php:13 6727 #: public/emails/class-marketking-new-product-requires-approval-email.php:19 6727 #: public/emails/class-marketking-new-product-requires-approval-email.php:14 6728 6728 #: public/emails/class-marketking-new-product-requires-approval-email.php:20 6729 #: public/emails/class-marketking-new-product-requires-approval-email.php:21 6729 6730 msgid "New product requires approval" 6730 6731 msgstr "" 6731 6732 6732 #: public/emails/class-marketking-new-product-requires-approval-email.php:1 66733 #: public/emails/class-marketking-new-product-requires-approval-email.php:17 6733 6734 msgid "" 6734 6735 "This email is sent to admin when a vendor submits a product which requires " … … 6736 6737 msgstr "" 6737 6738 6738 #: public/emails/class-marketking-new-product-requires-approval-email.php:9 56739 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:10 36739 #: public/emails/class-marketking-new-product-requires-approval-email.php:96 6740 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:104 6740 6741 msgid "Recipient(s)" 6741 6742 msgstr "" 6742 6743 6743 #: public/emails/class-marketking-new-product-requires-approval-email.php:9 76744 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:10 56744 #: public/emails/class-marketking-new-product-requires-approval-email.php:98 6745 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:106 6745 6746 msgid "Enter recipients (comma separated) for this email. Defaults to" 6746 msgstr ""6747 6748 #: public/emails/class-marketking-new-product-requires-approval-email.php:1286749 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:1366750 #: public/emails/class-marketking-product-has-been-approved-email.php:1276751 #: public/emails/class-marketking-your-account-approved-email.php:1316752 msgid "Additional content"6753 6747 msgstr "" 6754 6748 … … 6757 6751 #: public/emails/class-marketking-product-has-been-approved-email.php:128 6758 6752 #: public/emails/class-marketking-your-account-approved-email.php:132 6753 msgid "Additional content" 6754 msgstr "" 6755 6756 #: public/emails/class-marketking-new-product-requires-approval-email.php:130 6757 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:138 6758 #: public/emails/class-marketking-product-has-been-approved-email.php:129 6759 #: public/emails/class-marketking-your-account-approved-email.php:133 6759 6760 msgid "Text to appear below the main email content." 6760 6761 msgstr "" 6761 6762 6762 #: public/emails/class-marketking-new-product-requires-approval-email.php:13 16763 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:1 396764 #: public/emails/class-marketking-product-has-been-approved-email.php:13 06765 #: public/emails/class-marketking-your-account-approved-email.php:13 46763 #: public/emails/class-marketking-new-product-requires-approval-email.php:132 6764 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:140 6765 #: public/emails/class-marketking-product-has-been-approved-email.php:131 6766 #: public/emails/class-marketking-your-account-approved-email.php:135 6766 6767 msgid "N/A" 6767 6768 msgstr "" 6768 6769 6769 #: public/emails/class-marketking-new-rating-email.php:13 6770 #: public/emails/class-marketking-new-rating-email.php:19 6770 #: public/emails/class-marketking-new-rating-email.php:14 6771 6771 #: public/emails/class-marketking-new-rating-email.php:20 6772 #: public/emails/class-marketking-new-rating-email.php: 466772 #: public/emails/class-marketking-new-rating-email.php:21 6773 6773 #: public/emails/class-marketking-new-rating-email.php:47 6774 #: public/emails/class-marketking-new-rating-email.php:48 6774 6775 msgid "New Rating" 6775 6776 msgstr "" 6776 6777 6777 #: public/emails/class-marketking-new-rating-email.php:1 66778 #: public/emails/class-marketking-new-rating-email.php:17 6778 6779 msgid "This email is sent when a new rating is received (marketking)" 6779 6780 msgstr "" 6780 6781 6781 #: public/emails/class-marketking-new-refund-email.php:13 6782 #: public/emails/class-marketking-new-refund-email.php:19 6782 #: public/emails/class-marketking-new-refund-email.php:14 6783 6783 #: public/emails/class-marketking-new-refund-email.php:20 6784 #: public/emails/class-marketking-new-refund-email.php: 476784 #: public/emails/class-marketking-new-refund-email.php:21 6785 6785 #: public/emails/class-marketking-new-refund-email.php:48 6786 #: public/emails/class-marketking-new-refund-email.php:49 6786 6787 msgid "New Refund Request" 6787 6788 msgstr "" 6788 6789 6789 #: public/emails/class-marketking-new-refund-email.php:1 66790 #: public/emails/class-marketking-new-refund-email.php:17 6790 6791 msgid "" 6791 6792 "This email is sent to vendors when a new refund request is received " … … 6793 6794 msgstr "" 6794 6795 6795 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:13 6796 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:19 6796 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:14 6797 6797 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:20 6798 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:21 6798 6799 msgid "New vendor requires approval" 6799 6800 msgstr "" 6800 6801 6801 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:1 66802 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:17 6802 6803 msgid "" 6803 6804 "This email is sent to admin when a new vendor registers and requires manual " … … 6805 6806 msgstr "" 6806 6807 6807 #: public/emails/class-marketking-new-verification-email.php:13 6808 #: public/emails/class-marketking-new-verification-email.php:47 6808 #: public/emails/class-marketking-new-verification-email.php:14 6809 6809 #: public/emails/class-marketking-new-verification-email.php:48 6810 #: public/emails/class-marketking-new-verification-email.php:49 6810 6811 msgid "New Verification Status" 6811 6812 msgstr "" 6812 6813 6813 #: public/emails/class-marketking-new-verification-email.php:1 66814 #: public/emails/class-marketking-new-verification-email.php:17 6814 6815 msgid "" 6815 6816 "This email is sent when a vendor verification request is approved or " … … 6817 6818 msgstr "" 6818 6819 6819 #: public/emails/class-marketking-new-verification-email.php:196820 6820 #: public/emails/class-marketking-new-verification-email.php:20 6821 #: public/emails/class-marketking-new-verification-email.php:21 6821 6822 msgid "New Verification" 6822 6823 msgstr "" 6823 6824 6824 #: public/emails/class-marketking-product-has-been-approved-email.php:13 6825 #: public/emails/class-marketking-product-has-been-approved-email.php:19 6825 #: public/emails/class-marketking-product-has-been-approved-email.php:14 6826 6826 #: public/emails/class-marketking-product-has-been-approved-email.php:20 6827 #: public/emails/class-marketking-product-has-been-approved-email.php:21 6827 6828 msgid "Your product has been approved" 6828 6829 msgstr "" 6829 6830 6830 #: public/emails/class-marketking-product-has-been-approved-email.php:1 66831 #: public/emails/class-marketking-product-has-been-approved-email.php:17 6831 6832 msgid "" 6832 6833 "This email is sent to the vendor when the admin approves one of their " … … 6834 6835 msgstr "" 6835 6836 6836 #: public/emails/class-marketking-your-account-approved-email.php:1 36837 #: public/emails/class-marketking-your-account-approved-email.php:14 6837 6838 msgid "Vendor account approved" 6838 6839 msgstr "" 6839 6840 6840 #: public/emails/class-marketking-your-account-approved-email.php: 196841 #: public/emails/class-marketking-your-account-approved-email.php:20 6841 6842 msgid "" 6842 6843 "This email notifies the vendor when their account has been manually approved" 6843 msgstr ""6844 6845 #: public/emails/class-marketking-your-account-approved-email.php:226846 #: public/emails/class-marketking-your-account-approved-email.php:496847 msgid "Your account has been approved"6848 6844 msgstr "" 6849 6845 6850 6846 #: public/emails/class-marketking-your-account-approved-email.php:23 6851 6847 #: public/emails/class-marketking-your-account-approved-email.php:50 6848 msgid "Your account has been approved" 6849 msgstr "" 6850 6851 #: public/emails/class-marketking-your-account-approved-email.php:24 6852 #: public/emails/class-marketking-your-account-approved-email.php:51 6852 6853 msgid "Your vendor account has been approved" 6853 6854 msgstr "" -
marketking-multivendor-marketplace-for-woocommerce/trunk/marketking-core.php
r3241511 r3296674 5 5 * Plugin URI: https://wordpress.org/plugins/marketking-multivendor-marketplace-for-woocommerce 6 6 * Description: MarketKing is the complete solution for turning WooCommerce into a powerful multivendor marketplace. Core plugin. 7 * Version: 2.0. 507 * Version: 2.0.70 8 8 * Author: WebWizards 9 9 * Author URI: webwizards.dev … … 11 11 * Domain Path: /languages 12 12 * WC requires at least: 5.0.0 13 * WC tested up to: 9. 6.013 * WC tested up to: 9.8.5 14 14 */ 15 15 … … 18 18 die; 19 19 } 20 define ( 'MARKETKINGCORE_VERSION', 'v2.0. 50' );20 define ( 'MARKETKINGCORE_VERSION', 'v2.0.70' ); 21 21 define( 'MARKETKINGCORE_DIR', plugin_dir_path( __FILE__ ) ); 22 22 define( 'MARKETKINGCORE_URL', plugin_dir_url( __FILE__ ) ); -
marketking-multivendor-marketplace-for-woocommerce/trunk/public/assets/js/public.js
r3241511 r3296674 2926 2926 2927 2927 /* Single Product Multiple Vendors */ 2928 $(' #marketking_add_product_to_my_store').on('click', function(){2928 $('body').on('click', '#marketking_add_product_to_my_store', function(){ 2929 2929 2930 2930 // loader … … 2941 2941 $('#marketking_add_product_to_my_store').html(' '+marketking_display_settings.product_added_store); 2942 2942 $('#marketking_add_product_to_my_store').prop('disabled', true); 2943 $('#marketking_add_product_to_my_store').attr('disabled', 'disabled'); 2943 2944 2944 2945 // remove loader -
marketking-multivendor-marketplace-for-woocommerce/trunk/public/class-marketking-core-public.php
r3241511 r3296674 218 218 if (in_array(get_current_user_id(),$vendors_in_cart) && get_current_user_id() !== 1 && (marketking()->is_vendor(get_current_user_id()) or marketking()->is_vendor_team_member() ) ){ 219 219 // error 220 wc_print_notice( esc_html__('You rcannot purchase your own products!', 'marketking-multivendor-marketplace-for-woocommerce'), 'error' );220 wc_print_notice( esc_html__('You cannot purchase your own products!', 'marketking-multivendor-marketplace-for-woocommerce'), 'error' ); 221 221 } 222 222 } … … 228 228 if (in_array(get_current_user_id(),$vendors_in_cart) && get_current_user_id() !== 1 && (marketking()->is_vendor(get_current_user_id()) or marketking()->is_vendor_team_member() ) ){ 229 229 // error 230 $errors->add( 'validation', esc_html__('You rcannot purchase your own products!', 'marketking-multivendor-marketplace-for-woocommerce') );230 $errors->add( 'validation', esc_html__('You cannot purchase your own products!', 'marketking-multivendor-marketplace-for-woocommerce') ); 231 231 } 232 232 } … … 506 506 } 507 507 508 function intercept_wc_template( $template, $template_name, $template_path ) { 509 // not for plain emails 510 if ( 'customer-new-account.php' === basename( $template ) && strpos($template, 'plain') === false) { 511 // if vendor 512 if (isset($_POST['marketking_registration_options_dropdown'])){ 513 $template = '/emails/templates/vendor-new-account.php'; 514 515 $template_directory = untrailingslashit( plugin_dir_path( __FILE__ ) ); 516 $template = $template_directory . $template; 517 } 518 } 519 return $template; 508 function intercept_wc_template($template, $template_name, $template_path) { 509 // Only target the new account email template (non-plain) 510 if ('customer-new-account.php' === basename($template) && strpos($template, 'plain') === false) { 511 // Check if it's a vendor registration 512 if (isset($_POST['marketking_registration_options_dropdown'])) { 513 $option = sanitize_text_field($_POST['marketking_registration_options_dropdown']); // e..g option_1435 514 $option_data = explode('_', $option); 515 if (isset($option_data[1])){ 516 $option_id = $option_data[1]; 517 // check if buyer or seller 518 $option_approval = get_post_meta($option_id, 'marketking_option_automatic_approval_group', true); 519 if (!empty($option_approval)){ // empty = customer 520 // Check if theme has the override file 521 $theme_file = get_stylesheet_directory() . '/vendor-new-account.php'; 522 523 // If the theme has the override file, use it 524 if (file_exists($theme_file)) { 525 return $theme_file; 526 } 527 528 // Otherwise, use the plugin's template 529 $plugin_template = untrailingslashit(plugin_dir_path(__FILE__)) . '/emails/templates/vendor-new-account.php'; 530 if (file_exists($plugin_template)) { 531 return $plugin_template; 532 } 533 } 534 } 535 536 } 537 } 538 539 return $template; 520 540 } 521 541 -
marketking-multivendor-marketplace-for-woocommerce/trunk/public/dashboard/marketking-dashboard-login.php
r3241511 r3296674 674 674 if (apply_filters('marketking_enable_perproductshipping_integration', true)){ 675 675 676 if (!defined( 'WP_ADMIN' )){ 677 define('WP_ADMIN', true); 678 } 679 676 680 if (defined('PER_PRODUCT_SHIPPING_FILE')){ 677 681 $dir = plugin_dir_path(PER_PRODUCT_SHIPPING_FILE); 678 682 include_once $dir.'includes/class-wc-shipping-per-product-admin.php'; 679 new WC_Shipping_Per_Product_ Admin( new WC_Shipping_Per_Product_Init );683 new WC_Shipping_Per_Product_Init; 680 684 681 685 add_action('wp_print_styles', function(){ … … 697 701 'i18n_cost' => __( 'Cost', 'woocommerce-shipping-per-product' ), 698 702 'i18n_item_cost' => __( 'Item Cost', 'woocommerce-shipping-per-product' ), 703 'decimal_separator' => wc_get_price_decimal_separator(), 699 704 ) ); 700 705 }); … … 706 711 707 712 if (apply_filters('marketking_allow_germanized_vendor_dashboard', true)){ 713 714 add_action('marketking_dashboard_head', function(){ 715 716 ?> 717 <style> 718 .npc-general .select2-search--dropdown{ 719 display: block !important; 720 } 721 </style> 722 <?php 723 }); 708 724 709 725 include_once WC_GERMANIZED_ABSPATH . 'includes/export/class-wc-gzd-product-export.php'; … … 722 738 $admin_script_path = $assets_path . 'js/admin/'; 723 739 724 wp_register_style( 'woocommerce-gzd-admin', $assets_path . 'css/admin' . $suffix . '.css', false, WC_GERMANIZED_VERSION ); 740 $gzd = WC_germanized(); 741 742 wp_register_style( 'woocommerce-gzd-admin', $gzd->get_assets_build_url( 'static/admin.css' ), false, WC_GERMANIZED_VERSION ); 725 743 wp_enqueue_style( 'woocommerce-gzd-admin' ); 726 744 727 745 wp_register_style( 728 746 'woocommerce-gzd-admin-settings', 729 $ assets_path . 'css/admin-settings' . $suffix . '.css',747 $gzd->get_assets_build_url( 'static/admin-settings.css' ), 730 748 array( 731 749 'woocommerce_admin_styles', … … 734 752 WC_GERMANIZED_VERSION 735 753 ); 754 755 wp_enqueue_style( 'woocommerce-gzd-admin-settings' ); 756 wp_enqueue_style( 'woocommerce-gzd-shipment-admin-settings' ); 757 do_action( 'woocommerce_gzd_admin_settings_styles' ); 758 759 if (class_exists( 'WooCommerce_Germanized_Pro' )){ 760 $gzdp = WC_germanized_pro(); 761 wp_register_style( 'wc-gzdp-admin', $gzdp->get_assets_build_url( 'static/wc-gzdp-admin.css' ), array(), WC_GERMANIZED_PRO_VERSION ); 762 wp_enqueue_style( 'wc-gzdp-admin' ); 763 } 736 764 }); 737 765 … … 741 769 $assets_path = WC_germanized()->plugin_url() . '/assets/'; 742 770 $admin_script_path = $assets_path . 'js/admin/'; 743 744 wp_register_script( 'wc-gzd-admin-product', $admin_script_path . 'product' . $suffix . '.js', array( 'wc-admin-product-meta-boxes', 'media-models' ), WC_GERMANIZED_VERSION ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.NotInFooter 745 746 wp_register_script( 'wc-gzd-admin-product-variations', $admin_script_path . 'product-variations' . $suffix . '.js', array( 'wc-gzd-admin-product', 'wc-admin-variation-meta-boxes' ), WC_GERMANIZED_VERSION ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.NotInFooter 747 748 wp_localize_script( 749 'wc-gzd-admin-product-variations', 750 'wc_gzd_admin_product_variations_params', 751 array( 752 'i18n_set_delivery_time' => __( 'Insert delivery time name, slug or id.', 'woocommerce-germanized' ), 753 'i18n_set_product_unit' => __( 'Insert product units amount.', 'woocommerce-germanized' ), 754 ) 755 ); 756 771 $gzd = WC_germanized(); 772 773 774 wp_register_script( 'wc-gzd-admin', $gzd->get_assets_build_url( 'static/admin.js' ), array( 'jquery', 'woocommerce_admin' ), WC_GERMANIZED_VERSION ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.NotInFooter 775 wp_register_script( 'wc-gzd-admin-product', $gzd->get_assets_build_url( 'static/admin-product.js' ), array( 'wc-admin-product-meta-boxes', 'media-models' ), WC_GERMANIZED_VERSION ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.NotInFooter 776 wp_register_script( 'wc-gzd-admin-product-variations', $gzd->get_assets_build_url( 'static/admin-product-variations.js' ), array( 'wc-gzd-admin-product', 'wc-admin-variation-meta-boxes' ), WC_GERMANIZED_VERSION ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.NotInFooter 757 777 wp_register_script( // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.NotInFooter 758 778 'wc-gzd-admin-legal-checkboxes', 759 $ admin_script_path . 'legal-checkboxes' . $suffix . '.js',779 $gzd->get_assets_build_url( 'static/admin-legal-checkboxes.js' ), 760 780 array( 761 781 'jquery', … … 768 788 WC_GERMANIZED_VERSION 769 789 ); 770 771 790 wp_register_script( // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.NotInFooter 772 791 'wc-gzd-admin-settings', 773 $assets_path . 'js/admin/settings' . $suffix . '.js', 792 $gzd->get_assets_build_url( 'static/admin-settings.js' ), 793 array( 'wc-gzd-admin' ), 794 WC_GERMANIZED_VERSION 795 ); 796 797 wp_localize_script( 798 'wc-gzd-admin-product', 799 'wc_gzd_admin_product_params', 774 800 array( 775 'jquery', 776 'woocommerce_admin', 777 ), 778 WC_GERMANIZED_VERSION 801 'i18n_remove_attachment' => __( 'Remove', 'woocommerce-germanized' ), 802 ) 803 ); 804 805 wp_localize_script( 806 'wc-gzd-admin-product-variations', 807 'wc_gzd_admin_product_variations_params', 808 array( 809 'i18n_set_delivery_time' => __( 'Insert delivery time name, slug or id.', 'woocommerce-germanized' ), 810 'i18n_set_product_unit' => __( 'Insert product units amount.', 'woocommerce-germanized' ), 811 ) 812 ); 813 814 wp_localize_script( 815 'wc-gzd-admin', 816 'wc_gzd_admin_params', 817 array( 818 'ajax_url' => admin_url( 'admin-ajax.php' ), 819 ) 779 820 ); 780 821 … … 792 833 wp_enqueue_script( 'wc-gzd-admin-product' ); 793 834 wp_enqueue_script( 'wc-gzd-admin-product-variations' ); 835 wp_enqueue_script( 'wc-gzd-admin' ); 836 837 wp_enqueue_script( 'wc-gzd-shipments-admin-settings' ); 838 do_action( 'woocommerce_gzd_shipments_admin_settings_scripts' ); 839 wp_enqueue_script( 'wc-gzd-admin-settings' ); 840 do_action( 'woocommerce_gzd_admin_settings_scripts' ); 841 842 if (class_exists( 'WooCommerce_Germanized_Pro' )){ 843 $gzdp = WC_germanized_pro(); 844 wp_register_script( 'wc-gzdp-admin-order', $gzdp->get_assets_build_url( 'static/admin-order.js' ), array( 'jquery' ), WC_GERMANIZED_PRO_VERSION, true ); 845 wp_register_script( 'wc-gzdp-admin-settings', $gzdp->get_assets_build_url( 'static/admin-settings.js' ), array( 'jquery' ), WC_GERMANIZED_PRO_VERSION, true ); 846 wp_register_script( 'wc-gzdp-admin-products', $gzdp->get_assets_build_url( 'static/admin-products.js' ), array( 'jquery' ), WC_GERMANIZED_PRO_VERSION, true ); 847 wp_enqueue_script( 'wc-gzdp-admin-order' ); 848 wp_enqueue_script( 'wc-gzdp-admin-products' ); 849 wp_enqueue_script( 'wc-gzdp-admin-settings' ); 850 851 } 852 794 853 }); 795 854 } -
marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-new-announcement-email.php
r2863393 r3296674 3 3 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 4 4 5 class Marketking_New_Announcement_Email extends WC_Email { 5 if (!class_exists('Marketking_New_Announcement_Email')) { 6 class Marketking_New_Announcement_Email extends WC_Email { 6 7 7 public function __construct() {8 public function __construct() { 8 9 9 // set ID, this simply needs to be a unique name10 $this->id = 'marketking_new_announcement_email';10 // set ID, this simply needs to be a unique name 11 $this->id = 'marketking_new_announcement_email'; 11 12 12 // this is the title in WooCommerce Email settings13 $this->title = esc_html__('New Announcement', 'marketking-multivendor-marketplace-for-woocommerce');13 // this is the title in WooCommerce Email settings 14 $this->title = esc_html__('New Announcement', 'marketking-multivendor-marketplace-for-woocommerce'); 14 15 15 // this is the description in WooCommerce email settings16 $this->description = esc_html__('This email is sent when a new announcement is released to vendors (marketking).', 'marketking-multivendor-marketplace-for-woocommerce');16 // this is the description in WooCommerce email settings 17 $this->description = esc_html__('This email is sent when a new announcement is released to vendors (marketking).', 'marketking-multivendor-marketplace-for-woocommerce'); 17 18 18 // these are the default heading and subject lines that can be overridden using the settings19 $this->heading = esc_html__('New announcement', 'marketking-multivendor-marketplace-for-woocommerce');20 $this->subject = esc_html__('New announcement', 'marketking-multivendor-marketplace-for-woocommerce');19 // these are the default heading and subject lines that can be overridden using the settings 20 $this->heading = esc_html__('New announcement', 'marketking-multivendor-marketplace-for-woocommerce'); 21 $this->subject = esc_html__('New announcement', 'marketking-multivendor-marketplace-for-woocommerce'); 21 22 22 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/';23 $this->template_html = 'new-announcement-email-template.php';24 $this->template_plain = 'plain-new-announcement-email-template.php';25 26 // Call parent constructor to load any other defaults not explicity defined here27 parent::__construct();23 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/'; 24 $this->template_html = 'new-announcement-email-template.php'; 25 $this->template_plain = 'plain-new-announcement-email-template.php'; 26 27 // Call parent constructor to load any other defaults not explicity defined here 28 parent::__construct(); 28 29 29 add_action( 'marketking_new_announcement_notification', array( $this, 'trigger'), 10, 4 ); 30 add_action( 'marketking_new_announcement_notification', array( $this, 'trigger'), 10, 4 ); 31 32 } 33 34 public function trigger($email_address, $announcement, $userid, $announcementid) { 35 36 $this->recipient = $email_address; 37 $this->announcement = $announcement; 38 $this->userid = $userid; 39 $this->announcementid = $announcementid; 40 41 if ( ! $this->is_enabled() || ! $this->get_recipient() ){ 42 return; 43 } 44 marketking()->switch_to_user_locale($email_address); 45 46 do_action('wpml_switch_language_for_email', $email_address); 47 $this->heading = esc_html__('New announcement', 'marketking-multivendor-marketplace-for-woocommerce'); 48 $this->subject = esc_html__('New announcement', 'marketking-multivendor-marketplace-for-woocommerce'); 49 50 // check if the user has new announcement emails enabled. 51 $user = get_user_by('email', $email_address); 52 $permission = get_user_meta($user->ID, 'marketking_receive_new_announcements_emails', true); 53 if (empty($permission) || $permission === 'yes'){ 54 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() ); 55 } 56 do_action('wpml_restore_language_from_email'); 57 marketking()->restore_locale(); 58 } 59 60 public function get_content_html() { 61 ob_start(); 62 if (method_exists($this, 'get_additional_content')){ 63 $additional_content_checked = $this->get_additional_content(); 64 } else { 65 $additional_content_checked = false; 66 } 67 wc_get_template( $this->template_html, array( 68 'email_heading' => $this->get_heading(), 69 'additional_content' => $additional_content_checked, 70 'announcement' => $this->announcement, 71 'userid' => $this->userid, 72 'announcementid' => $this->announcementid, 73 'email' => $this, 74 ), $this->template_base, $this->template_base ); 75 return ob_get_clean(); 76 } 77 78 79 public function get_content_plain() { 80 ob_start(); 81 if (method_exists($this, 'get_additional_content')){ 82 $additional_content_checked = $this->get_additional_content(); 83 } else { 84 $additional_content_checked = false; 85 } 86 wc_get_template( $this->template_plain, array( 87 'email_heading' => $this->get_heading(), 88 'additional_content' => $additional_content_checked, 89 'announcement' => $this->announcement, 90 'userid' => $this->userid, 91 'announcementid' => $this->announcementid, 92 'email' => $this, 93 ), $this->template_base, $this->template_base ); 94 return ob_get_clean(); 95 } 96 97 public function init_form_fields() { 98 99 $this->form_fields = array( 100 'enabled' => array( 101 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ), 102 'type' => 'checkbox', 103 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ), 104 'default' => 'yes', 105 ), 106 'subject' => array( 107 'title' => 'Subject', 108 'type' => 'text', 109 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ), 110 'placeholder' => '', 111 'default' => '' 112 ), 113 'heading' => array( 114 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'), 115 'type' => 'text', 116 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ), 117 'placeholder' => '', 118 'default' => '' 119 ), 120 'email_type' => array( 121 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'), 122 'type' => 'select', 123 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'), 124 'default' => 'html', 125 'class' => 'email_type', 126 'options' => array( 127 'plain' => 'Plain text', 128 'html' => 'HTML', 'woocommerce', 129 'multipart' => 'Multipart', 'woocommerce', 130 ) 131 ) 132 ); 133 } 30 134 31 135 } 32 33 public function trigger($email_address, $announcement, $userid, $announcementid) {34 35 $this->recipient = $email_address;36 $this->announcement = $announcement;37 $this->userid = $userid;38 $this->announcementid = $announcementid;39 40 if ( ! $this->is_enabled() || ! $this->get_recipient() ){41 return;42 }43 marketking()->switch_to_user_locale($email_address);44 45 do_action('wpml_switch_language_for_email', $email_address);46 $this->heading = esc_html__('New announcement', 'marketking-multivendor-marketplace-for-woocommerce');47 $this->subject = esc_html__('New announcement', 'marketking-multivendor-marketplace-for-woocommerce');48 49 // check if the user has new announcement emails enabled.50 $user = get_user_by('email', $email_address);51 $permission = get_user_meta($user->ID, 'marketking_receive_new_announcements_emails', true);52 if (empty($permission) || $permission === 'yes'){53 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );54 }55 do_action('wpml_restore_language_from_email');56 marketking()->restore_locale();57 }58 59 public function get_content_html() {60 ob_start();61 if (method_exists($this, 'get_additional_content')){62 $additional_content_checked = $this->get_additional_content();63 } else {64 $additional_content_checked = false;65 }66 wc_get_template( $this->template_html, array(67 'email_heading' => $this->get_heading(),68 'additional_content' => $additional_content_checked,69 'announcement' => $this->announcement,70 'userid' => $this->userid,71 'announcementid' => $this->announcementid,72 'email' => $this,73 ), $this->template_base, $this->template_base );74 return ob_get_clean();75 }76 77 78 public function get_content_plain() {79 ob_start();80 if (method_exists($this, 'get_additional_content')){81 $additional_content_checked = $this->get_additional_content();82 } else {83 $additional_content_checked = false;84 }85 wc_get_template( $this->template_plain, array(86 'email_heading' => $this->get_heading(),87 'additional_content' => $additional_content_checked,88 'announcement' => $this->announcement,89 'userid' => $this->userid,90 'announcementid' => $this->announcementid,91 'email' => $this,92 ), $this->template_base, $this->template_base );93 return ob_get_clean();94 }95 96 public function init_form_fields() {97 98 $this->form_fields = array(99 'enabled' => array(100 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ),101 'type' => 'checkbox',102 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ),103 'default' => 'yes',104 ),105 'subject' => array(106 'title' => 'Subject',107 'type' => 'text',108 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ),109 'placeholder' => '',110 'default' => ''111 ),112 'heading' => array(113 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'),114 'type' => 'text',115 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ),116 'placeholder' => '',117 'default' => ''118 ),119 'email_type' => array(120 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'),121 'type' => 'select',122 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'),123 'default' => 'html',124 'class' => 'email_type',125 'options' => array(126 'plain' => 'Plain text',127 'html' => 'HTML', 'woocommerce',128 'multipart' => 'Multipart', 'woocommerce',129 )130 )131 );132 }133 134 136 } 135 137 return new Marketking_New_Announcement_Email(); -
marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-new-message-email.php
r2863393 r3296674 3 3 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 4 4 5 class Marketking_New_Message_Email extends WC_Email { 5 if (!class_exists('Marketking_New_Message_Email')) { 6 class Marketking_New_Message_Email extends WC_Email { 6 7 7 public function __construct() {8 public function __construct() { 8 9 9 // set ID, this simply needs to be a unique name10 $this->id = 'marketking_new_message_email';10 // set ID, this simply needs to be a unique name 11 $this->id = 'marketking_new_message_email'; 11 12 12 // this is the title in WooCommerce Email settings13 $this->title = esc_html__('New Message', 'marketking-multivendor-marketplace-for-woocommerce');13 // this is the title in WooCommerce Email settings 14 $this->title = esc_html__('New Message', 'marketking-multivendor-marketplace-for-woocommerce'); 14 15 15 // this is the description in WooCommerce email settings16 $this->description = esc_html__('This email is sent when a new message is sent (marketking)', 'marketking-multivendor-marketplace-for-woocommerce');16 // this is the description in WooCommerce email settings 17 $this->description = esc_html__('This email is sent when a new message is sent (marketking)', 'marketking-multivendor-marketplace-for-woocommerce'); 17 18 18 // these are the default heading and subject lines that can be overridden using the settings19 $this->heading = esc_html__('New message', 'marketking-multivendor-marketplace-for-woocommerce');20 $this->subject = esc_html__('New message', 'marketking-multivendor-marketplace-for-woocommerce');19 // these are the default heading and subject lines that can be overridden using the settings 20 $this->heading = esc_html__('New message', 'marketking-multivendor-marketplace-for-woocommerce'); 21 $this->subject = esc_html__('New message', 'marketking-multivendor-marketplace-for-woocommerce'); 21 22 22 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/';23 $this->template_html = 'new-message-email-template.php';24 $this->template_plain = 'plain-new-message-email-template.php';25 26 // Call parent constructor to load any other defaults not explicity defined here27 parent::__construct();23 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/'; 24 $this->template_html = 'new-message-email-template.php'; 25 $this->template_plain = 'plain-new-message-email-template.php'; 26 27 // Call parent constructor to load any other defaults not explicity defined here 28 parent::__construct(); 28 29 29 add_action( 'marketking_new_message_notification', array( $this, 'trigger'), 10, 4 );30 add_action( 'marketking_new_message_notification', array( $this, 'trigger'), 10, 4 ); 30 31 31 }32 33 public function trigger($email_address, $message, $userid, $messageid) {34 35 $this->recipient = $email_address;36 $this->message = $message;37 $this->userid = $userid;38 $this->messageid = $messageid;39 40 if ( ! $this->is_enabled() || ! $this->get_recipient() ){41 return;42 32 } 43 33 44 marketking()->switch_to_user_locale($email_address);34 public function trigger($email_address, $message, $userid, $messageid) { 45 35 46 47 do_action('wpml_switch_language_for_email', $email_address);48 $this->heading = esc_html__('New message', 'marketking-multivendor-marketplace-for-woocommerce');49 $this->subject = esc_html__('New message', 'marketking-multivendor-marketplace-for-woocommerce');36 $this->recipient = $email_address; 37 $this->message = $message; 38 $this->userid = $userid; 39 $this->messageid = $messageid; 50 40 51 // check if the user is an agent and if new messages emails areenabled.52 $user = get_user_by('email', $email_address);53 $permission = get_user_meta($user->ID, 'marketking_receive_new_messages_emails', true);41 if ( ! $this->is_enabled() || ! $this->get_recipient() ){ 42 return; 43 } 54 44 55 $group = get_user_meta($user->ID,'marketking_group', true); 56 if (empty($group)){ 57 $not_agent = 'yes'; 45 marketking()->switch_to_user_locale($email_address); 46 47 48 do_action('wpml_switch_language_for_email', $email_address); 49 $this->heading = esc_html__('New message', 'marketking-multivendor-marketplace-for-woocommerce'); 50 $this->subject = esc_html__('New message', 'marketking-multivendor-marketplace-for-woocommerce'); 51 52 // check if the user is an agent and if new messages emails areenabled. 53 $user = get_user_by('email', $email_address); 54 $permission = get_user_meta($user->ID, 'marketking_receive_new_messages_emails', true); 55 56 $group = get_user_meta($user->ID,'marketking_group', true); 57 if (empty($group)){ 58 $not_agent = 'yes'; 59 } 60 61 // inquiry: Unless messaging system is enabled and vendor preference is to not receive messages, send email 62 if ($messageid !== 'support'){ 63 $inquiry = true; 64 } 65 if (intval(get_option( 'marketking_enable_messages_setting', 1 )) === 1){ 66 if (intval( get_option( 'marketking_inquiries_use_messaging_setting', 1 ) ) ){ 67 if ($permission === 'no'){ 68 $inquiry = false; 69 } 70 } 71 } 72 73 74 if (empty($permission) || $permission === 'yes' || $not_agent === 'yes' || $inquiry){ 75 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() ); 76 } 77 78 do_action('wpml_restore_language_from_email'); 79 marketking()->restore_locale(); 58 80 } 59 81 60 // inquiry: Unless messaging system is enabled and vendor preference is to not receive messages, send email 61 if ($messageid !== 'support'){ 62 $inquiry = true; 63 } 64 if (intval(get_option( 'marketking_enable_messages_setting', 1 )) === 1){ 65 if (intval( get_option( 'marketking_inquiries_use_messaging_setting', 1 ) ) ){ 66 if ($permission === 'no'){ 67 $inquiry = false; 68 } 82 public function get_content_html() { 83 ob_start(); 84 if (method_exists($this, 'get_additional_content')){ 85 $additional_content_checked = $this->get_additional_content(); 86 } else { 87 $additional_content_checked = false; 69 88 } 89 wc_get_template( $this->template_html, array( 90 'email_heading' => $this->get_heading(), 91 'additional_content' => $additional_content_checked, 92 'message' => $this->message, 93 'userid' => $this->userid, 94 'messageid' => $this->messageid, 95 'email' => $this, 96 ), $this->template_base, $this->template_base ); 97 return ob_get_clean(); 70 98 } 71 99 72 100 73 if (empty($permission) || $permission === 'yes' || $not_agent === 'yes' || $inquiry){ 74 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() ); 101 public function get_content_plain() { 102 ob_start(); 103 if (method_exists($this, 'get_additional_content')){ 104 $additional_content_checked = $this->get_additional_content(); 105 } else { 106 $additional_content_checked = false; 107 } 108 wc_get_template( $this->template_plain, array( 109 'email_heading' => $this->get_heading(), 110 'additional_content' => $additional_content_checked, 111 'message' => $this->message, 112 'userid' => $this->userid, 113 'messageid' => $this->messageid, 114 'email' => $this, 115 ), $this->template_base, $this->template_base ); 116 return ob_get_clean(); 75 117 } 76 118 77 do_action('wpml_restore_language_from_email'); 78 marketking()->restore_locale(); 119 public function init_form_fields() { 120 121 $this->form_fields = array( 122 'enabled' => array( 123 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ), 124 'type' => 'checkbox', 125 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ), 126 'default' => 'yes', 127 ), 128 'subject' => array( 129 'title' => 'Subject', 130 'type' => 'text', 131 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ), 132 'placeholder' => '', 133 'default' => '' 134 ), 135 'heading' => array( 136 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'), 137 'type' => 'text', 138 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ), 139 'placeholder' => '', 140 'default' => '' 141 ), 142 'email_type' => array( 143 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'), 144 'type' => 'select', 145 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'), 146 'default' => 'html', 147 'class' => 'email_type', 148 'options' => array( 149 'plain' => 'Plain text', 150 'html' => 'HTML', 'woocommerce', 151 'multipart' => 'Multipart', 'woocommerce', 152 ) 153 ) 154 ); 155 } 156 79 157 } 80 81 public function get_content_html() {82 ob_start();83 if (method_exists($this, 'get_additional_content')){84 $additional_content_checked = $this->get_additional_content();85 } else {86 $additional_content_checked = false;87 }88 wc_get_template( $this->template_html, array(89 'email_heading' => $this->get_heading(),90 'additional_content' => $additional_content_checked,91 'message' => $this->message,92 'userid' => $this->userid,93 'messageid' => $this->messageid,94 'email' => $this,95 ), $this->template_base, $this->template_base );96 return ob_get_clean();97 }98 99 100 public function get_content_plain() {101 ob_start();102 if (method_exists($this, 'get_additional_content')){103 $additional_content_checked = $this->get_additional_content();104 } else {105 $additional_content_checked = false;106 }107 wc_get_template( $this->template_plain, array(108 'email_heading' => $this->get_heading(),109 'additional_content' => $additional_content_checked,110 'message' => $this->message,111 'userid' => $this->userid,112 'messageid' => $this->messageid,113 'email' => $this,114 ), $this->template_base, $this->template_base );115 return ob_get_clean();116 }117 118 public function init_form_fields() {119 120 $this->form_fields = array(121 'enabled' => array(122 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ),123 'type' => 'checkbox',124 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ),125 'default' => 'yes',126 ),127 'subject' => array(128 'title' => 'Subject',129 'type' => 'text',130 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ),131 'placeholder' => '',132 'default' => ''133 ),134 'heading' => array(135 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'),136 'type' => 'text',137 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ),138 'placeholder' => '',139 'default' => ''140 ),141 'email_type' => array(142 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'),143 'type' => 'select',144 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'),145 'default' => 'html',146 'class' => 'email_type',147 'options' => array(148 'plain' => 'Plain text',149 'html' => 'HTML', 'woocommerce',150 'multipart' => 'Multipart', 'woocommerce',151 )152 )153 );154 }155 156 158 } 157 159 return new Marketking_New_Message_Email(); -
marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-new-payout-email.php
r2863393 r3296674 3 3 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 4 4 5 class Marketking_New_Payout_Email extends WC_Email { 5 if (!class_exists('Marketking_New_Payout_Email')) { 6 class Marketking_New_Payout_Email extends WC_Email { 6 7 7 public function __construct() {8 public function __construct() { 8 9 9 // set ID, this simply needs to be a unique name10 $this->id = 'marketking_new_payout_email';10 // set ID, this simply needs to be a unique name 11 $this->id = 'marketking_new_payout_email'; 11 12 12 // this is the title in WooCommerce Email settings13 $this->title = esc_html__('New Payout', 'marketking-multivendor-marketplace-for-woocommerce');13 // this is the title in WooCommerce Email settings 14 $this->title = esc_html__('New Payout', 'marketking-multivendor-marketplace-for-woocommerce'); 14 15 15 // this is the description in WooCommerce email settings16 $this->description = esc_html__('This email is sent when a payout is saved (marketking)', 'marketking-multivendor-marketplace-for-woocommerce');16 // this is the description in WooCommerce email settings 17 $this->description = esc_html__('This email is sent when a payout is saved (marketking)', 'marketking-multivendor-marketplace-for-woocommerce'); 17 18 18 // these are the default heading and subject lines that can be overridden using the settings19 $this->heading = esc_html__('New Payout', 'marketking-multivendor-marketplace-for-woocommerce');20 $this->subject = esc_html__('New Payout', 'marketking-multivendor-marketplace-for-woocommerce');19 // these are the default heading and subject lines that can be overridden using the settings 20 $this->heading = esc_html__('New Payout', 'marketking-multivendor-marketplace-for-woocommerce'); 21 $this->subject = esc_html__('New Payout', 'marketking-multivendor-marketplace-for-woocommerce'); 21 22 22 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/';23 $this->template_html = 'new-payout-email-template.php';24 $this->template_plain = 'plain-new-payout-email-template.php';25 26 // Call parent constructor to load any other defaults not explicity defined here27 parent::__construct();23 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/'; 24 $this->template_html = 'new-payout-email-template.php'; 25 $this->template_plain = 'plain-new-payout-email-template.php'; 26 27 // Call parent constructor to load any other defaults not explicity defined here 28 parent::__construct(); 28 29 29 add_action( 'marketking_new_payout_notification', array( $this, 'trigger'), 10, 4 ); 30 add_action( 'marketking_new_payout_notification', array( $this, 'trigger'), 10, 4 ); 31 32 } 33 34 public function trigger($email_address, $amount, $method, $note) { 35 36 $this->recipient = $email_address; 37 $this->amount = $amount; 38 $this->method = $method; 39 $this->note = $note; 40 41 if ( ! $this->is_enabled() || ! $this->get_recipient() ){ 42 return; 43 } 44 marketking()->switch_to_user_locale($email_address); 45 46 do_action('wpml_switch_language_for_email', $email_address); 47 $this->heading = esc_html__('New Payout', 'marketking-multivendor-marketplace-for-woocommerce'); 48 $this->subject = esc_html__('New Payout', 'marketking-multivendor-marketplace-for-woocommerce'); 49 50 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() ); 51 do_action('wpml_restore_language_from_email'); 52 marketking()->restore_locale(); 53 54 } 55 56 public function get_content_html() { 57 ob_start(); 58 if (method_exists($this, 'get_additional_content')){ 59 $additional_content_checked = $this->get_additional_content(); 60 } else { 61 $additional_content_checked = false; 62 } 63 wc_get_template( $this->template_html, array( 64 'email_heading' => $this->get_heading(), 65 'additional_content' => $additional_content_checked, 66 'amount' => $this->amount, 67 'method' => $this->method, 68 'note' => $this->note, 69 'email' => $this, 70 ), $this->template_base, $this->template_base ); 71 return ob_get_clean(); 72 } 73 74 75 public function get_content_plain() { 76 ob_start(); 77 if (method_exists($this, 'get_additional_content')){ 78 $additional_content_checked = $this->get_additional_content(); 79 } else { 80 $additional_content_checked = false; 81 } 82 wc_get_template( $this->template_plain, array( 83 'email_heading' => $this->get_heading(), 84 'additional_content' => $additional_content_checked, 85 'amount' => $this->amount, 86 'method' => $this->method, 87 'note' => $this->note, 88 'email' => $this, 89 ), $this->template_base, $this->template_base ); 90 return ob_get_clean(); 91 } 92 93 public function init_form_fields() { 94 95 $this->form_fields = array( 96 'enabled' => array( 97 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ), 98 'type' => 'checkbox', 99 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ), 100 'default' => 'yes', 101 ), 102 'subject' => array( 103 'title' => 'Subject', 104 'type' => 'text', 105 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ), 106 'placeholder' => '', 107 'default' => '' 108 ), 109 'heading' => array( 110 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'), 111 'type' => 'text', 112 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ), 113 'placeholder' => '', 114 'default' => '' 115 ), 116 'email_type' => array( 117 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'), 118 'type' => 'select', 119 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'), 120 'default' => 'html', 121 'class' => 'email_type', 122 'options' => array( 123 'plain' => 'Plain text', 124 'html' => 'HTML', 'woocommerce', 125 'multipart' => 'Multipart', 'woocommerce', 126 ) 127 ) 128 ); 129 } 30 130 31 131 } 132 } 32 133 33 public function trigger($email_address, $amount, $method, $note) {34 35 $this->recipient = $email_address;36 $this->amount = $amount;37 $this->method = $method;38 $this->note = $note;39 40 if ( ! $this->is_enabled() || ! $this->get_recipient() ){41 return;42 }43 marketking()->switch_to_user_locale($email_address);44 45 do_action('wpml_switch_language_for_email', $email_address);46 $this->heading = esc_html__('New Payout', 'marketking-multivendor-marketplace-for-woocommerce');47 $this->subject = esc_html__('New Payout', 'marketking-multivendor-marketplace-for-woocommerce');48 49 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );50 do_action('wpml_restore_language_from_email');51 marketking()->restore_locale();52 53 }54 55 public function get_content_html() {56 ob_start();57 if (method_exists($this, 'get_additional_content')){58 $additional_content_checked = $this->get_additional_content();59 } else {60 $additional_content_checked = false;61 }62 wc_get_template( $this->template_html, array(63 'email_heading' => $this->get_heading(),64 'additional_content' => $additional_content_checked,65 'amount' => $this->amount,66 'method' => $this->method,67 'note' => $this->note,68 'email' => $this,69 ), $this->template_base, $this->template_base );70 return ob_get_clean();71 }72 73 74 public function get_content_plain() {75 ob_start();76 if (method_exists($this, 'get_additional_content')){77 $additional_content_checked = $this->get_additional_content();78 } else {79 $additional_content_checked = false;80 }81 wc_get_template( $this->template_plain, array(82 'email_heading' => $this->get_heading(),83 'additional_content' => $additional_content_checked,84 'amount' => $this->amount,85 'method' => $this->method,86 'note' => $this->note,87 'email' => $this,88 ), $this->template_base, $this->template_base );89 return ob_get_clean();90 }91 92 public function init_form_fields() {93 94 $this->form_fields = array(95 'enabled' => array(96 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ),97 'type' => 'checkbox',98 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ),99 'default' => 'yes',100 ),101 'subject' => array(102 'title' => 'Subject',103 'type' => 'text',104 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ),105 'placeholder' => '',106 'default' => ''107 ),108 'heading' => array(109 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'),110 'type' => 'text',111 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ),112 'placeholder' => '',113 'default' => ''114 ),115 'email_type' => array(116 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'),117 'type' => 'select',118 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'),119 'default' => 'html',120 'class' => 'email_type',121 'options' => array(122 'plain' => 'Plain text',123 'html' => 'HTML', 'woocommerce',124 'multipart' => 'Multipart', 'woocommerce',125 )126 )127 );128 }129 130 }131 134 return new Marketking_New_Payout_Email(); -
marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-new-product-requires-approval-email.php
r3212032 r3296674 3 3 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 4 4 5 class Marketking_New_Product_Requires_Approval_Email extends WC_Email { 5 if (!class_exists('Marketking_New_Product_Requires_Approval_Email')) { 6 class Marketking_New_Product_Requires_Approval_Email extends WC_Email { 6 7 7 public function __construct() {8 public function __construct() { 8 9 9 // set ID, this simply needs to be a unique name10 $this->id = 'marketking_new_product_requires_approval_email';10 // set ID, this simply needs to be a unique name 11 $this->id = 'marketking_new_product_requires_approval_email'; 11 12 12 // this is the title in WooCommerce Email settings13 $this->title = esc_html__('New product requires approval', 'marketking-multivendor-marketplace-for-woocommerce');13 // this is the title in WooCommerce Email settings 14 $this->title = esc_html__('New product requires approval', 'marketking-multivendor-marketplace-for-woocommerce'); 14 15 15 // this is the description in WooCommerce email settings16 $this->description = esc_html__('This email is sent to admin when a vendor submits a product which requires manual approval', 'marketking-multivendor-marketplace-for-woocommerce');16 // this is the description in WooCommerce email settings 17 $this->description = esc_html__('This email is sent to admin when a vendor submits a product which requires manual approval', 'marketking-multivendor-marketplace-for-woocommerce'); 17 18 18 // these are the default heading and subject lines that can be overridden using the settings19 $this->heading = esc_html__('New product requires approval', 'marketking-multivendor-marketplace-for-woocommerce');20 $this->subject = esc_html__('New product requires approval', 'marketking-multivendor-marketplace-for-woocommerce');19 // these are the default heading and subject lines that can be overridden using the settings 20 $this->heading = esc_html__('New product requires approval', 'marketking-multivendor-marketplace-for-woocommerce'); 21 $this->subject = esc_html__('New product requires approval', 'marketking-multivendor-marketplace-for-woocommerce'); 21 22 22 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/';23 $this->template_html = 'new-product-requires-approval-email-template.php';24 $this->template_plain = 'plain-new-product-requires-approval-email-template.php';25 26 // Call parent constructor to load any other defaults not explicity defined here27 parent::__construct();23 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/'; 24 $this->template_html = 'new-product-requires-approval-email-template.php'; 25 $this->template_plain = 'plain-new-product-requires-approval-email-template.php'; 26 27 // Call parent constructor to load any other defaults not explicity defined here 28 parent::__construct(); 28 29 29 // this sets the recipient to the settings defined below in init_form_fields()30 $this->recipient = $this->get_option( 'recipient' );30 // this sets the recipient to the settings defined below in init_form_fields() 31 $this->recipient = $this->get_option( 'recipient' ); 31 32 32 // if none was entered, just use the WP admin email as a fallback 33 if ( ! $this->recipient ){ 34 $this->recipient = get_option( 'admin_email' ); 33 // if none was entered, just use the WP admin email as a fallback 34 if ( ! $this->recipient ){ 35 $this->recipient = get_option( 'admin_email' ); 36 } 37 38 add_action( 'marketking_new_product_requires_approval_notification', array( $this, 'trigger'), 10, 1 ); 39 35 40 } 36 41 37 add_action( 'marketking_new_product_requires_approval_notification', array( $this, 'trigger'), 10, 1 ); 42 public function trigger($product_id) { 43 if ( ! $this->is_enabled() || ! $this->get_recipient() ){ 44 return; 45 } 46 47 $this->product_id = $product_id; 48 $this->subject = apply_filters('marketking_product_requires_approval_email_heading', $this->subject); 49 50 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() ); 51 } 52 53 public function get_content_html() { 54 ob_start(); 55 if (method_exists($this, 'get_additional_content')){ 56 $additional_content_checked = $this->get_additional_content(); 57 } else { 58 $additional_content_checked = false; 59 } 60 wc_get_template( $this->template_html, array( 61 'email_heading' => apply_filters('marketking_product_requires_approval_email_heading', $this->get_heading()), 62 'additional_content' => $additional_content_checked, 63 'product_id' => $this->product_id, 64 'email' => $this, 65 ), $this->template_base, $this->template_base ); 66 return ob_get_clean(); 67 } 68 69 70 public function get_content_plain() { 71 ob_start(); 72 if (method_exists($this, 'get_additional_content')){ 73 $additional_content_checked = $this->get_additional_content(); 74 } else { 75 $additional_content_checked = false; 76 } 77 wc_get_template( $this->template_plain, array( 78 'email_heading' => $this->get_heading(), 79 'additional_content' => $additional_content_checked, 80 'product_id' => $this->product_id, 81 'email' => $this, 82 ), $this->template_base, $this->template_base ); 83 return ob_get_clean(); 84 } 85 86 public function init_form_fields() { 87 88 $this->form_fields = array( 89 'enabled' => array( 90 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ), 91 'type' => 'checkbox', 92 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ), 93 'default' => 'yes', 94 ), 95 'recipient' => array( 96 'title' => esc_html__('Recipient(s)','marketking-multivendor-marketplace-for-woocommerce'), 97 'type' => 'text', 98 'description' => esc_html__('Enter recipients (comma separated) for this email. Defaults to','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', esc_attr( get_option( 'admin_email' ) ) ), 99 'placeholder' => '', 100 'default' => '' 101 ), 102 'subject' => array( 103 'title' => 'Subject', 104 'type' => 'text', 105 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ), 106 'placeholder' => '', 107 'default' => '' 108 ), 109 'heading' => array( 110 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'), 111 'type' => 'text', 112 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ), 113 'placeholder' => '', 114 'default' => '' 115 ), 116 'email_type' => array( 117 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'), 118 'type' => 'select', 119 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'), 120 'default' => 'html', 121 'class' => 'email_type', 122 'options' => array( 123 'plain' => 'Plain text', 124 'html' => 'HTML', 'woocommerce', 125 'multipart' => 'Multipart', 'woocommerce', 126 ) 127 ), 128 'additional_content' => array( 129 'title' => esc_html__( 'Additional content', 'woocommerce' ), 130 'description' => esc_html__( 'Text to appear below the main email content.', 'woocommerce' ), 131 'css' => 'width:400px; height: 75px;', 132 'placeholder' => esc_html__( 'N/A', 'woocommerce' ), 133 'type' => 'textarea', 134 'default' => '', 135 'desc_tip' => true, 136 ), 137 ); 138 } 38 139 39 140 } 141 } 40 142 41 public function trigger($product_id) {42 if ( ! $this->is_enabled() || ! $this->get_recipient() ){43 return;44 }45 46 $this->product_id = $product_id;47 $this->subject = apply_filters('marketking_product_requires_approval_email_heading', $this->subject);48 49 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );50 }51 52 public function get_content_html() {53 ob_start();54 if (method_exists($this, 'get_additional_content')){55 $additional_content_checked = $this->get_additional_content();56 } else {57 $additional_content_checked = false;58 }59 wc_get_template( $this->template_html, array(60 'email_heading' => apply_filters('marketking_product_requires_approval_email_heading', $this->get_heading()),61 'additional_content' => $additional_content_checked,62 'product_id' => $this->product_id,63 'email' => $this,64 ), $this->template_base, $this->template_base );65 return ob_get_clean();66 }67 68 69 public function get_content_plain() {70 ob_start();71 if (method_exists($this, 'get_additional_content')){72 $additional_content_checked = $this->get_additional_content();73 } else {74 $additional_content_checked = false;75 }76 wc_get_template( $this->template_plain, array(77 'email_heading' => $this->get_heading(),78 'additional_content' => $additional_content_checked,79 'product_id' => $this->product_id,80 'email' => $this,81 ), $this->template_base, $this->template_base );82 return ob_get_clean();83 }84 85 public function init_form_fields() {86 87 $this->form_fields = array(88 'enabled' => array(89 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ),90 'type' => 'checkbox',91 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ),92 'default' => 'yes',93 ),94 'recipient' => array(95 'title' => esc_html__('Recipient(s)','marketking-multivendor-marketplace-for-woocommerce'),96 'type' => 'text',97 'description' => esc_html__('Enter recipients (comma separated) for this email. Defaults to','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', esc_attr( get_option( 'admin_email' ) ) ),98 'placeholder' => '',99 'default' => ''100 ),101 'subject' => array(102 'title' => 'Subject',103 'type' => 'text',104 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ),105 'placeholder' => '',106 'default' => ''107 ),108 'heading' => array(109 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'),110 'type' => 'text',111 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ),112 'placeholder' => '',113 'default' => ''114 ),115 'email_type' => array(116 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'),117 'type' => 'select',118 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'),119 'default' => 'html',120 'class' => 'email_type',121 'options' => array(122 'plain' => 'Plain text',123 'html' => 'HTML', 'woocommerce',124 'multipart' => 'Multipart', 'woocommerce',125 )126 ),127 'additional_content' => array(128 'title' => esc_html__( 'Additional content', 'woocommerce' ),129 'description' => esc_html__( 'Text to appear below the main email content.', 'woocommerce' ),130 'css' => 'width:400px; height: 75px;',131 'placeholder' => esc_html__( 'N/A', 'woocommerce' ),132 'type' => 'textarea',133 'default' => '',134 'desc_tip' => true,135 ),136 );137 }138 139 }140 143 return new Marketking_New_Product_Requires_Approval_Email(); -
marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-new-rating-email.php
r2863393 r3296674 3 3 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 4 4 5 class Marketking_New_Rating_Email extends WC_Email { 5 if (!class_exists('Marketking_New_Rating_Email')) { 6 class Marketking_New_Rating_Email extends WC_Email { 6 7 7 public function __construct() {8 public function __construct() { 8 9 9 // set ID, this simply needs to be a unique name10 $this->id = 'marketking_new_rating_email';10 // set ID, this simply needs to be a unique name 11 $this->id = 'marketking_new_rating_email'; 11 12 12 // this is the title in WooCommerce Email settings13 $this->title = esc_html__('New Rating', 'marketking-multivendor-marketplace-for-woocommerce');13 // this is the title in WooCommerce Email settings 14 $this->title = esc_html__('New Rating', 'marketking-multivendor-marketplace-for-woocommerce'); 14 15 15 // this is the description in WooCommerce email settings16 $this->description = esc_html__('This email is sent when a new rating is received (marketking)', 'marketking-multivendor-marketplace-for-woocommerce');16 // this is the description in WooCommerce email settings 17 $this->description = esc_html__('This email is sent when a new rating is received (marketking)', 'marketking-multivendor-marketplace-for-woocommerce'); 17 18 18 // these are the default heading and subject lines that can be overridden using the settings19 $this->heading = esc_html__('New Rating', 'marketking-multivendor-marketplace-for-woocommerce');20 $this->subject = esc_html__('New Rating', 'marketking-multivendor-marketplace-for-woocommerce');19 // these are the default heading and subject lines that can be overridden using the settings 20 $this->heading = esc_html__('New Rating', 'marketking-multivendor-marketplace-for-woocommerce'); 21 $this->subject = esc_html__('New Rating', 'marketking-multivendor-marketplace-for-woocommerce'); 21 22 22 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/';23 $this->template_html = 'new-rating-email-template.php';24 $this->template_plain = 'plain-new-rating-email-template.php';25 26 // Call parent constructor to load any other defaults not explicity defined here27 parent::__construct();23 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/'; 24 $this->template_html = 'new-rating-email-template.php'; 25 $this->template_plain = 'plain-new-rating-email-template.php'; 26 27 // Call parent constructor to load any other defaults not explicity defined here 28 parent::__construct(); 28 29 29 add_action( 'marketking_new_rating_notification', array( $this, 'trigger'), 10, 4 ); 30 add_action( 'marketking_new_rating_notification', array( $this, 'trigger'), 10, 4 ); 31 32 } 33 34 public function trigger($email_address, $rating, $comment, $product) { 35 36 $this->recipient = $email_address; 37 $this->rating = $rating; 38 $this->comment = $comment; 39 $this->product = $product; 40 41 if ( ! $this->is_enabled() || ! $this->get_recipient() ){ 42 return; 43 } 44 marketking()->switch_to_user_locale($email_address); 45 46 do_action('wpml_switch_language_for_email', $email_address); 47 $this->heading = esc_html__('New Rating', 'marketking-multivendor-marketplace-for-woocommerce'); 48 $this->subject = esc_html__('New Rating', 'marketking-multivendor-marketplace-for-woocommerce'); 49 50 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() ); 51 do_action('wpml_restore_language_from_email'); 52 marketking()->restore_locale(); 53 } 54 55 public function get_content_html() { 56 ob_start(); 57 if (method_exists($this, 'get_additional_content')){ 58 $additional_content_checked = $this->get_additional_content(); 59 } else { 60 $additional_content_checked = false; 61 } 62 wc_get_template( $this->template_html, array( 63 'email_heading' => $this->get_heading(), 64 'additional_content' => $additional_content_checked, 65 'rating' => $this->rating, 66 'comment' => $this->comment, 67 'product' => $this->product, 68 'email' => $this, 69 ), $this->template_base, $this->template_base ); 70 return ob_get_clean(); 71 } 72 73 74 public function get_content_plain() { 75 ob_start(); 76 if (method_exists($this, 'get_additional_content')){ 77 $additional_content_checked = $this->get_additional_content(); 78 } else { 79 $additional_content_checked = false; 80 } 81 wc_get_template( $this->template_plain, array( 82 'email_heading' => $this->get_heading(), 83 'additional_content' => $additional_content_checked, 84 'rating' => $this->rating, 85 'comment' => $this->comment, 86 'product' => $this->product, 87 'email' => $this, 88 ), $this->template_base, $this->template_base ); 89 return ob_get_clean(); 90 } 91 92 public function init_form_fields() { 93 94 $this->form_fields = array( 95 'enabled' => array( 96 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ), 97 'type' => 'checkbox', 98 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ), 99 'default' => 'yes', 100 ), 101 'subject' => array( 102 'title' => 'Subject', 103 'type' => 'text', 104 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ), 105 'placeholder' => '', 106 'default' => '' 107 ), 108 'heading' => array( 109 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'), 110 'type' => 'text', 111 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ), 112 'placeholder' => '', 113 'default' => '' 114 ), 115 'email_type' => array( 116 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'), 117 'type' => 'select', 118 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'), 119 'default' => 'html', 120 'class' => 'email_type', 121 'options' => array( 122 'plain' => 'Plain text', 123 'html' => 'HTML', 'woocommerce', 124 'multipart' => 'Multipart', 'woocommerce', 125 ) 126 ) 127 ); 128 } 30 129 31 130 } 131 } 32 132 33 public function trigger($email_address, $rating, $comment, $product) {34 35 $this->recipient = $email_address;36 $this->rating = $rating;37 $this->comment = $comment;38 $this->product = $product;39 40 if ( ! $this->is_enabled() || ! $this->get_recipient() ){41 return;42 }43 marketking()->switch_to_user_locale($email_address);44 45 do_action('wpml_switch_language_for_email', $email_address);46 $this->heading = esc_html__('New Rating', 'marketking-multivendor-marketplace-for-woocommerce');47 $this->subject = esc_html__('New Rating', 'marketking-multivendor-marketplace-for-woocommerce');48 49 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );50 do_action('wpml_restore_language_from_email');51 marketking()->restore_locale();52 }53 54 public function get_content_html() {55 ob_start();56 if (method_exists($this, 'get_additional_content')){57 $additional_content_checked = $this->get_additional_content();58 } else {59 $additional_content_checked = false;60 }61 wc_get_template( $this->template_html, array(62 'email_heading' => $this->get_heading(),63 'additional_content' => $additional_content_checked,64 'rating' => $this->rating,65 'comment' => $this->comment,66 'product' => $this->product,67 'email' => $this,68 ), $this->template_base, $this->template_base );69 return ob_get_clean();70 }71 72 73 public function get_content_plain() {74 ob_start();75 if (method_exists($this, 'get_additional_content')){76 $additional_content_checked = $this->get_additional_content();77 } else {78 $additional_content_checked = false;79 }80 wc_get_template( $this->template_plain, array(81 'email_heading' => $this->get_heading(),82 'additional_content' => $additional_content_checked,83 'rating' => $this->rating,84 'comment' => $this->comment,85 'product' => $this->product,86 'email' => $this,87 ), $this->template_base, $this->template_base );88 return ob_get_clean();89 }90 91 public function init_form_fields() {92 93 $this->form_fields = array(94 'enabled' => array(95 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ),96 'type' => 'checkbox',97 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ),98 'default' => 'yes',99 ),100 'subject' => array(101 'title' => 'Subject',102 'type' => 'text',103 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ),104 'placeholder' => '',105 'default' => ''106 ),107 'heading' => array(108 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'),109 'type' => 'text',110 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ),111 'placeholder' => '',112 'default' => ''113 ),114 'email_type' => array(115 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'),116 'type' => 'select',117 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'),118 'default' => 'html',119 'class' => 'email_type',120 'options' => array(121 'plain' => 'Plain text',122 'html' => 'HTML', 'woocommerce',123 'multipart' => 'Multipart', 'woocommerce',124 )125 )126 );127 }128 129 }130 133 return new Marketking_New_Rating_Email(); -
marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-new-refund-email.php
r3180752 r3296674 3 3 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 4 4 5 class Marketking_New_Refund_Email extends WC_Email { 5 if (!class_exists('Marketking_New_Refund_Email')) { 6 class Marketking_New_Refund_Email extends WC_Email { 6 7 7 public function __construct() {8 public function __construct() { 8 9 9 // set ID, this simply needs to be a unique name10 $this->id = 'marketking_new_refund_email';10 // set ID, this simply needs to be a unique name 11 $this->id = 'marketking_new_refund_email'; 11 12 12 // this is the title in WooCommerce Email settings13 $this->title = esc_html__('New Refund Request', 'marketking-multivendor-marketplace-for-woocommerce');13 // this is the title in WooCommerce Email settings 14 $this->title = esc_html__('New Refund Request', 'marketking-multivendor-marketplace-for-woocommerce'); 14 15 15 // this is the description in WooCommerce email settings16 $this->description = esc_html__('This email is sent to vendors when a new refund request is received (marketking)', 'marketking-multivendor-marketplace-for-woocommerce');16 // this is the description in WooCommerce email settings 17 $this->description = esc_html__('This email is sent to vendors when a new refund request is received (marketking)', 'marketking-multivendor-marketplace-for-woocommerce'); 17 18 18 // these are the default heading and subject lines that can be overridden using the settings19 $this->heading = esc_html__('New Refund Request', 'marketking-multivendor-marketplace-for-woocommerce');20 $this->subject = esc_html__('New Refund Request', 'marketking-multivendor-marketplace-for-woocommerce');19 // these are the default heading and subject lines that can be overridden using the settings 20 $this->heading = esc_html__('New Refund Request', 'marketking-multivendor-marketplace-for-woocommerce'); 21 $this->subject = esc_html__('New Refund Request', 'marketking-multivendor-marketplace-for-woocommerce'); 21 22 22 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/';23 $this->template_html = 'new-refund-email-template.php';24 $this->template_plain = 'plain-new-refund-email-template.php';25 26 // Call parent constructor to load any other defaults not explicity defined here27 parent::__construct();23 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/'; 24 $this->template_html = 'new-refund-email-template.php'; 25 $this->template_plain = 'plain-new-refund-email-template.php'; 26 27 // Call parent constructor to load any other defaults not explicity defined here 28 parent::__construct(); 28 29 29 add_action( 'marketking_new_refund_notification', array( $this, 'trigger'), 10, 4 ); 30 add_action( 'marketking_new_refund_notification', array( $this, 'trigger'), 10, 4 ); 31 32 } 33 34 public function trigger($email_address, $refund, $reason, $user) { 35 36 $this->recipient = $email_address; 37 $this->refund = $refund; 38 $this->reason = $reason; 39 $this->user = $user; 40 41 if ( ! $this->is_enabled() || ! $this->get_recipient() ){ 42 return; 43 } 44 45 marketking()->switch_to_user_locale($email_address); 46 47 do_action('wpml_switch_language_for_email', $email_address); 48 $this->heading = esc_html__('New Refund Request', 'marketking-multivendor-marketplace-for-woocommerce'); 49 $this->subject = esc_html__('New Refund Request', 'marketking-multivendor-marketplace-for-woocommerce'); 50 51 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() ); 52 do_action('wpml_restore_language_from_email'); 53 marketking()->restore_locale(); 54 } 55 56 public function get_content_html() { 57 ob_start(); 58 if (method_exists($this, 'get_additional_content')){ 59 $additional_content_checked = $this->get_additional_content(); 60 } else { 61 $additional_content_checked = false; 62 } 63 wc_get_template( $this->template_html, array( 64 'email_heading' => $this->get_heading(), 65 'additional_content' => $additional_content_checked, 66 'refund' => $this->refund, 67 'reason' => $this->reason, 68 'user' => $this->user, 69 'email' => $this, 70 ), $this->template_base, $this->template_base ); 71 return ob_get_clean(); 72 } 73 74 75 public function get_content_plain() { 76 ob_start(); 77 if (method_exists($this, 'get_additional_content')){ 78 $additional_content_checked = $this->get_additional_content(); 79 } else { 80 $additional_content_checked = false; 81 } 82 wc_get_template( $this->template_plain, array( 83 'email_heading' => $this->get_heading(), 84 'additional_content' => $additional_content_checked, 85 'refund' => $this->refund, 86 'reason' => $this->reason, 87 'user' => $this->user, 88 'email' => $this, 89 ), $this->template_base, $this->template_base ); 90 return ob_get_clean(); 91 } 92 93 public function init_form_fields() { 94 95 $this->form_fields = array( 96 'enabled' => array( 97 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ), 98 'type' => 'checkbox', 99 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ), 100 'default' => 'yes', 101 ), 102 'subject' => array( 103 'title' => 'Subject', 104 'type' => 'text', 105 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ), 106 'placeholder' => '', 107 'default' => '' 108 ), 109 'heading' => array( 110 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'), 111 'type' => 'text', 112 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ), 113 'placeholder' => '', 114 'default' => '' 115 ), 116 'email_type' => array( 117 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'), 118 'type' => 'select', 119 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'), 120 'default' => 'html', 121 'class' => 'email_type', 122 'options' => array( 123 'plain' => 'Plain text', 124 'html' => 'HTML', 'woocommerce', 125 'multipart' => 'Multipart', 'woocommerce', 126 ) 127 ) 128 ); 129 } 30 130 31 131 } 32 33 public function trigger($email_address, $refund, $reason, $user) {34 35 $this->recipient = $email_address;36 $this->refund = $refund;37 $this->reason = $reason;38 $this->user = $user;39 40 if ( ! $this->is_enabled() || ! $this->get_recipient() ){41 return;42 }43 44 marketking()->switch_to_user_locale($email_address);45 46 do_action('wpml_switch_language_for_email', $email_address);47 $this->heading = esc_html__('New Refund Request', 'marketking-multivendor-marketplace-for-woocommerce');48 $this->subject = esc_html__('New Refund Request', 'marketking-multivendor-marketplace-for-woocommerce');49 50 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );51 do_action('wpml_restore_language_from_email');52 marketking()->restore_locale();53 }54 55 public function get_content_html() {56 ob_start();57 if (method_exists($this, 'get_additional_content')){58 $additional_content_checked = $this->get_additional_content();59 } else {60 $additional_content_checked = false;61 }62 wc_get_template( $this->template_html, array(63 'email_heading' => $this->get_heading(),64 'additional_content' => $additional_content_checked,65 'refund' => $this->refund,66 'reason' => $this->reason,67 'user' => $this->user,68 'email' => $this,69 ), $this->template_base, $this->template_base );70 return ob_get_clean();71 }72 73 74 public function get_content_plain() {75 ob_start();76 if (method_exists($this, 'get_additional_content')){77 $additional_content_checked = $this->get_additional_content();78 } else {79 $additional_content_checked = false;80 }81 wc_get_template( $this->template_plain, array(82 'email_heading' => $this->get_heading(),83 'additional_content' => $additional_content_checked,84 'refund' => $this->refund,85 'reason' => $this->reason,86 'user' => $this->user,87 'email' => $this,88 ), $this->template_base, $this->template_base );89 return ob_get_clean();90 }91 92 public function init_form_fields() {93 94 $this->form_fields = array(95 'enabled' => array(96 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ),97 'type' => 'checkbox',98 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ),99 'default' => 'yes',100 ),101 'subject' => array(102 'title' => 'Subject',103 'type' => 'text',104 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ),105 'placeholder' => '',106 'default' => ''107 ),108 'heading' => array(109 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'),110 'type' => 'text',111 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ),112 'placeholder' => '',113 'default' => ''114 ),115 'email_type' => array(116 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'),117 'type' => 'select',118 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'),119 'default' => 'html',120 'class' => 'email_type',121 'options' => array(122 'plain' => 'Plain text',123 'html' => 'HTML', 'woocommerce',124 'multipart' => 'Multipart', 'woocommerce',125 )126 )127 );128 }129 130 132 } 131 133 return new Marketking_New_Refund_Email(); -
marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-new-vendor-requires-approval-email.php
r2797852 r3296674 3 3 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 4 4 5 class Marketking_New_Vendor_Requires_Approval_Email extends WC_Email { 5 if (!class_exists('Marketking_New_Vendor_Requires_Approval_Email')) { 6 class Marketking_New_Vendor_Requires_Approval_Email extends WC_Email { 6 7 7 public function __construct() {8 public function __construct() { 8 9 9 // set ID, this simply needs to be a unique name10 $this->id = 'marketking_new_vendor_requires_approval_email';10 // set ID, this simply needs to be a unique name 11 $this->id = 'marketking_new_vendor_requires_approval_email'; 11 12 12 // this is the title in WooCommerce Email settings13 $this->title = esc_html__('New vendor requires approval', 'marketking-multivendor-marketplace-for-woocommerce');13 // this is the title in WooCommerce Email settings 14 $this->title = esc_html__('New vendor requires approval', 'marketking-multivendor-marketplace-for-woocommerce'); 14 15 15 // this is the description in WooCommerce email settings16 $this->description = esc_html__('This email is sent to admin when a new vendor registers and requires manual approval', 'marketking-multivendor-marketplace-for-woocommerce');16 // this is the description in WooCommerce email settings 17 $this->description = esc_html__('This email is sent to admin when a new vendor registers and requires manual approval', 'marketking-multivendor-marketplace-for-woocommerce'); 17 18 18 // these are the default heading and subject lines that can be overridden using the settings19 $this->heading = esc_html__('New vendor requires approval', 'marketking-multivendor-marketplace-for-woocommerce');20 $this->subject = esc_html__('New vendor requires approval', 'marketking-multivendor-marketplace-for-woocommerce');19 // these are the default heading and subject lines that can be overridden using the settings 20 $this->heading = esc_html__('New vendor requires approval', 'marketking-multivendor-marketplace-for-woocommerce'); 21 $this->subject = esc_html__('New vendor requires approval', 'marketking-multivendor-marketplace-for-woocommerce'); 21 22 22 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/';23 $this->template_html = 'new-vendor-requires-approval-email-template.php';24 $this->template_plain = 'plain-new-vendor-requires-approval-email-template.php';25 26 // Call parent constructor to load any other defaults not explicity defined here27 parent::__construct();23 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/'; 24 $this->template_html = 'new-vendor-requires-approval-email-template.php'; 25 $this->template_plain = 'plain-new-vendor-requires-approval-email-template.php'; 26 27 // Call parent constructor to load any other defaults not explicity defined here 28 parent::__construct(); 28 29 29 // this sets the recipient to the settings defined below in init_form_fields()30 $this->recipient = $this->get_option( 'recipient' );30 // this sets the recipient to the settings defined below in init_form_fields() 31 $this->recipient = $this->get_option( 'recipient' ); 31 32 32 // if none was entered, just use the WP admin email as a fallback 33 if ( ! $this->recipient ){ 34 $this->recipient = get_option( 'admin_email' ); 33 // if none was entered, just use the WP admin email as a fallback 34 if ( ! $this->recipient ){ 35 $this->recipient = get_option( 'admin_email' ); 36 } 37 38 add_action( 'woocommerce_created_customer_notification', array( $this, 'trigger'), 10, 3 ); 39 add_action( 'marketking_new_user_requires_approval_notification', array( $this, 'trigger'), 10, 3 ); 40 35 41 } 36 42 37 add_action( 'woocommerce_created_customer_notification', array( $this, 'trigger'), 10, 3 ); 38 add_action( 'marketking_new_user_requires_approval_notification', array( $this, 'trigger'), 10, 3 ); 43 public function trigger($customer_id, $data, $password) { 44 if ( ! $this->is_enabled() || ! $this->get_recipient() ){ 45 return; 46 } 47 48 $this->object = new WP_User( $customer_id ); 49 $this->user_login = stripslashes( $this->object->user_login ); 50 $this->user_email = stripslashes( $this->object->user_email ); 51 52 $this->subject = apply_filters('marketking_requires_approval_email_heading', $this->subject, $this->user_login); 53 // check if customer requires manual approval 54 $account_approved = get_user_meta($customer_id, 'marketking_account_approved', true); 55 if ($account_approved === 'no'){ 56 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() ); 57 } 58 59 } 60 61 public function get_content_html() { 62 ob_start(); 63 if (method_exists($this, 'get_additional_content')){ 64 $additional_content_checked = $this->get_additional_content(); 65 } else { 66 $additional_content_checked = false; 67 } 68 wc_get_template( $this->template_html, array( 69 'email_heading' => apply_filters('marketking_requires_approval_email_heading', $this->get_heading(), $this->user_login), 70 'additional_content' => $additional_content_checked, 71 'user_login' => $this->user_login, 72 'email' => $this, 73 ), $this->template_base, $this->template_base ); 74 return ob_get_clean(); 75 } 76 77 78 public function get_content_plain() { 79 ob_start(); 80 if (method_exists($this, 'get_additional_content')){ 81 $additional_content_checked = $this->get_additional_content(); 82 } else { 83 $additional_content_checked = false; 84 } 85 wc_get_template( $this->template_plain, array( 86 'email_heading' => $this->get_heading(), 87 'additional_content' => $additional_content_checked, 88 'user_login' => $this->user_login, 89 'email' => $this, 90 ), $this->template_base, $this->template_base ); 91 return ob_get_clean(); 92 } 93 94 public function init_form_fields() { 95 96 $this->form_fields = array( 97 'enabled' => array( 98 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ), 99 'type' => 'checkbox', 100 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ), 101 'default' => 'yes', 102 ), 103 'recipient' => array( 104 'title' => esc_html__('Recipient(s)','marketking-multivendor-marketplace-for-woocommerce'), 105 'type' => 'text', 106 'description' => esc_html__('Enter recipients (comma separated) for this email. Defaults to','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', esc_attr( get_option( 'admin_email' ) ) ), 107 'placeholder' => '', 108 'default' => '' 109 ), 110 'subject' => array( 111 'title' => 'Subject', 112 'type' => 'text', 113 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ), 114 'placeholder' => '', 115 'default' => '' 116 ), 117 'heading' => array( 118 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'), 119 'type' => 'text', 120 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ), 121 'placeholder' => '', 122 'default' => '' 123 ), 124 'email_type' => array( 125 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'), 126 'type' => 'select', 127 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'), 128 'default' => 'html', 129 'class' => 'email_type', 130 'options' => array( 131 'plain' => 'Plain text', 132 'html' => 'HTML', 'woocommerce', 133 'multipart' => 'Multipart', 'woocommerce', 134 ) 135 ), 136 'additional_content' => array( 137 'title' => esc_html__( 'Additional content', 'woocommerce' ), 138 'description' => esc_html__( 'Text to appear below the main email content.', 'woocommerce' ), 139 'css' => 'width:400px; height: 75px;', 140 'placeholder' => esc_html__( 'N/A', 'woocommerce' ), 141 'type' => 'textarea', 142 'default' => '', 143 'desc_tip' => true, 144 ), 145 ); 146 } 39 147 40 148 } 149 } 41 150 42 public function trigger($customer_id, $data, $password) {43 if ( ! $this->is_enabled() || ! $this->get_recipient() ){44 return;45 }46 47 $this->object = new WP_User( $customer_id );48 $this->user_login = stripslashes( $this->object->user_login );49 $this->user_email = stripslashes( $this->object->user_email );50 51 $this->subject = apply_filters('marketking_requires_approval_email_heading', $this->subject, $this->user_login);52 // check if customer requires manual approval53 $account_approved = get_user_meta($customer_id, 'marketking_account_approved', true);54 if ($account_approved === 'no'){55 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );56 }57 58 }59 60 public function get_content_html() {61 ob_start();62 if (method_exists($this, 'get_additional_content')){63 $additional_content_checked = $this->get_additional_content();64 } else {65 $additional_content_checked = false;66 }67 wc_get_template( $this->template_html, array(68 'email_heading' => apply_filters('marketking_requires_approval_email_heading', $this->get_heading(), $this->user_login),69 'additional_content' => $additional_content_checked,70 'user_login' => $this->user_login,71 'email' => $this,72 ), $this->template_base, $this->template_base );73 return ob_get_clean();74 }75 76 77 public function get_content_plain() {78 ob_start();79 if (method_exists($this, 'get_additional_content')){80 $additional_content_checked = $this->get_additional_content();81 } else {82 $additional_content_checked = false;83 }84 wc_get_template( $this->template_plain, array(85 'email_heading' => $this->get_heading(),86 'additional_content' => $additional_content_checked,87 'user_login' => $this->user_login,88 'email' => $this,89 ), $this->template_base, $this->template_base );90 return ob_get_clean();91 }92 93 public function init_form_fields() {94 95 $this->form_fields = array(96 'enabled' => array(97 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ),98 'type' => 'checkbox',99 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ),100 'default' => 'yes',101 ),102 'recipient' => array(103 'title' => esc_html__('Recipient(s)','marketking-multivendor-marketplace-for-woocommerce'),104 'type' => 'text',105 'description' => esc_html__('Enter recipients (comma separated) for this email. Defaults to','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', esc_attr( get_option( 'admin_email' ) ) ),106 'placeholder' => '',107 'default' => ''108 ),109 'subject' => array(110 'title' => 'Subject',111 'type' => 'text',112 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ),113 'placeholder' => '',114 'default' => ''115 ),116 'heading' => array(117 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'),118 'type' => 'text',119 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ),120 'placeholder' => '',121 'default' => ''122 ),123 'email_type' => array(124 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'),125 'type' => 'select',126 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'),127 'default' => 'html',128 'class' => 'email_type',129 'options' => array(130 'plain' => 'Plain text',131 'html' => 'HTML', 'woocommerce',132 'multipart' => 'Multipart', 'woocommerce',133 )134 ),135 'additional_content' => array(136 'title' => esc_html__( 'Additional content', 'woocommerce' ),137 'description' => esc_html__( 'Text to appear below the main email content.', 'woocommerce' ),138 'css' => 'width:400px; height: 75px;',139 'placeholder' => esc_html__( 'N/A', 'woocommerce' ),140 'type' => 'textarea',141 'default' => '',142 'desc_tip' => true,143 ),144 );145 }146 147 }148 151 return new Marketking_New_Vendor_Requires_Approval_Email(); -
marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-new-verification-email.php
r2863393 r3296674 3 3 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 4 4 5 class Marketking_New_Verification_Email extends WC_Email { 5 if (!class_exists('Marketking_New_Verification_Email')) { 6 class Marketking_New_Verification_Email extends WC_Email { 6 7 7 public function __construct() {8 public function __construct() { 8 9 9 // set ID, this simply needs to be a unique name10 $this->id = 'marketking_new_verification_email';10 // set ID, this simply needs to be a unique name 11 $this->id = 'marketking_new_verification_email'; 11 12 12 // this is the title in WooCommerce Email settings13 $this->title = esc_html__('New Verification Status', 'marketking-multivendor-marketplace-for-woocommerce');13 // this is the title in WooCommerce Email settings 14 $this->title = esc_html__('New Verification Status', 'marketking-multivendor-marketplace-for-woocommerce'); 14 15 15 // this is the description in WooCommerce email settings16 $this->description = esc_html__('This email is sent when a vendor verification request is approved or rejected (marketking)', 'marketking-multivendor-marketplace-for-woocommerce');16 // this is the description in WooCommerce email settings 17 $this->description = esc_html__('This email is sent when a vendor verification request is approved or rejected (marketking)', 'marketking-multivendor-marketplace-for-woocommerce'); 17 18 18 // these are the default heading and subject lines that can be overridden using the settings19 $this->heading = esc_html__('New Verification', 'marketking-multivendor-marketplace-for-woocommerce');20 $this->subject = esc_html__('New Verification', 'marketking-multivendor-marketplace-for-woocommerce');19 // these are the default heading and subject lines that can be overridden using the settings 20 $this->heading = esc_html__('New Verification', 'marketking-multivendor-marketplace-for-woocommerce'); 21 $this->subject = esc_html__('New Verification', 'marketking-multivendor-marketplace-for-woocommerce'); 21 22 22 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/';23 $this->template_html = 'new-verification-email-template.php';24 $this->template_plain = 'plain-new-verification-email-template.php';25 26 // Call parent constructor to load any other defaults not explicity defined here27 parent::__construct();23 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/'; 24 $this->template_html = 'new-verification-email-template.php'; 25 $this->template_plain = 'plain-new-verification-email-template.php'; 26 27 // Call parent constructor to load any other defaults not explicity defined here 28 parent::__construct(); 28 29 29 add_action( 'marketking_new_verification_notification', array( $this, 'trigger'), 10, 4 ); 30 add_action( 'marketking_new_verification_notification', array( $this, 'trigger'), 10, 4 ); 31 32 } 33 34 public function trigger($email_address, $status, $comment, $vitem) { 35 36 $this->recipient = $email_address; 37 $this->status = $status; 38 $this->comment = $comment; 39 $this->vitem = $vitem; 40 41 if ( ! $this->is_enabled() || ! $this->get_recipient() ){ 42 return; 43 } 44 45 marketking()->switch_to_user_locale($email_address); 46 47 do_action('wpml_switch_language_for_email', $email_address); 48 $this->heading = esc_html__('New Verification Status', 'marketking-multivendor-marketplace-for-woocommerce'); 49 $this->subject = esc_html__('New Verification Status', 'marketking-multivendor-marketplace-for-woocommerce'); 50 51 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() ); 52 do_action('wpml_restore_language_from_email'); 53 54 marketking()->restore_locale(); 55 56 } 57 58 public function get_content_html() { 59 ob_start(); 60 if (method_exists($this, 'get_additional_content')){ 61 $additional_content_checked = $this->get_additional_content(); 62 } else { 63 $additional_content_checked = false; 64 } 65 wc_get_template( $this->template_html, array( 66 'email_heading' => $this->get_heading(), 67 'additional_content' => $additional_content_checked, 68 'status' => $this->status, 69 'comment' => $this->comment, 70 'vitem' => $this->vitem, 71 'email' => $this, 72 ), $this->template_base, $this->template_base ); 73 return ob_get_clean(); 74 } 75 76 77 public function get_content_plain() { 78 ob_start(); 79 if (method_exists($this, 'get_additional_content')){ 80 $additional_content_checked = $this->get_additional_content(); 81 } else { 82 $additional_content_checked = false; 83 } 84 wc_get_template( $this->template_plain, array( 85 'email_heading' => $this->get_heading(), 86 'additional_content' => $additional_content_checked, 87 'status' => $this->status, 88 'comment' => $this->comment, 89 'vitem' => $this->vitem, 90 'email' => $this, 91 ), $this->template_base, $this->template_base ); 92 return ob_get_clean(); 93 } 94 95 public function init_form_fields() { 96 97 $this->form_fields = array( 98 'enabled' => array( 99 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ), 100 'type' => 'checkbox', 101 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ), 102 'default' => 'yes', 103 ), 104 'subject' => array( 105 'title' => 'Subject', 106 'type' => 'text', 107 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ), 108 'placeholder' => '', 109 'default' => '' 110 ), 111 'heading' => array( 112 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'), 113 'type' => 'text', 114 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ), 115 'placeholder' => '', 116 'default' => '' 117 ), 118 'email_type' => array( 119 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'), 120 'type' => 'select', 121 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'), 122 'default' => 'html', 123 'class' => 'email_type', 124 'options' => array( 125 'plain' => 'Plain text', 126 'html' => 'HTML', 'woocommerce', 127 'multipart' => 'Multipart', 'woocommerce', 128 ) 129 ) 130 ); 131 } 30 132 31 133 } 134 } 32 135 33 public function trigger($email_address, $status, $comment, $vitem) {34 35 $this->recipient = $email_address;36 $this->status = $status;37 $this->comment = $comment;38 $this->vitem = $vitem;39 40 if ( ! $this->is_enabled() || ! $this->get_recipient() ){41 return;42 }43 44 marketking()->switch_to_user_locale($email_address);45 46 do_action('wpml_switch_language_for_email', $email_address);47 $this->heading = esc_html__('New Verification Status', 'marketking-multivendor-marketplace-for-woocommerce');48 $this->subject = esc_html__('New Verification Status', 'marketking-multivendor-marketplace-for-woocommerce');49 50 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );51 do_action('wpml_restore_language_from_email');52 53 marketking()->restore_locale();54 55 }56 57 public function get_content_html() {58 ob_start();59 if (method_exists($this, 'get_additional_content')){60 $additional_content_checked = $this->get_additional_content();61 } else {62 $additional_content_checked = false;63 }64 wc_get_template( $this->template_html, array(65 'email_heading' => $this->get_heading(),66 'additional_content' => $additional_content_checked,67 'status' => $this->status,68 'comment' => $this->comment,69 'vitem' => $this->vitem,70 'email' => $this,71 ), $this->template_base, $this->template_base );72 return ob_get_clean();73 }74 75 76 public function get_content_plain() {77 ob_start();78 if (method_exists($this, 'get_additional_content')){79 $additional_content_checked = $this->get_additional_content();80 } else {81 $additional_content_checked = false;82 }83 wc_get_template( $this->template_plain, array(84 'email_heading' => $this->get_heading(),85 'additional_content' => $additional_content_checked,86 'status' => $this->status,87 'comment' => $this->comment,88 'vitem' => $this->vitem,89 'email' => $this,90 ), $this->template_base, $this->template_base );91 return ob_get_clean();92 }93 94 public function init_form_fields() {95 96 $this->form_fields = array(97 'enabled' => array(98 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ),99 'type' => 'checkbox',100 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ),101 'default' => 'yes',102 ),103 'subject' => array(104 'title' => 'Subject',105 'type' => 'text',106 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ),107 'placeholder' => '',108 'default' => ''109 ),110 'heading' => array(111 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'),112 'type' => 'text',113 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ),114 'placeholder' => '',115 'default' => ''116 ),117 'email_type' => array(118 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'),119 'type' => 'select',120 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'),121 'default' => 'html',122 'class' => 'email_type',123 'options' => array(124 'plain' => 'Plain text',125 'html' => 'HTML', 'woocommerce',126 'multipart' => 'Multipart', 'woocommerce',127 )128 )129 );130 }131 132 }133 136 return new Marketking_New_Verification_Email(); -
marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-product-has-been-approved-email.php
r2863393 r3296674 3 3 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 4 4 5 class Marketking_Product_Has_Been_Approved_Email extends WC_Email { 5 if (!class_exists('Marketking_Product_Has_Been_Approved_Email')) { 6 class Marketking_Product_Has_Been_Approved_Email extends WC_Email { 6 7 7 public function __construct() {8 public function __construct() { 8 9 9 // set ID, this simply needs to be a unique name10 $this->id = 'marketking_product_has_been_approved_email';10 // set ID, this simply needs to be a unique name 11 $this->id = 'marketking_product_has_been_approved_email'; 11 12 12 // this is the title in WooCommerce Email settings13 $this->title = esc_html__('Your product has been approved', 'marketking-multivendor-marketplace-for-woocommerce');13 // this is the title in WooCommerce Email settings 14 $this->title = esc_html__('Your product has been approved', 'marketking-multivendor-marketplace-for-woocommerce'); 14 15 15 // this is the description in WooCommerce email settings16 $this->description = esc_html__('This email is sent to the vendor when the admin approves one of their products', 'marketking-multivendor-marketplace-for-woocommerce');16 // this is the description in WooCommerce email settings 17 $this->description = esc_html__('This email is sent to the vendor when the admin approves one of their products', 'marketking-multivendor-marketplace-for-woocommerce'); 17 18 18 // these are the default heading and subject lines that can be overridden using the settings19 $this->heading = esc_html__('Your product has been approved', 'marketking-multivendor-marketplace-for-woocommerce');20 $this->subject = esc_html__('Your product has been approved', 'marketking-multivendor-marketplace-for-woocommerce');19 // these are the default heading and subject lines that can be overridden using the settings 20 $this->heading = esc_html__('Your product has been approved', 'marketking-multivendor-marketplace-for-woocommerce'); 21 $this->subject = esc_html__('Your product has been approved', 'marketking-multivendor-marketplace-for-woocommerce'); 21 22 22 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/';23 $this->template_html = 'product-has-been-approved-email-template.php';24 $this->template_plain = 'plain-product-has-been-approved-email-template.php';25 26 // Call parent constructor to load any other defaults not explicity defined here27 parent::__construct();23 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/'; 24 $this->template_html = 'product-has-been-approved-email-template.php'; 25 $this->template_plain = 'plain-product-has-been-approved-email-template.php'; 26 27 // Call parent constructor to load any other defaults not explicity defined here 28 parent::__construct(); 28 29 29 add_action( 'marketking_product_has_been_approved_notification', array( $this, 'trigger'), 10, 1 ); 30 add_action( 'marketking_product_has_been_approved_notification', array( $this, 'trigger'), 10, 1 ); 31 32 } 33 34 public function trigger($product_id) { 35 36 37 $vendor = marketking()->get_product_vendor($product_id); 38 $vendor_user = new WP_User(intval($vendor)); 39 $email_address = $vendor_user->user_email; 40 41 $this->recipient = $email_address; 42 43 if ( ! $this->is_enabled() || ! $this->get_recipient() ){ 44 return; 45 } 46 47 marketking()->switch_to_user_locale($email_address); 48 49 $this->product_id = $product_id; 50 51 $this->subject = apply_filters('marketking_product_has_been_approved_email_heading', $this->subject); 52 53 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() ); 54 55 marketking()->restore_locale(); 56 57 } 58 59 public function get_content_html() { 60 ob_start(); 61 if (method_exists($this, 'get_additional_content')){ 62 $additional_content_checked = $this->get_additional_content(); 63 } else { 64 $additional_content_checked = false; 65 } 66 wc_get_template( $this->template_html, array( 67 'email_heading' => apply_filters('marketking_product_has_been_approved_email_heading', $this->get_heading()), 68 'additional_content' => $additional_content_checked, 69 'product_id' => $this->product_id, 70 'email' => $this, 71 ), $this->template_base, $this->template_base ); 72 return ob_get_clean(); 73 } 74 75 76 public function get_content_plain() { 77 ob_start(); 78 if (method_exists($this, 'get_additional_content')){ 79 $additional_content_checked = $this->get_additional_content(); 80 } else { 81 $additional_content_checked = false; 82 } 83 wc_get_template( $this->template_plain, array( 84 'email_heading' => $this->get_heading(), 85 'additional_content' => $additional_content_checked, 86 'product_id' => $this->product_id, 87 'email' => $this, 88 ), $this->template_base, $this->template_base ); 89 return ob_get_clean(); 90 } 91 92 public function init_form_fields() { 93 94 $this->form_fields = array( 95 'enabled' => array( 96 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ), 97 'type' => 'checkbox', 98 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ), 99 'default' => 'yes', 100 ), 101 'subject' => array( 102 'title' => 'Subject', 103 'type' => 'text', 104 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ), 105 'placeholder' => '', 106 'default' => '' 107 ), 108 'heading' => array( 109 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'), 110 'type' => 'text', 111 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ), 112 'placeholder' => '', 113 'default' => '' 114 ), 115 'email_type' => array( 116 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'), 117 'type' => 'select', 118 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'), 119 'default' => 'html', 120 'class' => 'email_type', 121 'options' => array( 122 'plain' => 'Plain text', 123 'html' => 'HTML', 'woocommerce', 124 'multipart' => 'Multipart', 'woocommerce', 125 ) 126 ), 127 'additional_content' => array( 128 'title' => esc_html__( 'Additional content', 'woocommerce' ), 129 'description' => esc_html__( 'Text to appear below the main email content.', 'woocommerce' ), 130 'css' => 'width:400px; height: 75px;', 131 'placeholder' => esc_html__( 'N/A', 'woocommerce' ), 132 'type' => 'textarea', 133 'default' => '', 134 'desc_tip' => true, 135 ), 136 ); 137 } 30 138 31 139 } 140 } 32 141 33 public function trigger($product_id) {34 35 36 $vendor = marketking()->get_product_vendor($product_id);37 $vendor_user = new WP_User(intval($vendor));38 $email_address = $vendor_user->user_email;39 40 $this->recipient = $email_address;41 42 if ( ! $this->is_enabled() || ! $this->get_recipient() ){43 return;44 }45 46 marketking()->switch_to_user_locale($email_address);47 48 $this->product_id = $product_id;49 50 $this->subject = apply_filters('marketking_product_has_been_approved_email_heading', $this->subject);51 52 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );53 54 marketking()->restore_locale();55 56 }57 58 public function get_content_html() {59 ob_start();60 if (method_exists($this, 'get_additional_content')){61 $additional_content_checked = $this->get_additional_content();62 } else {63 $additional_content_checked = false;64 }65 wc_get_template( $this->template_html, array(66 'email_heading' => apply_filters('marketking_product_has_been_approved_email_heading', $this->get_heading()),67 'additional_content' => $additional_content_checked,68 'product_id' => $this->product_id,69 'email' => $this,70 ), $this->template_base, $this->template_base );71 return ob_get_clean();72 }73 74 75 public function get_content_plain() {76 ob_start();77 if (method_exists($this, 'get_additional_content')){78 $additional_content_checked = $this->get_additional_content();79 } else {80 $additional_content_checked = false;81 }82 wc_get_template( $this->template_plain, array(83 'email_heading' => $this->get_heading(),84 'additional_content' => $additional_content_checked,85 'product_id' => $this->product_id,86 'email' => $this,87 ), $this->template_base, $this->template_base );88 return ob_get_clean();89 }90 91 public function init_form_fields() {92 93 $this->form_fields = array(94 'enabled' => array(95 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ),96 'type' => 'checkbox',97 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ),98 'default' => 'yes',99 ),100 'subject' => array(101 'title' => 'Subject',102 'type' => 'text',103 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ),104 'placeholder' => '',105 'default' => ''106 ),107 'heading' => array(108 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'),109 'type' => 'text',110 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ),111 'placeholder' => '',112 'default' => ''113 ),114 'email_type' => array(115 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'),116 'type' => 'select',117 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'),118 'default' => 'html',119 'class' => 'email_type',120 'options' => array(121 'plain' => 'Plain text',122 'html' => 'HTML', 'woocommerce',123 'multipart' => 'Multipart', 'woocommerce',124 )125 ),126 'additional_content' => array(127 'title' => esc_html__( 'Additional content', 'woocommerce' ),128 'description' => esc_html__( 'Text to appear below the main email content.', 'woocommerce' ),129 'css' => 'width:400px; height: 75px;',130 'placeholder' => esc_html__( 'N/A', 'woocommerce' ),131 'type' => 'textarea',132 'default' => '',133 'desc_tip' => true,134 ),135 );136 }137 138 }139 142 return new Marketking_Product_Has_Been_Approved_Email(); -
marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-your-account-approved-email.php
r2863393 r3296674 3 3 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 4 4 5 class Marketking_Your_Account_Approved_Email extends WC_Email { 5 if (!class_exists('Marketking_Your_Account_Approved_Email')) { 6 class Marketking_Your_Account_Approved_Email extends WC_Email { 6 7 7 public function __construct() {8 public function __construct() { 8 9 9 // set ID, this simply needs to be a unique name10 $this->id = 'marketking_your_account_approved_email';10 // set ID, this simply needs to be a unique name 11 $this->id = 'marketking_your_account_approved_email'; 11 12 12 // this is the title in WooCommerce Email settings13 $this->title = esc_html__('Vendor account approved', 'marketking-multivendor-marketplace-for-woocommerce');13 // this is the title in WooCommerce Email settings 14 $this->title = esc_html__('Vendor account approved', 'marketking-multivendor-marketplace-for-woocommerce'); 14 15 15 16 $this->customer_email = true;16 17 $this->customer_email = true; 17 18 18 // this is the description in WooCommerce email settings19 $this->description = esc_html__('This email notifies the vendor when their account has been manually approved', 'marketking-multivendor-marketplace-for-woocommerce');19 // this is the description in WooCommerce email settings 20 $this->description = esc_html__('This email notifies the vendor when their account has been manually approved', 'marketking-multivendor-marketplace-for-woocommerce'); 20 21 21 // these are the default heading and subject lines that can be overridden using the settings22 $this->heading = esc_html__('Your account has been approved', 'marketking-multivendor-marketplace-for-woocommerce');23 $this->subject = esc_html__('Your vendor account has been approved', 'marketking-multivendor-marketplace-for-woocommerce');22 // these are the default heading and subject lines that can be overridden using the settings 23 $this->heading = esc_html__('Your account has been approved', 'marketking-multivendor-marketplace-for-woocommerce'); 24 $this->subject = esc_html__('Your vendor account has been approved', 'marketking-multivendor-marketplace-for-woocommerce'); 24 25 25 26 26 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/';27 $this->template_html = 'your-account-approved-email-template.php';28 $this->template_plain = 'plain-your-account-approved-email-template.php';29 30 // Call parent constructor to load any other defaults not explicity defined here31 parent::__construct();27 $this->template_base = MARKETKINGCORE_DIR . 'public/emails/templates/'; 28 $this->template_html = 'your-account-approved-email-template.php'; 29 $this->template_plain = 'plain-your-account-approved-email-template.php'; 30 31 // Call parent constructor to load any other defaults not explicity defined here 32 parent::__construct(); 32 33 33 add_action( 'marketking_account_approved_finish_notification', array($this, 'trigger'), 10, 1); 34 add_action( 'marketking_account_approved_finish_notification', array($this, 'trigger'), 10, 1); 35 36 } 37 38 public function trigger($email_address) { 39 40 $this->recipient = $email_address; 41 42 if ( ! $this->is_enabled() || ! $this->get_recipient() ){ 43 return; 44 } 45 46 marketking()->switch_to_user_locale($email_address); 47 48 do_action('wpml_switch_language_for_email', $email_address); 49 50 $this->heading = esc_html__('Your account has been approved', 'marketking-multivendor-marketplace-for-woocommerce'); 51 $this->subject = esc_html__('Your vendor account has been approved', 'marketking-multivendor-marketplace-for-woocommerce'); 52 53 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() ); 54 do_action('wpml_restore_language_from_email'); 55 56 marketking()->restore_locale(); 57 58 } 59 60 public function get_content_html() { 61 ob_start(); 62 if (method_exists($this, 'get_additional_content')){ 63 $additional_content_checked = $this->get_additional_content(); 64 } else { 65 $additional_content_checked = false; 66 } 67 wc_get_template( $this->template_html, array( 68 'email_heading' => $this->get_heading(), 69 'additional_content' => $additional_content_checked, 70 'email' => $this, 71 ), $this->template_base, $this->template_base ); 72 return ob_get_clean(); 73 } 74 75 76 public function get_default_additional_content() { 77 return ''; 78 } 79 80 81 public function get_content_plain() { 82 ob_start(); 83 if (method_exists($this, 'get_additional_content')){ 84 $additional_content_checked = $this->get_additional_content(); 85 } else { 86 $additional_content_checked = false; 87 } 88 wc_get_template( $this->template_plain, array( 89 'email_heading' => $this->get_heading(), 90 'additional_content' => $additional_content_checked, 91 'email' => $this, 92 ), $this->template_base, $this->template_base ); 93 return ob_get_clean(); 94 } 95 96 public function init_form_fields() { 97 98 $this->form_fields = array( 99 'enabled' => array( 100 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ), 101 'type' => 'checkbox', 102 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ), 103 'default' => 'yes', 104 ), 105 'subject' => array( 106 'title' => 'Subject', 107 'type' => 'text', 108 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ), 109 'placeholder' => '', 110 'default' => '' 111 ), 112 'heading' => array( 113 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'), 114 'type' => 'text', 115 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ), 116 'placeholder' => '', 117 'default' => '' 118 ), 119 'email_type' => array( 120 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'), 121 'type' => 'select', 122 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'), 123 'default' => 'html', 124 'class' => 'email_type', 125 'options' => array( 126 'plain' => 'Plain text', 127 'html' => 'HTML', 'woocommerce', 128 'multipart' => 'Multipart', 'woocommerce', 129 ) 130 ), 131 'additional_content' => array( 132 'title' => esc_html__( 'Additional content', 'woocommerce' ), 133 'description' => esc_html__( 'Text to appear below the main email content.', 'woocommerce' ), 134 'css' => 'width:400px; height: 75px;', 135 'placeholder' => esc_html__( 'N/A', 'woocommerce' ), 136 'type' => 'textarea', 137 'default' => $this->get_default_additional_content(), 138 'desc_tip' => true, 139 ), 140 ); 141 } 34 142 35 143 } 36 37 public function trigger($email_address) {38 39 $this->recipient = $email_address;40 41 if ( ! $this->is_enabled() || ! $this->get_recipient() ){42 return;43 }44 45 marketking()->switch_to_user_locale($email_address);46 47 do_action('wpml_switch_language_for_email', $email_address);48 49 $this->heading = esc_html__('Your account has been approved', 'marketking-multivendor-marketplace-for-woocommerce');50 $this->subject = esc_html__('Your vendor account has been approved', 'marketking-multivendor-marketplace-for-woocommerce');51 52 $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );53 do_action('wpml_restore_language_from_email');54 55 marketking()->restore_locale();56 57 }58 59 public function get_content_html() {60 ob_start();61 if (method_exists($this, 'get_additional_content')){62 $additional_content_checked = $this->get_additional_content();63 } else {64 $additional_content_checked = false;65 }66 wc_get_template( $this->template_html, array(67 'email_heading' => $this->get_heading(),68 'additional_content' => $additional_content_checked,69 'email' => $this,70 ), $this->template_base, $this->template_base );71 return ob_get_clean();72 }73 74 75 public function get_default_additional_content() {76 return '';77 }78 79 80 public function get_content_plain() {81 ob_start();82 if (method_exists($this, 'get_additional_content')){83 $additional_content_checked = $this->get_additional_content();84 } else {85 $additional_content_checked = false;86 }87 wc_get_template( $this->template_plain, array(88 'email_heading' => $this->get_heading(),89 'additional_content' => $additional_content_checked,90 'email' => $this,91 ), $this->template_base, $this->template_base );92 return ob_get_clean();93 }94 95 public function init_form_fields() {96 97 $this->form_fields = array(98 'enabled' => array(99 'title' => esc_html__( 'Enable/Disable', 'marketking-multivendor-marketplace-for-woocommerce' ),100 'type' => 'checkbox',101 'label' => esc_html__( 'Enable this email notification', 'marketking-multivendor-marketplace-for-woocommerce' ),102 'default' => 'yes',103 ),104 'subject' => array(105 'title' => 'Subject',106 'type' => 'text',107 'description' => esc_html__('This controls the email subject line. Leave blank to use the default subject: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->subject ),108 'placeholder' => '',109 'default' => ''110 ),111 'heading' => array(112 'title' => esc_html__('Email Heading','marketking-multivendor-marketplace-for-woocommerce'),113 'type' => 'text',114 'description' => esc_html__('This controls the main heading contained within the email notification. Leave blank to use the default heading: ','marketking-multivendor-marketplace-for-woocommerce').sprintf( '<code>%s</code>.', $this->heading ),115 'placeholder' => '',116 'default' => ''117 ),118 'email_type' => array(119 'title' => esc_html__('Email type','marketking-multivendor-marketplace-for-woocommerce'),120 'type' => 'select',121 'description' => esc_html__('Choose which format of email to send.','marketking-multivendor-marketplace-for-woocommerce'),122 'default' => 'html',123 'class' => 'email_type',124 'options' => array(125 'plain' => 'Plain text',126 'html' => 'HTML', 'woocommerce',127 'multipart' => 'Multipart', 'woocommerce',128 )129 ),130 'additional_content' => array(131 'title' => esc_html__( 'Additional content', 'woocommerce' ),132 'description' => esc_html__( 'Text to appear below the main email content.', 'woocommerce' ),133 'css' => 'width:400px; height: 75px;',134 'placeholder' => esc_html__( 'N/A', 'woocommerce' ),135 'type' => 'textarea',136 'default' => $this->get_default_additional_content(),137 'desc_tip' => true,138 ),139 );140 }141 142 144 } 143 145 return new Marketking_Your_Account_Approved_Email(); -
marketking-multivendor-marketplace-for-woocommerce/trunk/readme.txt
r3269159 r3296674 9 9 Tested up to: 6.8 10 10 Requires PHP: 5.6.20 11 Stable tag: 2.0. 5012 Version: 2.0. 5011 Stable tag: 2.0.70 12 Version: 2.0.70 13 13 License: GPLv2 or later 14 14 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.