Plugin Directory

Changeset 3296674


Ignore:
Timestamp:
05/19/2025 04:42:19 PM (10 months ago)
Author:
webwizardsdev
Message:

2.0.70 commit

Location:
marketking-multivendor-marketplace-for-woocommerce/trunk
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • marketking-multivendor-marketplace-for-woocommerce/trunk/includes/class-marketking-core.php

    r3241511 r3296674  
    683683
    684684            // 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){
    686686
    687687
     
    695695                }
    696696               
    697             }   
     697            //}
    698698        }
    699699       
     
    36723672                    array_push($data['data'], apply_filters('marketking_products_table_ajax_columns', array($col1, $col2, $col3, $col4, $col5, $col6, $col7, $col8, $col9, $col10)));
    36733673                } 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)));
    36753675                }
    36763676
  • marketking-multivendor-marketplace-for-woocommerce/trunk/languages/marketking-multivendor-marketplace-for-woocommerce.pot

    r3241511 r3296674  
    33msgstr ""
    44"Project-Id-Version: MarketKing Core\n"
    5 "POT-Creation-Date: 2025-02-16 20:56+0100\n"
    6 "PO-Revision-Date: 2025-02-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"
    77"Last-Translator: \n"
    88"Language-Team: \n"
     
    234234#: includes/class-marketking-core-activator.php:189
    235235#: public/class-marketking-core-public.php:266
    236 #: public/class-marketking-core-public.php:948
    237 #: public/class-marketking-core-public.php:1745
     236#: public/class-marketking-core-public.php:968
     237#: public/class-marketking-core-public.php:1765
    238238#: public/dashboard/templates/header-bar.php:339
    239239msgid "Vendor"
     
    337337#: admin/class-marketking-core-admin.php:1549
    338338#: admin/class-marketking-core-admin.php:5685
    339 #: public/class-marketking-core-public.php:2464
     339#: public/class-marketking-core-public.php:2484
    340340msgid "Print"
    341341msgstr ""
     
    949949#: admin/class-marketking-core-admin.php:3063
    950950#: includes/class-marketking-core.php:3853 includes/elementor/classes.php:515
    951 #: public/dashboard/marketking-dashboard-login.php:944
     951#: public/dashboard/marketking-dashboard-login.php:1003
    952952#: public/dashboard/products.php:35 public/dashboard/templates/sidebar.php:132
    953953#: public/templates/store-page.php:221
     
    13111311#: admin/class-marketking-core-admin.php:4726
    13121312#: admin/class-marketking-core-admin.php:4733
    1313 #: public/emails/class-marketking-new-message-email.php:19
    13141313#: public/emails/class-marketking-new-message-email.php:20
    1315 #: public/emails/class-marketking-new-message-email.php:48
     1314#: public/emails/class-marketking-new-message-email.php:21
    13161315#: public/emails/class-marketking-new-message-email.php:49
     1316#: public/emails/class-marketking-new-message-email.php:50
    13171317msgid "New message"
    13181318msgstr ""
     
    13291329#: admin/class-marketking-core-admin.php:4744
    13301330#: includes/class-marketking-core.php:4697
    1331 #: public/class-marketking-core-public.php:3051
     1331#: public/class-marketking-core-public.php:3071
    13321332msgid "Inquiry"
    13331333msgstr ""
     
    15791579
    15801580#: admin/class-marketking-core-admin.php:5661
    1581 #: public/class-marketking-core-public.php:3041
     1581#: public/class-marketking-core-public.php:3061
    15821582msgid "This URL is available!"
    15831583msgstr ""
     
    16201620
    16211621#: admin/class-marketking-core-admin.php:5684
    1622 #: public/class-marketking-core-public.php:2476
     1622#: public/class-marketking-core-public.php:2496
    16231623msgid "Are you sure you want to create this shipment?"
    16241624msgstr ""
    16251625
    16261626#: admin/class-marketking-core-admin.php:5686
    1627 #: public/class-marketking-core-public.php:2465
     1627#: public/class-marketking-core-public.php:2485
    16281628msgid "Edit Columns"
    16291629msgstr ""
     
    23142314
    23152315#: admin/class-marketking-core-settings.php:1535
    2316 #: public/dashboard/marketking-dashboard-login.php:1182
     2316#: public/dashboard/marketking-dashboard-login.php:1241
    23172317msgid "Disabled"
    23182318msgstr ""
     
    25392539
    25402540#: includes/class-marketking-core-activator.php:51
    2541 #: public/class-marketking-core-public.php:2725
    2542 #: public/dashboard/marketking-dashboard-login.php:2398
     2541#: public/class-marketking-core-public.php:2745
     2542#: public/dashboard/marketking-dashboard-login.php:2457
    25432543msgid "Become a Vendor"
    25442544msgstr ""
     
    26122612#: includes/class-marketking-core-helper.php:207
    26132613#: includes/elementor/classes.php:853
    2614 #: public/class-marketking-core-public.php:669
     2614#: public/class-marketking-core-public.php:689
    26152615msgid "Vendor Information"
    26162616msgstr ""
     
    26182618#: includes/class-marketking-core-helper.php:213
    26192619#: includes/elementor/classes.php:859
    2620 #: public/class-marketking-core-public.php:680
    2621 #: public/class-marketking-core-public.php:926
     2620#: public/class-marketking-core-public.php:700
     2621#: public/class-marketking-core-public.php:946
    26222622#: public/emails/templates/new-product-requires-approval-email-template.php:23
    26232623#: public/emails/templates/plain-new-product-requires-approval-email-template.php:16
     
    26282628#: includes/class-marketking-core.php:5687 includes/elementor/classes.php:797
    26292629#: includes/elementor/classes.php:887
    2630 #: public/class-marketking-core-public.php:700
     2630#: public/class-marketking-core-public.php:720
    26312631#: public/templates/store-page.php:363 public/templates/stores-list.php:144
    26322632msgid "review"
     
    26362636#: includes/class-marketking-core.php:5689 includes/elementor/classes.php:799
    26372637#: includes/elementor/classes.php:889
    2638 #: public/class-marketking-core-public.php:702
     2638#: public/class-marketking-core-public.php:722
    26392639#: public/templates/store-page.php:365 public/templates/stores-list.php:146
    26402640msgid "reviews"
     
    26442644#: includes/class-marketking-core.php:5691 includes/elementor/classes.php:801
    26452645#: includes/elementor/classes.php:891
    2646 #: public/class-marketking-core-public.php:704
     2646#: public/class-marketking-core-public.php:724
    26472647#: public/templates/store-page.php:367 public/templates/stores-list.php:148
    26482648msgid "Rating:"
     
    26522652#: includes/class-marketking-core.php:5691 includes/elementor/classes.php:801
    26532653#: includes/elementor/classes.php:891
    2654 #: public/class-marketking-core-public.php:704
     2654#: public/class-marketking-core-public.php:724
    26552655#: public/templates/store-page.php:367
    26562656msgid "rating from"
     
    26592659#: includes/class-marketking-core-helper.php:257
    26602660#: includes/elementor/classes.php:902
    2661 #: public/class-marketking-core-public.php:710
     2661#: public/class-marketking-core-public.php:730
    26622662msgid "Company:"
    26632663msgstr ""
     
    26752675#: includes/class-marketking-core-helper.php:323
    26762676#: includes/elementor/classes.php:966
    2677 #: public/class-marketking-core-public.php:727
     2677#: public/class-marketking-core-public.php:747
    26782678#: public/dashboard/manage-order.php:270
    26792679msgid "Phone:"
     
    26822682#: includes/class-marketking-core-helper.php:328
    26832683#: includes/elementor/classes.php:972
    2684 #: public/class-marketking-core-public.php:730
     2684#: public/class-marketking-core-public.php:750
    26852685#: public/dashboard/manage-order.php:265
    26862686msgid "Email:"
     
    27332733#: includes/class-marketking-core.php:1345
    27342734#: includes/class-marketking-core.php:1366
    2735 #: public/dashboard/marketking-dashboard-login.php:935
     2735#: public/dashboard/marketking-dashboard-login.php:994
    27362736#: public/dashboard/templates/sidebar.php:193
    27372737msgid "Bookings"
     
    30283028
    30293029#: includes/class-marketking-core.php:3613
    3030 #: public/class-marketking-core-public.php:2469
     3030#: public/class-marketking-core-public.php:2489
    30313031#: public/dashboard/dashboard-content.php:166 public/dashboard/products.php:59
    30323032#: public/dashboard/products.php:436
     
    30713071
    30723072#: includes/class-marketking-core.php:3997
    3073 #: public/class-marketking-core-public.php:2468
     3073#: public/class-marketking-core-public.php:2488
    30743074#: public/dashboard/dashboard-content.php:160
    30753075#: public/dashboard/dashboard-content.php:417
     
    30863086
    30873087#: includes/class-marketking-core.php:4003
    3088 #: public/class-marketking-core-public.php:2470
     3088#: public/class-marketking-core-public.php:2490
    30893089#: public/dashboard/dashboard-content.php:172
    30903090#: public/dashboard/manage-order.php:211 public/dashboard/orders.php:51
     
    31463146
    31473147#: includes/class-marketking-core.php:4488
    3148 #: public/class-marketking-core-public.php:3052
     3148#: public/class-marketking-core-public.php:3072
    31493149msgid "Support Request"
    31503150msgstr ""
     
    32403240
    32413241#: includes/class-marketking-core.php:5770
    3242 #: public/class-marketking-core-public.php:974
     3242#: public/class-marketking-core-public.php:994
    32433243msgid "Go to the Vendor Dashboard"
    32443244msgstr ""
     
    32783278
    32793279#: includes/class-marketking-core.php:5845
    3280 #: public/dashboard/marketking-dashboard-login.php:2368
     3280#: public/dashboard/marketking-dashboard-login.php:2427
    32813281msgid "Password"
    32823282msgstr ""
     
    34263426
    34273427#: includes/elementor/classes.php:519
    3428 #: public/class-marketking-core-public.php:745
     3428#: public/class-marketking-core-public.php:765
    34293429#: public/templates/store-page.php:225
    34303430msgid "Vendor Details"
     
    34483448
    34493449#: includes/elementor/classes.php:645
    3450 #: public/class-marketking-core-public.php:3060
     3450#: public/class-marketking-core-public.php:3080
    34513451#: public/templates/store-page.php:274 public/templates/stores-list.php:94
    34523452#: public/templates/stores-list.php:196 public/templates/stores-list.php:261
     
    34553455
    34563456#: includes/elementor/classes.php:647
    3457 #: public/class-marketking-core-public.php:3061
     3457#: public/class-marketking-core-public.php:3081
    34583458#: public/templates/store-page.php:276 public/templates/stores-list.php:198
    34593459msgid "Following"
     
    34753475#: public/class-marketking-core-public.php:220
    34763476#: public/class-marketking-core-public.php:230
    3477 msgid "Your cannot purchase your own products!"
     3477msgid "You cannot purchase your own products!"
    34783478msgstr ""
    34793479
     
    34983498msgstr ""
    34993499
    3500 #: public/class-marketking-core-public.php:570
     3500#: public/class-marketking-core-public.php:590
    35013501msgid "This vendor doesn't have any products yet..."
    35023502msgstr ""
    35033503
    3504 #: public/class-marketking-core-public.php:756
     3504#: public/class-marketking-core-public.php:776
    35053505msgid "Product Inquiry"
    35063506msgstr ""
    35073507
    3508 #: public/class-marketking-core-public.php:770
     3508#: public/class-marketking-core-public.php:790
    35093509msgid "Product Support"
    35103510msgstr ""
    35113511
    3512 #: public/class-marketking-core-public.php:784
     3512#: public/class-marketking-core-public.php:804
    35133513msgid "Other Offers"
    35143514msgstr ""
    35153515
    3516 #: public/class-marketking-core-public.php:964
     3516#: public/class-marketking-core-public.php:984
    35173517msgid "We are currently reviewing your vendor application and it is pending."
    35183518msgstr ""
    35193519
    3520 #: public/class-marketking-core-public.php:994
     3520#: public/class-marketking-core-public.php:1014
    35213521msgid "Your account is waiting for approval. Until approved, you cannot login."
    35223522msgstr ""
    35233523
    3524 #: public/class-marketking-core-public.php:1010
     3524#: public/class-marketking-core-public.php:1030
    35253525msgid ""
    35263526"Before you can login, your account requires manual approval. Our team will "
     
    35283528msgstr ""
    35293529
    3530 #: public/class-marketking-core-public.php:1041
     3530#: public/class-marketking-core-public.php:1061
    35313531msgid ""
    35323532"Your account has been succesfully created. We are now reviewing your "
     
    35343534msgstr ""
    35353535
    3536 #: public/class-marketking-core-public.php:1048
     3536#: public/class-marketking-core-public.php:1068
    35373537msgid ""
    35383538"Thank you for registering. Your vendor account requires manual approval. "
     
    35403540msgstr ""
    35413541
    3542 #: public/class-marketking-core-public.php:1552
     3542#: public/class-marketking-core-public.php:1572
    35433543#: public/dashboard/templates/header-bar.php:156
    35443544msgid "Recent Messages"
    35453545msgstr ""
    35463546
    3547 #: public/class-marketking-core-public.php:1655
    3548 #: public/class-marketking-core-public.php:1715
     3547#: public/class-marketking-core-public.php:1675
     3548#: public/class-marketking-core-public.php:1735
    35493549#: public/dashboard/templates/header-bar.php:258
    35503550#: public/dashboard/templates/header-bar.php:315
     
    35523552msgstr ""
    35533553
    3554 #: public/class-marketking-core-public.php:1679
     3554#: public/class-marketking-core-public.php:1699
    35553555#: public/dashboard/templates/header-bar.php:279
    35563556msgid "Unread Announcements"
    35573557msgstr ""
    35583558
    3559 #: public/class-marketking-core-public.php:1791
     3559#: public/class-marketking-core-public.php:1811
    35603560#: public/dashboard/templates/header-bar.php:384
    35613561msgid "Go to My Store"
    35623562msgstr ""
    35633563
    3564 #: public/class-marketking-core-public.php:1800
     3564#: public/class-marketking-core-public.php:1820
    35653565#: public/dashboard/templates/header-bar.php:393
    35663566msgid "Store Settings"
    35673567msgstr ""
    35683568
    3569 #: public/class-marketking-core-public.php:1809
     3569#: public/class-marketking-core-public.php:1829
    35703570#: public/dashboard/templates/header-bar.php:402
    35713571msgid "Sign out"
    35723572msgstr ""
    35733573
    3574 #: public/class-marketking-core-public.php:1913
     3574#: public/class-marketking-core-public.php:1933
    35753575msgid "WooCommerce"
    35763576msgstr ""
    35773577
    3578 #: public/class-marketking-core-public.php:1975
    3579 #: public/class-marketking-core-public.php:2245
     3578#: public/class-marketking-core-public.php:1995
     3579#: public/class-marketking-core-public.php:2265
    35803580msgctxt "enhanced select"
    35813581msgid "No matches found"
    35823582msgstr ""
    35833583
    3584 #: public/class-marketking-core-public.php:1976
    3585 #: public/class-marketking-core-public.php:2246
     3584#: public/class-marketking-core-public.php:1996
     3585#: public/class-marketking-core-public.php:2266
    35863586msgctxt "enhanced select"
    35873587msgid "Loading failed"
    35883588msgstr ""
    35893589
    3590 #: public/class-marketking-core-public.php:1977
    3591 #: public/class-marketking-core-public.php:2247
     3590#: public/class-marketking-core-public.php:1997
     3591#: public/class-marketking-core-public.php:2267
    35923592msgctxt "enhanced select"
    35933593msgid "Please enter 1 or more characters"
    35943594msgstr ""
    35953595
    3596 #: public/class-marketking-core-public.php:1978
    3597 #: public/class-marketking-core-public.php:2248
     3596#: public/class-marketking-core-public.php:1998
     3597#: public/class-marketking-core-public.php:2268
    35983598msgctxt "enhanced select"
    35993599msgid "Please enter %qty% or more characters"
    36003600msgstr ""
    36013601
    3602 #: public/class-marketking-core-public.php:1979
    3603 #: public/class-marketking-core-public.php:2249
     3602#: public/class-marketking-core-public.php:1999
     3603#: public/class-marketking-core-public.php:2269
    36043604msgctxt "enhanced select"
    36053605msgid "Please delete 1 character"
    36063606msgstr ""
    36073607
    3608 #: public/class-marketking-core-public.php:1980
    3609 #: public/class-marketking-core-public.php:2250
     3608#: public/class-marketking-core-public.php:2000
     3609#: public/class-marketking-core-public.php:2270
    36103610msgctxt "enhanced select"
    36113611msgid "Please delete %qty% characters"
    36123612msgstr ""
    36133613
    3614 #: public/class-marketking-core-public.php:1981
    3615 #: public/class-marketking-core-public.php:2251
     3614#: public/class-marketking-core-public.php:2001
     3615#: public/class-marketking-core-public.php:2271
    36163616msgctxt "enhanced select"
    36173617msgid "You can only select 1 item"
    36183618msgstr ""
    36193619
    3620 #: public/class-marketking-core-public.php:1982
    3621 #: public/class-marketking-core-public.php:2252
     3620#: public/class-marketking-core-public.php:2002
     3621#: public/class-marketking-core-public.php:2272
    36223622msgctxt "enhanced select"
    36233623msgid "You can only select %qty% items"
    36243624msgstr ""
    36253625
    3626 #: public/class-marketking-core-public.php:1983
    3627 #: public/class-marketking-core-public.php:2253
     3626#: public/class-marketking-core-public.php:2003
     3627#: public/class-marketking-core-public.php:2273
    36283628msgctxt "enhanced select"
    36293629msgid "Loading more results…"
    36303630msgstr ""
    36313631
    3632 #: public/class-marketking-core-public.php:1984
    3633 #: public/class-marketking-core-public.php:2254
     3632#: public/class-marketking-core-public.php:2004
     3633#: public/class-marketking-core-public.php:2274
    36343634msgctxt "enhanced select"
    36353635msgid "Searching…"
     
    36373637
    36383638#. translators: %s: decimal
    3639 #: public/class-marketking-core-public.php:2026
     3639#: public/class-marketking-core-public.php:2046
    36403640#, php-format
    36413641msgid "Please enter with one decimal point (%s) without thousand separators."
     
    36433643
    36443644#. translators: %s: price decimal separator
    3645 #: public/class-marketking-core-public.php:2028
     3645#: public/class-marketking-core-public.php:2048
    36463646#, php-format
    36473647msgid ""
     
    36503650msgstr ""
    36513651
    3652 #: public/class-marketking-core-public.php:2029
     3652#: public/class-marketking-core-public.php:2049
    36533653msgid "Please enter in country code with two capital letters."
    36543654msgstr ""
    36553655
    3656 #: public/class-marketking-core-public.php:2030
     3656#: public/class-marketking-core-public.php:2050
    36573657msgid "Please enter in a value less than the regular price."
    36583658msgstr ""
    36593659
    3660 #: public/class-marketking-core-public.php:2031
     3660#: public/class-marketking-core-public.php:2051
    36613661msgid ""
    36623662"This product has produced sales and may be linked to existing orders. Are "
     
    36643664msgstr ""
    36653665
    3666 #: public/class-marketking-core-public.php:2032
     3666#: public/class-marketking-core-public.php:2052
    36673667msgid ""
    36683668"This action cannot be reversed. Are you sure you wish to erase personal data "
     
    36703670msgstr ""
    36713671
    3672 #: public/class-marketking-core-public.php:2037
     3672#: public/class-marketking-core-public.php:2057
    36733673#: public/dashboard/products.php:103
    36743674msgid "Import"
    36753675msgstr ""
    36763676
    3677 #: public/class-marketking-core-public.php:2038
     3677#: public/class-marketking-core-public.php:2058
    36783678#: public/dashboard/products.php:113
    36793679msgid "Export"
    36803680msgstr ""
    36813681
    3682 #: public/class-marketking-core-public.php:2058
     3682#: public/class-marketking-core-public.php:2078
    36833683msgid "Enable reviews"
    36843684msgstr ""
    36853685
    36863686#. translators: %d: Number of variations
    3687 #: public/class-marketking-core-public.php:2089
     3687#: public/class-marketking-core-public.php:2109
    36883688#, php-format
    36893689msgid ""
     
    36933693msgstr ""
    36943694
    3695 #: public/class-marketking-core-public.php:2090
    3696 #: public/dashboard/marketking-dashboard-login.php:1686
     3695#: public/class-marketking-core-public.php:2110
     3696#: public/dashboard/marketking-dashboard-login.php:1745
    36973697msgid "Enter a value"
    36983698msgstr ""
    36993699
    3700 #: public/class-marketking-core-public.php:2091
     3700#: public/class-marketking-core-public.php:2111
    37013701msgid "Variation menu order (determines position in the list of variations)"
    37023702msgstr ""
    37033703
    3704 #: public/class-marketking-core-public.php:2092
    3705 #: public/dashboard/marketking-dashboard-login.php:1687
     3704#: public/class-marketking-core-public.php:2112
     3705#: public/dashboard/marketking-dashboard-login.php:1746
    37063706msgid "Enter a value (fixed or %)"
    37073707msgstr ""
    37083708
    3709 #: public/class-marketking-core-public.php:2093
     3709#: public/class-marketking-core-public.php:2113
    37103710msgid "Are you sure you want to delete all variations? This cannot be undone."
    37113711msgstr ""
    37123712
    3713 #: public/class-marketking-core-public.php:2094
     3713#: public/class-marketking-core-public.php:2114
    37143714msgid "Last warning, are you sure?"
    37153715msgstr ""
    37163716
    3717 #: public/class-marketking-core-public.php:2095
     3717#: public/class-marketking-core-public.php:2115
    37183718msgid "Choose an image"
    37193719msgstr ""
    37203720
    3721 #: public/class-marketking-core-public.php:2096
     3721#: public/class-marketking-core-public.php:2116
    37223722msgid "Set variation image"
    37233723msgstr ""
    37243724
    3725 #: public/class-marketking-core-public.php:2097
     3725#: public/class-marketking-core-public.php:2117
    37263726msgid "variation added"
    37273727msgstr ""
    37283728
    3729 #: public/class-marketking-core-public.php:2098
     3729#: public/class-marketking-core-public.php:2118
    37303730msgid "variations added"
    37313731msgstr ""
    37323732
    3733 #: public/class-marketking-core-public.php:2099
     3733#: public/class-marketking-core-public.php:2119
    37343734msgid "No variations added"
    37353735msgstr ""
    37363736
    3737 #: public/class-marketking-core-public.php:2100
     3737#: public/class-marketking-core-public.php:2120
    37383738msgid "Are you sure you want to remove this variation?"
    37393739msgstr ""
    37403740
    3741 #: public/class-marketking-core-public.php:2101
     3741#: public/class-marketking-core-public.php:2121
    37423742msgid "Sale start date (YYYY-MM-DD format or leave blank)"
    37433743msgstr ""
    37443744
    3745 #: public/class-marketking-core-public.php:2102
     3745#: public/class-marketking-core-public.php:2122
    37463746msgid "Sale end date (YYYY-MM-DD format or leave blank)"
    37473747msgstr ""
    37483748
    3749 #: public/class-marketking-core-public.php:2103
     3749#: public/class-marketking-core-public.php:2123
    37503750msgid "Save changes before changing page?"
    37513751msgstr ""
    37523752
    3753 #: public/class-marketking-core-public.php:2104
     3753#: public/class-marketking-core-public.php:2124
    37543754msgid "%qty% variation"
    37553755msgstr ""
    37563756
    3757 #: public/class-marketking-core-public.php:2105
     3757#: public/class-marketking-core-public.php:2125
    37583758msgid "%qty% variations"
    37593759msgstr ""
    37603760
    3761 #: public/class-marketking-core-public.php:2119
    3762 #: public/class-marketking-core-public.php:2244
     3761#: public/class-marketking-core-public.php:2139
     3762#: public/class-marketking-core-public.php:2264
    37633763msgid "Select an option…"
    37643764msgstr ""
    37653765
    3766 #: public/class-marketking-core-public.php:2122
     3766#: public/class-marketking-core-public.php:2142
    37673767msgid "Name (required)"
    37683768msgstr ""
    37693769
    3770 #: public/class-marketking-core-public.php:2123
     3770#: public/class-marketking-core-public.php:2143
    37713771msgid "Value (required)"
    37723772msgstr ""
    37733773
    3774 #: public/class-marketking-core-public.php:2132
     3774#: public/class-marketking-core-public.php:2152
    37753775msgid "Generate coupon code"
    37763776msgstr ""
    37773777
    3778 #: public/class-marketking-core-public.php:2141
     3778#: public/class-marketking-core-public.php:2161
    37793779msgid "Are you sure you want to remove the selected items?"
    37803780msgstr ""
    37813781
    3782 #: public/class-marketking-core-public.php:2142
     3782#: public/class-marketking-core-public.php:2162
    37833783msgid "Are you sure you want to remove the selected fees?"
    37843784msgstr ""
    37853785
    3786 #: public/class-marketking-core-public.php:2143
     3786#: public/class-marketking-core-public.php:2163
    37873787msgid "Are you sure you want to remove the selected shipping?"
    37883788msgstr ""
    37893789
    3790 #: public/class-marketking-core-public.php:2151
     3790#: public/class-marketking-core-public.php:2171
    37913791msgid "You may need to manually restore the item's stock."
    37923792msgstr ""
    37933793
    3794 #: public/class-marketking-core-public.php:2158
     3794#: public/class-marketking-core-public.php:2178
    37953795msgid "Please select some items."
    37963796msgstr ""
    37973797
    3798 #: public/class-marketking-core-public.php:2159
     3798#: public/class-marketking-core-public.php:2179
    37993799msgid ""
    38003800"Are you sure you wish to process this refund? This action cannot be undone."
    38013801msgstr ""
    38023802
    3803 #: public/class-marketking-core-public.php:2160
     3803#: public/class-marketking-core-public.php:2180
    38043804msgid ""
    38053805"Are you sure you wish to delete this refund? This action cannot be undone."
    38063806msgstr ""
    38073807
    3808 #: public/class-marketking-core-public.php:2161
     3808#: public/class-marketking-core-public.php:2181
    38093809msgid ""
    38103810"Are you sure you wish to delete this tax column? This action cannot be "
     
    38123812msgstr ""
    38133813
    3814 #: public/class-marketking-core-public.php:2162
     3814#: public/class-marketking-core-public.php:2182
    38153815msgid "Remove this item meta?"
    38163816msgstr ""
    38173817
    3818 #: public/class-marketking-core-public.php:2163
     3818#: public/class-marketking-core-public.php:2183
    38193819msgid "Remove this attribute?"
    38203820msgstr ""
    38213821
    3822 #: public/class-marketking-core-public.php:2164
     3822#: public/class-marketking-core-public.php:2184
    38233823#: public/dashboard/products.php:141
    38243824msgid "Name"
    38253825msgstr ""
    38263826
    3827 #: public/class-marketking-core-public.php:2165
     3827#: public/class-marketking-core-public.php:2185
     3828#: public/dashboard/marketking-dashboard-login.php:801
    38283829msgid "Remove"
    38293830msgstr ""
    38303831
    3831 #: public/class-marketking-core-public.php:2166
     3832#: public/class-marketking-core-public.php:2186
    38323833msgid "Click to toggle"
    38333834msgstr ""
    38343835
    3835 #: public/class-marketking-core-public.php:2167
     3836#: public/class-marketking-core-public.php:2187
    38363837msgid "Value(s)"
    38373838msgstr ""
    38383839
    3839 #: public/class-marketking-core-public.php:2168
     3840#: public/class-marketking-core-public.php:2188
    38403841msgid "Enter some text, or some attributes by pipe (|) separating values."
    38413842msgstr ""
    38423843
    3843 #: public/class-marketking-core-public.php:2169
     3844#: public/class-marketking-core-public.php:2189
    38443845msgid "Visible on the product page"
    38453846msgstr ""
    38463847
    3847 #: public/class-marketking-core-public.php:2170
     3848#: public/class-marketking-core-public.php:2190
    38483849msgid "Used for variations"
    38493850msgstr ""
    38503851
    3851 #: public/class-marketking-core-public.php:2171
     3852#: public/class-marketking-core-public.php:2191
    38523853msgid "Enter a name for the new attribute term:"
    38533854msgstr ""
    38543855
    3855 #: public/class-marketking-core-public.php:2172
     3856#: public/class-marketking-core-public.php:2192
    38563857msgid ""
    38573858"Recalculate totals? This will calculate taxes based on the customers country "
     
    38593860msgstr ""
    38603861
    3861 #: public/class-marketking-core-public.php:2173
     3862#: public/class-marketking-core-public.php:2193
    38623863msgid ""
    38633864"Copy billing information to shipping information? This will remove any "
     
    38653866msgstr ""
    38663867
    3867 #: public/class-marketking-core-public.php:2174
     3868#: public/class-marketking-core-public.php:2194
    38683869msgid ""
    38693870"Load the customer's billing information? This will remove any currently "
     
    38713872msgstr ""
    38723873
    3873 #: public/class-marketking-core-public.php:2175
     3874#: public/class-marketking-core-public.php:2195
    38743875msgid ""
    38753876"Load the customer's shipping information? This will remove any currently "
     
    38773878msgstr ""
    38783879
    3879 #: public/class-marketking-core-public.php:2176
     3880#: public/class-marketking-core-public.php:2196
    38803881msgid "Featured"
    38813882msgstr ""
    38823883
    3883 #: public/class-marketking-core-public.php:2180
     3884#: public/class-marketking-core-public.php:2200
    38843885msgid "No customer selected"
    38853886msgstr ""
    38863887
    3887 #: public/class-marketking-core-public.php:2204
     3888#: public/class-marketking-core-public.php:2224
    38883889msgid ""
    38893890"Could not grant access - the user may already have permission for this file "
     
    38923893msgstr ""
    38933894
    3894 #: public/class-marketking-core-public.php:2205
     3895#: public/class-marketking-core-public.php:2225
    38953896msgid "Are you sure you want to revoke access to this download?"
    38963897msgstr ""
    38973898
    3898 #: public/class-marketking-core-public.php:2206
     3899#: public/class-marketking-core-public.php:2226
    38993900msgid "You cannot add the same tax rate twice!"
    39003901msgstr ""
    39013902
    3902 #: public/class-marketking-core-public.php:2207
     3903#: public/class-marketking-core-public.php:2227
    39033904msgid ""
    39043905"Are you sure you wish to delete this note? This action cannot be undone."
    39053906msgstr ""
    39063907
    3907 #: public/class-marketking-core-public.php:2208
     3908#: public/class-marketking-core-public.php:2228
    39083909msgid ""
    39093910"Enter a coupon code to apply. Discounts are applied to line totals, before "
     
    39113912msgstr ""
    39123913
    3913 #: public/class-marketking-core-public.php:2209
     3914#: public/class-marketking-core-public.php:2229
    39143915msgid "Enter a fixed amount or percentage to apply as a fee."
    39153916msgstr ""
    39163917
    3917 #: public/class-marketking-core-public.php:2210
     3918#: public/class-marketking-core-public.php:2230
    39183919msgid ""
    39193920"<b>Simple –</b> covers the vast majority of any products you may sell. "
     
    39213922msgstr ""
    39223923
    3923 #: public/class-marketking-core-public.php:2211
     3924#: public/class-marketking-core-public.php:2231
    39243925msgid ""
    39253926"<b>Grouped –</b> a collection of related products that can be purchased "
     
    39283929msgstr ""
    39293930
    3930 #: public/class-marketking-core-public.php:2212
     3931#: public/class-marketking-core-public.php:2232
    39313932msgid ""
    39323933"<b>External or Affiliate –</b> one that you list and describe on your "
     
    39343935msgstr ""
    39353936
    3936 #: public/class-marketking-core-public.php:2213
     3937#: public/class-marketking-core-public.php:2233
    39373938msgid ""
    39383939"<b>Variable –</b> a product with variations, each of which may have a "
     
    39413942msgstr ""
    39423943
    3943 #: public/class-marketking-core-public.php:2214
     3944#: public/class-marketking-core-public.php:2234
    39443945msgid ""
    39453946"Product types define available product details and attributes, such as "
     
    39483949msgstr ""
    39493950
    3950 #: public/class-marketking-core-public.php:2215
     3951#: public/class-marketking-core-public.php:2235
    39513952msgid ""
    39523953"Describe this product. What makes it unique? What are its most important "
     
    39543955msgstr ""
    39553956
    3956 #: public/class-marketking-core-public.php:2216
     3957#: public/class-marketking-core-public.php:2236
    39573958msgid ""
    39583959"Summarize this product in 1-2 short sentences. We’ll show it at the top of "
     
    39613962
    39623963#. translators: %1$s: maximum file size
    3963 #: public/class-marketking-core-public.php:2218
     3964#: public/class-marketking-core-public.php:2238
    39643965#, php-format
    39653966msgid ""
     
    39683969msgstr ""
    39693970
    3970 #: public/class-marketking-core-public.php:2219
     3971#: public/class-marketking-core-public.php:2239
    39713972msgid ""
    39723973"If you remove this attribute, customers will no longer be able to purchase "
     
    39743975msgstr ""
    39753976
    3976 #: public/class-marketking-core-public.php:2220
     3977#: public/class-marketking-core-public.php:2240
    39773978msgid "Adding new attribute failed."
    39783979msgstr ""
    39793980
    39803981#. translators: %s: WC_DELIMITER
    3981 #: public/class-marketking-core-public.php:2222
     3982#: public/class-marketking-core-public.php:2242
    39823983#, php-format
    39833984msgid "Enter some descriptive text. Use “%s” to separate different values."
    39843985msgstr ""
    39853986
    3986 #: public/class-marketking-core-public.php:2223
     3987#: public/class-marketking-core-public.php:2243
    39873988#, php-format
    39883989msgid ""
     
    39913992msgstr ""
    39923993
    3993 #: public/class-marketking-core-public.php:2322
    3994 #: public/class-marketking-core-public.php:2508
     3994#: public/class-marketking-core-public.php:2342
     3995#: public/class-marketking-core-public.php:2528
    39953996msgid "Min. Quantity"
    39963997msgstr ""
    39973998
    3998 #: public/class-marketking-core-public.php:2323
    3999 #: public/class-marketking-core-public.php:2509
     3999#: public/class-marketking-core-public.php:2343
     4000#: public/class-marketking-core-public.php:2529
    40004001msgid "Final Price"
    40014002msgstr ""
    40024003
    4003 #: public/class-marketking-core-public.php:2324
    4004 #: public/class-marketking-core-public.php:2510
     4004#: public/class-marketking-core-public.php:2344
     4005#: public/class-marketking-core-public.php:2530
    40054006msgid "Label"
    40064007msgstr ""
    40074008
    4008 #: public/class-marketking-core-public.php:2325
    4009 #: public/class-marketking-core-public.php:2525
     4009#: public/class-marketking-core-public.php:2345
     4010#: public/class-marketking-core-public.php:2545
    40104011msgid "Text"
    40114012msgstr ""
    40124013
    4013 #: public/class-marketking-core-public.php:2326
     4014#: public/class-marketking-core-public.php:2346
    40144015msgid "X"
    40154016msgstr ""
    40164017
    4017 #: public/class-marketking-core-public.php:2328
     4018#: public/class-marketking-core-public.php:2348
    40184019msgid "Are you sure you want to publish this offer?"
    40194020msgstr ""
    40204021
    4021 #: public/class-marketking-core-public.php:2329
     4022#: public/class-marketking-core-public.php:2349
    40224023msgid "Are you sure you want to delete this offer?"
    40234024msgstr ""
    40244025
    4025 #: public/class-marketking-core-public.php:2330
     4026#: public/class-marketking-core-public.php:2350
    40264027msgid "Are you sure you want to publish this rule?"
    40274028msgstr ""
    40284029
    4029 #: public/class-marketking-core-public.php:2331
     4030#: public/class-marketking-core-public.php:2351
     4031#: public/class-marketking-core-public.php:2379
     4032msgid "Are you sure you want to delete this rule?"
     4033msgstr ""
     4034
     4035#: public/class-marketking-core-public.php:2352
     4036msgid "You must enter a title for the rule!"
     4037msgstr ""
     4038
     4039#: public/class-marketking-core-public.php:2353
     4040msgid "You must enter a title for the offer!"
     4041msgstr ""
     4042
     4043#: public/class-marketking-core-public.php:2354
     4044msgid "You must have at least 1 product with quantity and price!"
     4045msgstr ""
     4046
     4047#: public/class-marketking-core-public.php:2355
     4048msgid "Cart Total Quantity"
     4049msgstr ""
     4050
     4051#: public/class-marketking-core-public.php:2356
     4052msgid "Cart Total Value"
     4053msgstr ""
     4054
     4055#: public/class-marketking-core-public.php:2357
     4056msgid "Category Product Quantity"
     4057msgstr ""
     4058
     4059#: public/class-marketking-core-public.php:2358
     4060msgid "Category Product Value"
     4061msgstr ""
     4062
    40304063#: 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:2332
    4035 msgid "You must enter a title for the rule!"
    4036 msgstr ""
    4037 
    4038 #: public/class-marketking-core-public.php:2333
    4039 msgid "You must enter a title for the offer!"
    4040 msgstr ""
    4041 
    4042 #: public/class-marketking-core-public.php:2334
    4043 msgid "You must have at least 1 product with quantity and price!"
    4044 msgstr ""
    4045 
    4046 #: public/class-marketking-core-public.php:2335
    4047 msgid "Cart Total Quantity"
    4048 msgstr ""
    4049 
    4050 #: public/class-marketking-core-public.php:2336
    4051 msgid "Cart Total Value"
    4052 msgstr ""
    4053 
    4054 #: public/class-marketking-core-public.php:2337
    4055 msgid "Category Product Quantity"
    4056 msgstr ""
    4057 
    4058 #: public/class-marketking-core-public.php:2338
    4059 msgid "Category Product Value"
    4060 msgstr ""
    4061 
    4062 #: public/class-marketking-core-public.php:2339
    40634064msgid "Product Quantity"
    40644065msgstr ""
    40654066
    4066 #: public/class-marketking-core-public.php:2340
     4067#: public/class-marketking-core-public.php:2360
    40674068msgid "Product Value"
    40684069msgstr ""
    40694070
    4070 #: public/class-marketking-core-public.php:2341
     4071#: public/class-marketking-core-public.php:2361
    40714072msgid "greater (>)"
    40724073msgstr ""
    40734074
    4074 #: public/class-marketking-core-public.php:2342
     4075#: public/class-marketking-core-public.php:2362
    40754076msgid "equal (=)"
    40764077msgstr ""
    40774078
    4078 #: public/class-marketking-core-public.php:2343
     4079#: public/class-marketking-core-public.php:2363
    40794080msgid "smaller (<)"
    40804081msgstr ""
    40814082
    4082 #: public/class-marketking-core-public.php:2344
     4083#: public/class-marketking-core-public.php:2364
    40834084#: public/dashboard/integrations/woo_vou_pdf_vouchers.php:185
    40844085msgid "Delete"
    40854086msgstr ""
    40864087
    4087 #: public/class-marketking-core-public.php:2345
     4088#: public/class-marketking-core-public.php:2365
    40884089msgid "Enter the quantity/value"
    40894090msgstr ""
    40904091
    4091 #: public/class-marketking-core-public.php:2346
     4092#: public/class-marketking-core-public.php:2366
    40924093msgid "Add Condition"
    40934094msgstr ""
    40944095
    4095 #: public/class-marketking-core-public.php:2347
     4096#: public/class-marketking-core-public.php:2367
    40964097msgid "Conditions must apply cumulatively."
    40974098msgstr ""
    40984099
    4099 #: public/class-marketking-core-public.php:2348
     4100#: public/class-marketking-core-public.php:2368
    41004101msgid "Each product must meet all product conditions."
    41014102msgstr ""
    41024103
    4103 #: public/class-marketking-core-public.php:2352
    4104 #: public/class-marketking-core-public.php:2532
     4104#: public/class-marketking-core-public.php:2372
     4105#: public/class-marketking-core-public.php:2552
    41054106msgid ""
    41064107"Your cart contains items from multiple vendors. Quote requests can only be "
     
    41084109msgstr ""
    41094110
    4110 #: public/class-marketking-core-public.php:2354
     4111#: public/class-marketking-core-public.php:2374
    41114112msgid "Email Offer"
    41124113msgstr ""
    41134114
    4114 #: public/class-marketking-core-public.php:2355
     4115#: public/class-marketking-core-public.php:2375
    41154116msgid ""
    41164117"This offer will be emailed to ALL users that have visibility. That includes "
     
    41204121msgstr ""
    41214122
    4122 #: public/class-marketking-core-public.php:2356
     4123#: public/class-marketking-core-public.php:2376
    41234124msgid "The offer has been emailed successfully."
    41244125msgstr ""
    41254126
    4126 #: public/class-marketking-core-public.php:2358
     4127#: public/class-marketking-core-public.php:2378
    41274128msgid "The offer has been saved. Do you want to also email it to the user?"
    41284129msgstr ""
    41294130
    4130 #: public/class-marketking-core-public.php:2441
     4131#: public/class-marketking-core-public.php:2461
    41314132msgid ""
    41324133"Are you sure you want to permanently CANCEL this subscription? This is "
     
    41344135msgstr ""
    41354136
    4136 #: public/class-marketking-core-public.php:2442
     4137#: public/class-marketking-core-public.php:2462
    41374138msgid "Are you sure you want to delete this coupon?"
    41384139msgstr ""
    41394140
    4140 #: public/class-marketking-core-public.php:2443
     4141#: public/class-marketking-core-public.php:2463
    41414142msgid "Are you sure you want to save this cart?"
    41424143msgstr ""
    41434144
    4144 #: public/class-marketking-core-public.php:2444
    4145 #: public/class-marketking-core-public.php:3076
     4145#: public/class-marketking-core-public.php:2464
     4146#: public/class-marketking-core-public.php:3096
    41464147msgid "Are you sure you want to send this refund request?"
    41474148msgstr ""
    41484149
    4149 #: public/class-marketking-core-public.php:2445
     4150#: public/class-marketking-core-public.php:2465
    41504151msgid "Are you sure you want to delete this cart?"
    41514152msgstr ""
    41524153
    4153 #: public/class-marketking-core-public.php:2446
     4154#: public/class-marketking-core-public.php:2466
    41544155msgid "Are you sure you want to add this customer?"
    41554156msgstr ""
    41564157
    4157 #: public/class-marketking-core-public.php:2447
     4158#: public/class-marketking-core-public.php:2467
    41584159msgid "Are you sure you want to add this team member?"
    41594160msgstr ""
    41604161
    4161 #: public/class-marketking-core-public.php:2448
     4162#: public/class-marketking-core-public.php:2468
    41624163msgid "Are you sure you want to save the payout info?"
    41634164msgstr ""
    41644165
    4165 #: public/class-marketking-core-public.php:2449
     4166#: public/class-marketking-core-public.php:2469
    41664167msgid "Are you sure you want to disconnect this Stripe account?"
    41674168msgstr ""
    41684169
    4169 #: public/class-marketking-core-public.php:2450
     4170#: public/class-marketking-core-public.php:2470
    41704171msgid "Are you sure you want to make the withdrawal request?"
    41714172msgstr ""
    41724173
    4173 #: public/class-marketking-core-public.php:2451
     4174#: public/class-marketking-core-public.php:2471
    41744175msgid "Are you sure you want to cancel your current withdrawal request?"
    41754176msgstr ""
    41764177
    4177 #: public/class-marketking-core-public.php:2452
     4178#: public/class-marketking-core-public.php:2472
    41784179msgid "The requested withdrawal amount is below the minimum limit."
    41794180msgstr ""
    41804181
    4181 #: public/class-marketking-core-public.php:2453
     4182#: public/class-marketking-core-public.php:2473
    41824183msgid "You do not have sufficient funds for this withdrawal."
    41834184msgstr ""
    41844185
    4185 #: public/class-marketking-core-public.php:2454
     4186#: public/class-marketking-core-public.php:2474
    41864187msgid "Ready"
    41874188msgstr ""
    41884189
    4189 #: public/class-marketking-core-public.php:2455
     4190#: public/class-marketking-core-public.php:2475
    41904191msgid "Link copied"
    41914192msgstr ""
    41924193
    4193 #: public/class-marketking-core-public.php:2456
     4194#: public/class-marketking-core-public.php:2476
    41944195msgid "Copied"
    41954196msgstr ""
    41964197
    4197 #: public/class-marketking-core-public.php:2457
     4198#: public/class-marketking-core-public.php:2477
    41984199msgid "Search "
    41994200msgstr ""
    42004201
    4201 #: public/class-marketking-core-public.php:2458
     4202#: public/class-marketking-core-public.php:2478
    42024203msgid "Copy"
    42034204msgstr ""
    42044205
    4205 #: public/class-marketking-core-public.php:2459
     4206#: public/class-marketking-core-public.php:2479
    42064207msgid ""
    42074208"The customer account has been created. An email has been sent to the "
     
    42094210msgstr ""
    42104211
    4211 #: public/class-marketking-core-public.php:2460
     4212#: public/class-marketking-core-public.php:2480
    42124213msgid ""
    42134214"The customer account could not be created. It may be because the username or "
     
    42154216msgstr ""
    42164217
    4217 #: public/class-marketking-core-public.php:2461
     4218#: public/class-marketking-core-public.php:2481
    42184219msgid ""
    42194220"The team member account has been created. An email has been sent to them "
     
    42214222msgstr ""
    42224223
    4223 #: public/class-marketking-core-public.php:2462
     4224#: public/class-marketking-core-public.php:2482
    42244225msgid "Please fill all required (*) fields / resolve all validation errors."
    42254226msgstr ""
    42264227
    4227 #: public/class-marketking-core-public.php:2463
     4228#: public/class-marketking-core-public.php:2483
    42284229msgid ""
    42294230"The team member account could not be created. It may be because the username "
     
    42314232msgstr ""
    42324233
    4233 #: public/class-marketking-core-public.php:2471
     4234#: public/class-marketking-core-public.php:2491
    42344235msgid "orders"
    42354236msgstr ""
    42364237
    4237 #: public/class-marketking-core-public.php:2472
     4238#: public/class-marketking-core-public.php:2492
    42384239msgid "Upload Image"
    42394240msgstr ""
    42404241
    4241 #: public/class-marketking-core-public.php:2475
     4242#: public/class-marketking-core-public.php:2495
    42424243msgid "Are you sure you want to delete this product?"
    42434244msgstr ""
    42444245
    4245 #: public/class-marketking-core-public.php:2477
     4246#: public/class-marketking-core-public.php:2497
    42464247msgid "Are you sure you want to advertise this product?"
    42474248msgstr ""
    42484249
    4249 #: public/class-marketking-core-public.php:2478
     4250#: public/class-marketking-core-public.php:2498
    42504251msgid "You have insufficient credits for this advertisement"
    42514252msgstr ""
    42524253
    4253 #: public/class-marketking-core-public.php:2479
     4254#: public/class-marketking-core-public.php:2499
    42544255msgid "You have successfully advertised this product"
    42554256msgstr ""
    42564257
    4257 #: public/class-marketking-core-public.php:2480
     4258#: public/class-marketking-core-public.php:2500
    42584259msgid ""
    42594260"Are you sure you want to delete this team member account? This is "
     
    42614262msgstr ""
    42624263
    4263 #: public/class-marketking-core-public.php:2481
     4264#: public/class-marketking-core-public.php:2501
    42644265msgid "Are you sure you want to delete this shipping method?"
    42654266msgstr ""
    42664267
    4267 #: public/class-marketking-core-public.php:2482
     4268#: public/class-marketking-core-public.php:2502
    42684269msgid "Are you sure you want to add this shipping method?"
    42694270msgstr ""
    42704271
    4271 #: public/class-marketking-core-public.php:2485
     4272#: public/class-marketking-core-public.php:2505
    42724273msgid "The product must have a name (title)!"
    42734274msgstr ""
    42744275
    4275 #: public/class-marketking-core-public.php:2499
     4276#: public/class-marketking-core-public.php:2519
    42764277msgid "This coupon code is already in use. Please use a different code."
    42774278msgstr ""
    42784279
    4279 #: public/class-marketking-core-public.php:2513
     4280#: public/class-marketking-core-public.php:2533
    42804281msgid "Choose an attribute:"
    42814282msgstr ""
    42824283
    4283 #: public/class-marketking-core-public.php:2526
     4284#: public/class-marketking-core-public.php:2546
    42844285msgid "You must save the product first before you can configure attributes."
    42854286msgstr ""
    42864287
    4287 #: public/class-marketking-core-public.php:2527
     4288#: public/class-marketking-core-public.php:2547
    42884289msgid "You must save the product first before you can configure variations."
    42894290msgstr ""
    42904291
    4291 #: public/class-marketking-core-public.php:2533
    4292 #: public/class-marketking-core-public.php:3070
     4292#: public/class-marketking-core-public.php:2553
     4293#: public/class-marketking-core-public.php:3090
    42934294msgid ""
    42944295"Are you sure you want to submit this reply? Please note that you can only "
     
    42964297msgstr ""
    42974298
    4298 #: public/class-marketking-core-public.php:2534
     4299#: public/class-marketking-core-public.php:2554
    42994300msgid "Are you sure you want to approve this refund? This is irreversible."
    43004301msgstr ""
    43014302
    4302 #: public/class-marketking-core-public.php:2535
     4303#: public/class-marketking-core-public.php:2555
    43034304msgid ""
    43044305"Are you sure you want to save this product as a draft? It will no longer be "
     
    43064307msgstr ""
    43074308
    4308 #: public/class-marketking-core-public.php:2536
     4309#: public/class-marketking-core-public.php:2556
    43094310msgid "Are you sure you want to deny this refund? This is irreversible."
    43104311msgstr ""
    43114312
    4312 #: public/class-marketking-core-public.php:2537
    4313 #: public/class-marketking-core-public.php:3073
     4313#: public/class-marketking-core-public.php:2557
     4314#: public/class-marketking-core-public.php:3093
    43144315msgid "Your reply has been submitted."
    43154316msgstr ""
    43164317
    4317 #: public/class-marketking-core-public.php:2538
    4318 #: public/class-marketking-core-public.php:3074
     4318#: public/class-marketking-core-public.php:2558
     4319#: public/class-marketking-core-public.php:3094
    43194320msgid "Your report has been submitted."
    43204321msgstr ""
    43214322
    4322 #: public/class-marketking-core-public.php:2539
     4323#: public/class-marketking-core-public.php:2559
    43234324msgid "Are you sure you want to submit this for verification?"
    43244325msgstr ""
    43254326
    4326 #: public/class-marketking-core-public.php:2540
     4327#: public/class-marketking-core-public.php:2560
    43274328msgid "Are you sure?"
    43284329msgstr ""
    43294330
    4330 #: public/class-marketking-core-public.php:2541
     4331#: public/class-marketking-core-public.php:2561
    43314332msgid "Yes, continue"
    43324333msgstr ""
    43334334
    4334 #: public/class-marketking-core-public.php:2542
     4335#: public/class-marketking-core-public.php:2562
    43354336#: public/dashboard/integrations/woo_vou_pdf_vouchers.php:184
    43364337#: public/dashboard/profile.php:253 public/dashboard/profile.php:315
     
    43394340msgstr ""
    43404341
    4341 #: public/class-marketking-core-public.php:2543
     4342#: public/class-marketking-core-public.php:2563
    43424343msgid "Please select a file."
    43434344msgstr ""
    43444345
    4345 #: public/class-marketking-core-public.php:2556
     4346#: public/class-marketking-core-public.php:2576
    43464347#: public/dashboard/products.php:195
    43474348msgid "type"
    43484349msgstr ""
    43494350
    4350 #: public/class-marketking-core-public.php:2559
     4351#: public/class-marketking-core-public.php:2579
    43514352msgid "Loading shipping data..."
    43524353msgstr ""
    43534354
    4354 #: public/class-marketking-core-public.php:2772
     4355#: public/class-marketking-core-public.php:2792
    43554356msgid "User Type"
    43564357msgstr ""
    43574358
    4358 #: public/class-marketking-core-public.php:2913
     4359#: public/class-marketking-core-public.php:2933
    43594360msgid "Supported file types: jpg, jpeg, png, txt, pdf, doc, docx"
    43604361msgstr ""
    43614362
    4362 #: public/class-marketking-core-public.php:2994
     4363#: public/class-marketking-core-public.php:3014
    43634364msgid "State / County"
    43644365msgstr ""
    43654366
    4366 #: public/class-marketking-core-public.php:3042
     4367#: public/class-marketking-core-public.php:3062
    43674368msgid "This URL is not available!"
    43684369msgstr ""
    43694370
    4370 #: public/class-marketking-core-public.php:3043
     4371#: public/class-marketking-core-public.php:3063
    43714372msgid "Searching availability..."
    43724373msgstr ""
    43734374
    4374 #: public/class-marketking-core-public.php:3044
     4375#: public/class-marketking-core-public.php:3064
    43754376msgid "The URL is too short..."
    43764377msgstr ""
    43774378
    4378 #: public/class-marketking-core-public.php:3046
     4379#: public/class-marketking-core-public.php:3066
    43794380msgid "There are no sellers yet..."
    43804381msgstr ""
    43814382
    4382 #: public/class-marketking-core-public.php:3049
     4383#: public/class-marketking-core-public.php:3069
    43834384msgid ""
    43844385"Your message has been received. We will get back to you as soon as possible."
    43854386msgstr ""
    43864387
    4387 #: public/class-marketking-core-public.php:3050
     4388#: public/class-marketking-core-public.php:3070
    43884389msgid ""
    43894390"Your support request has been received. The vendor will get back to you as "
     
    43914392msgstr ""
    43924393
    4393 #: public/class-marketking-core-public.php:3053
     4394#: public/class-marketking-core-public.php:3073
    43944395msgid "Send inquiry"
    43954396msgstr ""
    43964397
    4397 #: public/class-marketking-core-public.php:3054
     4398#: public/class-marketking-core-public.php:3074
    43984399msgid "Please fill all fields to submit the inquiry"
    43994400msgstr ""
    44004401
    4401 #: public/class-marketking-core-public.php:3055
     4402#: public/class-marketking-core-public.php:3075
    44024403msgid "The email address you entered is invalid"
    44034404msgstr ""
    44044405
    4405 #: public/class-marketking-core-public.php:3059
     4406#: public/class-marketking-core-public.php:3079
    44064407msgid ""
    44074408"Your cart contains items from multiple vendors. Quote requests can only be "
     
    44104411msgstr ""
    44114412
    4412 #: public/class-marketking-core-public.php:3062
     4413#: public/class-marketking-core-public.php:3082
    44134414msgid "Are you sure you want to submit this abuse report?"
    44144415msgstr ""
    44154416
    4416 #: public/class-marketking-core-public.php:3063
     4417#: public/class-marketking-core-public.php:3083
    44174418msgid ""
    44184419"Are you sure you want to mark this order as Received? This means you are "
     
    44214422msgstr ""
    44224423
    4423 #: public/class-marketking-core-public.php:3064
     4424#: public/class-marketking-core-public.php:3084
    44244425msgid "Thank you for your submission. Your report has been received."
    44254426msgstr ""
    44264427
    4427 #: public/class-marketking-core-public.php:3065
     4428#: public/class-marketking-core-public.php:3085
    44284429msgid "Your abuse report has been received."
    44294430msgstr ""
    44304431
    4431 #: public/class-marketking-core-public.php:3066
     4432#: public/class-marketking-core-public.php:3086
    44324433msgid "The product has been added to your store"
    44334434msgstr ""
    44344435
    4435 #: public/class-marketking-core-public.php:3075
     4436#: public/class-marketking-core-public.php:3095
    44364437msgid "Your request has been sent."
    44374438msgstr ""
    44384439
    4439 #: public/class-marketking-core-public.php:3077
     4440#: public/class-marketking-core-public.php:3097
    44404441msgid "The value requested cannot exceed the order value."
    44414442msgstr ""
    44424443
    4443 #: public/class-marketking-core-public.php:3084
     4444#: public/class-marketking-core-public.php:3104
    44444445#: public/templates/stores-list.php:37
    44454446msgid "All Categories"
     
    53485349
    53495350#: public/dashboard/marketking-dashboard-login.php:185
    5350 #: public/dashboard/marketking-dashboard-login.php:1789
     5351#: public/dashboard/marketking-dashboard-login.php:1848
    53515352msgid "Error"
    53525353msgstr ""
     
    54635464msgstr ""
    54645465
    5465 #: public/dashboard/marketking-dashboard-login.php:692
     5466#: public/dashboard/marketking-dashboard-login.php:696
    54665467msgid "No row selected"
    54675468msgstr ""
    54685469
    5469 #: public/dashboard/marketking-dashboard-login.php:693
     5470#: public/dashboard/marketking-dashboard-login.php:697
    54705471msgid "Product ID"
    54715472msgstr ""
    54725473
    5473 #: public/dashboard/marketking-dashboard-login.php:694
     5474#: public/dashboard/marketking-dashboard-login.php:698
    54745475msgid "Country Code"
    54755476msgstr ""
    54765477
    5477 #: public/dashboard/marketking-dashboard-login.php:695
     5478#: public/dashboard/marketking-dashboard-login.php:699
    54785479msgid "State/County Code"
    54795480msgstr ""
    54805481
    5481 #: public/dashboard/marketking-dashboard-login.php:696
     5482#: public/dashboard/marketking-dashboard-login.php:700
    54825483msgid "Zip/Postal Code"
    54835484msgstr ""
    54845485
    5485 #: public/dashboard/marketking-dashboard-login.php:697
     5486#: public/dashboard/marketking-dashboard-login.php:701
    54865487msgid "Cost"
    54875488msgstr ""
    54885489
    5489 #: public/dashboard/marketking-dashboard-login.php:698
     5490#: public/dashboard/marketking-dashboard-login.php:702
    54905491msgid "Item Cost"
    54915492msgstr ""
    54925493
    5493 #: public/dashboard/marketking-dashboard-login.php:752
     5494#: public/dashboard/marketking-dashboard-login.php:809
    54945495msgid "Insert delivery time name, slug or id."
    54955496msgstr ""
    54965497
    5497 #: public/dashboard/marketking-dashboard-login.php:753
     5498#: public/dashboard/marketking-dashboard-login.php:810
    54985499msgid "Insert product units amount."
    54995500msgstr ""
    55005501
    5501 #: public/dashboard/marketking-dashboard-login.php:821
     5502#: public/dashboard/marketking-dashboard-login.php:880
    55025503msgid "No data available in table"
    55035504msgstr ""
    55045505
    5505 #: public/dashboard/marketking-dashboard-login.php:822
     5506#: public/dashboard/marketking-dashboard-login.php:881
    55065507msgid "Showing _START_ to _END_ of _TOTAL_ entries"
    55075508msgstr ""
    55085509
    5509 #: public/dashboard/marketking-dashboard-login.php:823
     5510#: public/dashboard/marketking-dashboard-login.php:882
    55105511msgid "Showing 0 to 0 of 0 entries"
    55115512msgstr ""
    55125513
    5513 #: public/dashboard/marketking-dashboard-login.php:824
     5514#: public/dashboard/marketking-dashboard-login.php:883
    55145515msgid "(filtered from _MAX_ total entries)"
    55155516msgstr ""
    55165517
    5517 #: public/dashboard/marketking-dashboard-login.php:825
     5518#: public/dashboard/marketking-dashboard-login.php:884
    55185519msgid "Show _MENU_ entries"
    55195520msgstr ""
    55205521
    5521 #: public/dashboard/marketking-dashboard-login.php:826
     5522#: public/dashboard/marketking-dashboard-login.php:885
    55225523msgid "Loading..."
    55235524msgstr ""
    55245525
    5525 #: public/dashboard/marketking-dashboard-login.php:827
     5526#: public/dashboard/marketking-dashboard-login.php:886
    55265527msgid "Processing..."
    55275528msgstr ""
    55285529
    5529 #: public/dashboard/marketking-dashboard-login.php:828
     5530#: public/dashboard/marketking-dashboard-login.php:887
    55305531msgid "Search:"
    55315532msgstr ""
    55325533
    5533 #: public/dashboard/marketking-dashboard-login.php:829
     5534#: public/dashboard/marketking-dashboard-login.php:888
    55345535msgid "No matching records found"
    55355536msgstr ""
    55365537
    5537 #: public/dashboard/marketking-dashboard-login.php:831
     5538#: public/dashboard/marketking-dashboard-login.php:890
    55385539msgid "First"
    55395540msgstr ""
    55405541
    5541 #: public/dashboard/marketking-dashboard-login.php:832
     5542#: public/dashboard/marketking-dashboard-login.php:891
    55425543msgid "Last"
    55435544msgstr ""
    55445545
    5545 #: public/dashboard/marketking-dashboard-login.php:833
     5546#: public/dashboard/marketking-dashboard-login.php:892
    55465547msgid "Next"
    55475548msgstr ""
    55485549
    5549 #: public/dashboard/marketking-dashboard-login.php:834
     5550#: public/dashboard/marketking-dashboard-login.php:893
    55505551msgid "Previous"
    55515552msgstr ""
    55525553
    5553 #: public/dashboard/marketking-dashboard-login.php:837
     5554#: public/dashboard/marketking-dashboard-login.php:896
    55545555msgid ": activate to sort column ascending"
    55555556msgstr ""
    55565557
    5557 #: public/dashboard/marketking-dashboard-login.php:838
     5558#: public/dashboard/marketking-dashboard-login.php:897
    55585559msgid ": activate to sort column descending"
    55595560msgstr ""
    55605561
    5561 #: public/dashboard/marketking-dashboard-login.php:953
     5562#: public/dashboard/marketking-dashboard-login.php:1012
    55625563msgid "Resources"
    55635564msgstr ""
    55645565
    5565 #: public/dashboard/marketking-dashboard-login.php:962
     5566#: public/dashboard/marketking-dashboard-login.php:1021
    55665567msgid "Calendar"
    55675568msgstr ""
    55685569
    5569 #: public/dashboard/marketking-dashboard-login.php:974
     5570#: public/dashboard/marketking-dashboard-login.php:1033
    55705571#: public/dashboard/templates/profile-sidebar.php:194
    55715572msgid "Google Calendar Integration"
    55725573msgstr ""
    55735574
    5574 #: public/dashboard/marketking-dashboard-login.php:1183
     5575#: public/dashboard/marketking-dashboard-login.php:1242
    55755576msgid "Inherit from product"
    55765577msgstr ""
    55775578
    5578 #: public/dashboard/marketking-dashboard-login.php:1184
     5579#: public/dashboard/marketking-dashboard-login.php:1243
    55795580msgid "Inherit from chosen variation"
    55805581msgstr ""
    55815582
    5582 #: public/dashboard/marketking-dashboard-login.php:1185
     5583#: public/dashboard/marketking-dashboard-login.php:1244
    55835584msgid "Override product"
    55845585msgstr ""
    55855586
    5586 #: public/dashboard/marketking-dashboard-login.php:1186
     5587#: public/dashboard/marketking-dashboard-login.php:1245
    55875588msgid "Override all variations"
    55885589msgstr ""
    55895590
    5590 #: public/dashboard/marketking-dashboard-login.php:1187
     5591#: public/dashboard/marketking-dashboard-login.php:1246
    55915592msgid "Discount to apply to the product when this plan is selected."
    55925593msgstr ""
    55935594
    5594 #: public/dashboard/marketking-dashboard-login.php:1188
     5595#: public/dashboard/marketking-dashboard-login.php:1247
    55955596msgid "Discount to apply to the chosen variation when this plan is selected."
    55965597msgstr ""
    55975598
    5598 #: public/dashboard/marketking-dashboard-login.php:1272
     5599#: public/dashboard/marketking-dashboard-login.php:1331
    55995600msgid ""
    56005601"Trashing this order will also trash the subscriptions purchased with the "
     
    56025603msgstr ""
    56035604
    5604 #: public/dashboard/marketking-dashboard-login.php:1283
     5605#: public/dashboard/marketking-dashboard-login.php:1342
    56055606msgid "The trial period cannot exceed the maximum"
    56065607msgstr ""
    56075608
    5608 #: public/dashboard/marketking-dashboard-login.php:1284
     5609#: public/dashboard/marketking-dashboard-login.php:1343
    56095610msgid "Enter the new period, either day, week, month or year:"
    56105611msgstr ""
    56115612
    5612 #: public/dashboard/marketking-dashboard-login.php:1285
     5613#: public/dashboard/marketking-dashboard-login.php:1344
    56135614msgid "Enter a new length (e.g. 5):"
    56145615msgstr ""
    56155616
    5616 #: public/dashboard/marketking-dashboard-login.php:1286
     5617#: public/dashboard/marketking-dashboard-login.php:1345
    56175618msgid ""
    56185619"Enter a new interval as a single number (e.g. to charge every 2nd month, "
     
    56205621msgstr ""
    56215622
    5622 #: public/dashboard/marketking-dashboard-login.php:1287
     5623#: public/dashboard/marketking-dashboard-login.php:1346
    56235624msgid "Delete all variations without a subscription"
    56245625msgstr ""
    56255626
    5626 #: public/dashboard/marketking-dashboard-login.php:1290
     5627#: public/dashboard/marketking-dashboard-login.php:1349
    56275628msgid ""
    56285629"The product type can not be changed because this product is associated with "
     
    56305631msgstr ""
    56315632
    5632 #: public/dashboard/marketking-dashboard-login.php:1293
     5633#: public/dashboard/marketking-dashboard-login.php:1352
    56335634msgid ""
    56345635"An error occurred determining if that variation can be deleted. Please try "
     
    56365637msgstr ""
    56375638
    5638 #: public/dashboard/marketking-dashboard-login.php:1294
     5639#: public/dashboard/marketking-dashboard-login.php:1353
    56395640msgid ""
    56405641"That variation can not be removed because it is associated with active "
     
    56435644msgstr ""
    56445645
    5645 #: public/dashboard/marketking-dashboard-login.php:1295
     5646#: public/dashboard/marketking-dashboard-login.php:1354
    56465647msgid ""
    56475648"You are about to trash one or more orders which contain a subscription.\n"
     
    56515652msgstr ""
    56525653
    5653 #: public/dashboard/marketking-dashboard-login.php:1297
     5654#: public/dashboard/marketking-dashboard-login.php:1356
    56545655msgid ""
    56555656"WARNING: Bad things are about to happen!\n"
     
    56635664msgstr ""
    56645665
    5665 #: public/dashboard/marketking-dashboard-login.php:1298
     5666#: public/dashboard/marketking-dashboard-login.php:1357
    56665667msgid ""
    56675668"You are deleting a subscription item. You will also need to manually cancel "
     
    56695670msgstr ""
    56705671
    5671 #: public/dashboard/marketking-dashboard-login.php:1333
     5672#: public/dashboard/marketking-dashboard-login.php:1392
    56725673msgid "Please enter a start date in the past."
    56735674msgstr ""
    56745675
    5675 #: public/dashboard/marketking-dashboard-login.php:1334
     5676#: public/dashboard/marketking-dashboard-login.php:1393
    56765677msgid "Please enter a date at least 2 minutes into the future."
    56775678msgstr ""
    56785679
    5679 #: public/dashboard/marketking-dashboard-login.php:1334
     5680#: public/dashboard/marketking-dashboard-login.php:1393
    56805681msgid "Please enter a date at least one hour into the future."
    56815682msgstr ""
    56825683
    5683 #: public/dashboard/marketking-dashboard-login.php:1335
     5684#: public/dashboard/marketking-dashboard-login.php:1394
    56845685msgid "Please enter a date after the trial end."
    56855686msgstr ""
    56865687
    5687 #: public/dashboard/marketking-dashboard-login.php:1336
    5688 #: public/dashboard/marketking-dashboard-login.php:1337
     5688#: public/dashboard/marketking-dashboard-login.php:1395
     5689#: public/dashboard/marketking-dashboard-login.php:1396
    56895690msgid "Please enter a date after the start date."
    56905691msgstr ""
    56915692
    5692 #: public/dashboard/marketking-dashboard-login.php:1338
     5693#: public/dashboard/marketking-dashboard-login.php:1397
    56935694msgid "Please enter a date before the next payment."
    56945695msgstr ""
    56955696
    5696 #: public/dashboard/marketking-dashboard-login.php:1339
     5697#: public/dashboard/marketking-dashboard-login.php:1398
    56975698msgid "Please enter a date after the next payment."
    56985699msgstr ""
    56995700
    5700 #: public/dashboard/marketking-dashboard-login.php:1340
     5701#: public/dashboard/marketking-dashboard-login.php:1399
    57015702msgid ""
    57025703"Are you sure you want to process a renewal?\n"
     
    57065707msgstr ""
    57075708
    5708 #: public/dashboard/marketking-dashboard-login.php:1353
     5709#: public/dashboard/marketking-dashboard-login.php:1412
    57095710msgid ""
    57105711"Are you sure you want to retry payment for this renewal order?\n"
     
    57145715msgstr ""
    57155716
    5716 #: public/dashboard/marketking-dashboard-login.php:1407
    5717 #: public/dashboard/marketking-dashboard-login.php:1448
     5717#: public/dashboard/marketking-dashboard-login.php:1466
     5718#: public/dashboard/marketking-dashboard-login.php:1507
    57185719msgid "Are you sure you want to delete this zone? This action cannot be undone"
    57195720msgstr ""
    57205721
    5721 #: public/dashboard/marketking-dashboard-login.php:1408
    5722 #: public/dashboard/marketking-dashboard-login.php:1449
     5722#: public/dashboard/marketking-dashboard-login.php:1467
     5723#: public/dashboard/marketking-dashboard-login.php:1508
    57235724msgid "Zone"
    57245725msgstr ""
    57255726
    5726 #: public/dashboard/marketking-dashboard-login.php:1425
    5727 #: public/dashboard/marketking-dashboard-login.php:1468
     5727#: public/dashboard/marketking-dashboard-login.php:1484
     5728#: public/dashboard/marketking-dashboard-login.php:1527
    57285729#, php-format
    57295730msgid ""
     
    57325733msgstr ""
    57335734
    5734 #: public/dashboard/marketking-dashboard-login.php:1426
    5735 #: public/dashboard/marketking-dashboard-login.php:1469
     5735#: public/dashboard/marketking-dashboard-login.php:1485
     5736#: public/dashboard/marketking-dashboard-login.php:1528
    57365737msgid ""
    57375738"The first IP not empty of your server variables does not match with your "
     
    57395740msgstr ""
    57405741
    5741 #: public/dashboard/marketking-dashboard-login.php:1427
    5742 #: public/dashboard/marketking-dashboard-login.php:1470
     5742#: public/dashboard/marketking-dashboard-login.php:1486
     5743#: public/dashboard/marketking-dashboard-login.php:1529
    57435744msgid "The MaxMind GeoIP database is required."
    57445745msgstr ""
    57455746
    5746 #: public/dashboard/marketking-dashboard-login.php:1592
     5747#: public/dashboard/marketking-dashboard-login.php:1651
    57475748msgid "Not available in your browser"
    57485749msgstr ""
    57495750
    5750 #: public/dashboard/marketking-dashboard-login.php:1593
     5751#: public/dashboard/marketking-dashboard-login.php:1652
    57515752msgid "Model not found!"
    57525753msgstr ""
    57535754
    5754 #: public/dashboard/marketking-dashboard-login.php:1594
     5755#: public/dashboard/marketking-dashboard-login.php:1653
    57555756msgid "Please enable Preview Model in the settings of the plugin"
    57565757msgstr ""
    57575758
    5758 #: public/dashboard/marketking-dashboard-login.php:1595
     5759#: public/dashboard/marketking-dashboard-login.php:1654
    57595760msgid "Please upload the model first"
    57605761msgstr ""
    57615762
    5762 #: public/dashboard/marketking-dashboard-login.php:1596
     5763#: public/dashboard/marketking-dashboard-login.php:1655
    57635764msgid "WEBM rendering works only in Chrome browser"
    57645765msgstr ""
    57655766
    5766 #: public/dashboard/marketking-dashboard-login.php:1597
     5767#: public/dashboard/marketking-dashboard-login.php:1656
    57675768msgid "Please don't switch to other tabs while rendering"
    57685769msgstr ""
    57695770
    5770 #: public/dashboard/marketking-dashboard-login.php:1598
     5771#: public/dashboard/marketking-dashboard-login.php:1657
    57715772msgid ""
    57725773"The amount of data we are going to submit is larger than post_max_size in "
     
    57745775msgstr ""
    57755776
    5776 #: public/dashboard/marketking-dashboard-login.php:1599
     5777#: public/dashboard/marketking-dashboard-login.php:1658
    57775778msgid "Repairing.."
    57785779msgstr ""
    57795780
    5780 #: public/dashboard/marketking-dashboard-login.php:1600
     5781#: public/dashboard/marketking-dashboard-login.php:1659
    57815782msgid "Repairing.. done!"
    57825783msgstr ""
    57835784
    5784 #: public/dashboard/marketking-dashboard-login.php:1601
     5785#: public/dashboard/marketking-dashboard-login.php:1660
    57855786msgid "Error report:"
    57865787msgstr ""
    57875788
    5788 #: public/dashboard/marketking-dashboard-login.php:1602
     5789#: public/dashboard/marketking-dashboard-login.php:1661
    57895790msgid "Repairing.. fail!"
    57905791msgstr ""
    57915792
    5792 #: public/dashboard/marketking-dashboard-login.php:1603
     5793#: public/dashboard/marketking-dashboard-login.php:1662
    57935794msgid "No errors found."
    57945795msgstr ""
    57955796
    5796 #: public/dashboard/marketking-dashboard-login.php:1604
     5797#: public/dashboard/marketking-dashboard-login.php:1663
    57975798msgid "Degenerate facets"
    57985799msgstr ""
    57995800
    5800 #: public/dashboard/marketking-dashboard-login.php:1605
     5801#: public/dashboard/marketking-dashboard-login.php:1664
    58015802msgid "Edges fixed"
    58025803msgstr ""
    58035804
    5804 #: public/dashboard/marketking-dashboard-login.php:1606
     5805#: public/dashboard/marketking-dashboard-login.php:1665
    58055806msgid "Facets removed"
    58065807msgstr ""
    58075808
    5808 #: public/dashboard/marketking-dashboard-login.php:1607
     5809#: public/dashboard/marketking-dashboard-login.php:1666
    58095810msgid "Facets added"
    58105811msgstr ""
    58115812
    5812 #: public/dashboard/marketking-dashboard-login.php:1608
     5813#: public/dashboard/marketking-dashboard-login.php:1667
    58135814msgid "Facets reversed"
    58145815msgstr ""
    58155816
    5816 #: public/dashboard/marketking-dashboard-login.php:1609
     5817#: public/dashboard/marketking-dashboard-login.php:1668
    58175818msgid "Backwards edges"
    58185819msgstr ""
    58195820
    5820 #: public/dashboard/marketking-dashboard-login.php:1611
     5821#: public/dashboard/marketking-dashboard-login.php:1670
    58215822msgid "Can not repair textured models yet!"
    58225823msgstr ""
    58235824
    5824 #: public/dashboard/marketking-dashboard-login.php:1612
     5825#: public/dashboard/marketking-dashboard-login.php:1671
    58255826msgid "Can repair only STL and OBJ models"
    58265827msgstr ""
    58275828
    5828 #: public/dashboard/marketking-dashboard-login.php:1613
     5829#: public/dashboard/marketking-dashboard-login.php:1672
    58295830msgid ""
    58305831"The model will be sent to our server for repair.\n"
     
    58345835msgstr ""
    58355836
    5836 #: public/dashboard/marketking-dashboard-login.php:1614
     5837#: public/dashboard/marketking-dashboard-login.php:1673
    58375838msgid "Reducing.."
    58385839msgstr ""
    58395840
    5840 #: public/dashboard/marketking-dashboard-login.php:1615
     5841#: public/dashboard/marketking-dashboard-login.php:1674
    58415842msgid "Reducing.. done!"
    58425843msgstr ""
    58435844
    5844 #: public/dashboard/marketking-dashboard-login.php:1616
     5845#: public/dashboard/marketking-dashboard-login.php:1675
    58455846msgid "No reduction needed"
    58465847msgstr ""
    58475848
    5848 #: public/dashboard/marketking-dashboard-login.php:1617
     5849#: public/dashboard/marketking-dashboard-login.php:1676
    58495850#, no-php-format
    58505851msgid "% of triangles to reduce"
    58515852msgstr ""
    58525853
    5853 #: public/dashboard/marketking-dashboard-login.php:1618
     5854#: public/dashboard/marketking-dashboard-login.php:1677
    58545855msgid "Can not reduce textured models yet!"
    58555856msgstr ""
    58565857
    5857 #: public/dashboard/marketking-dashboard-login.php:1619
     5858#: public/dashboard/marketking-dashboard-login.php:1678
    58585859msgid "Can reduce only STL and OBJ models"
    58595860msgstr ""
    58605861
    5861 #: public/dashboard/marketking-dashboard-login.php:1620
     5862#: public/dashboard/marketking-dashboard-login.php:1679
    58625863msgid ""
    58635864"The model will be sent to our server for polygon reduction.\n"
     
    58655866msgstr ""
    58665867
    5867 #: public/dashboard/marketking-dashboard-login.php:1783
     5868#: public/dashboard/marketking-dashboard-login.php:1842
    58685869msgid "There are no saved variations yet."
    58695870msgstr ""
    58705871
    5871 #: public/dashboard/marketking-dashboard-login.php:1784
     5872#: public/dashboard/marketking-dashboard-login.php:1843
    58725873msgid "You cannot add any more extra options."
    58735874msgstr ""
    58745875
    5875 #: public/dashboard/marketking-dashboard-login.php:1785
     5876#: public/dashboard/marketking-dashboard-login.php:1844
    58765877msgid "Are you sure you want to remove this option?"
    58775878msgstr ""
    58785879
    5879 #: public/dashboard/marketking-dashboard-login.php:1786
     5880#: public/dashboard/marketking-dashboard-login.php:1845
    58805881msgid ""
    58815882"Before adding Extra Product Options, add and save some attributes on the "
     
    58835884msgstr ""
    58845885
    5885 #: public/dashboard/marketking-dashboard-login.php:1787
     5886#: public/dashboard/marketking-dashboard-login.php:1846
    58865887msgid "Fixed amount"
    58875888msgstr ""
    58885889
    5889 #: public/dashboard/marketking-dashboard-login.php:1788
     5890#: public/dashboard/marketking-dashboard-login.php:1847
    58905891msgid "Percent of the original price"
    58915892msgstr ""
    58925893
    5893 #: public/dashboard/marketking-dashboard-login.php:1824
     5894#: public/dashboard/marketking-dashboard-login.php:1883
    58945895msgid "Clear"
    58955896msgstr ""
    58965897
    5897 #: public/dashboard/marketking-dashboard-login.php:1825
     5898#: public/dashboard/marketking-dashboard-login.php:1884
    58985899msgid "Default"
    58995900msgstr ""
    59005901
    5901 #: public/dashboard/marketking-dashboard-login.php:1826
     5902#: public/dashboard/marketking-dashboard-login.php:1885
    59025903msgid "Select Color"
    59035904msgstr ""
    59045905
    5905 #: public/dashboard/marketking-dashboard-login.php:1827
     5906#: public/dashboard/marketking-dashboard-login.php:1886
    59065907msgid "Current Color"
    59075908msgstr ""
    59085909
    5909 #: public/dashboard/marketking-dashboard-login.php:1843
     5910#: public/dashboard/marketking-dashboard-login.php:1902
    59105911msgid "Delete this group?"
    59115912msgstr ""
    59125913
    5913 #: public/dashboard/marketking-dashboard-login.php:1844
     5914#: public/dashboard/marketking-dashboard-login.php:1903
    59145915msgid ""
    59155916"Delete this field? Deleting this field will also delete any conditions "
     
    59175918msgstr ""
    59185919
    5919 #: public/dashboard/marketking-dashboard-login.php:1845
     5920#: public/dashboard/marketking-dashboard-login.php:1904
    59205921msgid "Delete this option?"
    59215922msgstr ""
    59225923
    5923 #: public/dashboard/marketking-dashboard-login.php:1846
     5924#: public/dashboard/marketking-dashboard-login.php:1905
    59245925msgid "Checked"
    59255926msgstr ""
    59265927
    5927 #: public/dashboard/marketking-dashboard-login.php:1847
     5928#: public/dashboard/marketking-dashboard-login.php:1906
    59285929msgid ""
    59295930"This field is used in a condition. Changing its field type may affect the "
     
    59315932msgstr ""
    59325933
    5933 #: public/dashboard/marketking-dashboard-login.php:1848
     5934#: public/dashboard/marketking-dashboard-login.php:1907
    59345935msgid "copy"
    59355936msgstr ""
    59365937
    5937 #: public/dashboard/marketking-dashboard-login.php:1849
     5938#: public/dashboard/marketking-dashboard-login.php:1908
    59385939msgid " -- Select a field -- "
    59395940msgstr ""
    59405941
    5941 #: public/dashboard/marketking-dashboard-login.php:1895
     5942#: public/dashboard/marketking-dashboard-login.php:1954
    59425943msgid ""
    59435944"All fields must have a title and/or option name. Please review the settings "
     
    59455946msgstr ""
    59465947
    5947 #: public/dashboard/marketking-dashboard-login.php:1896
     5948#: public/dashboard/marketking-dashboard-login.php:1955
    59485949msgid "Limit price range"
    59495950msgstr ""
    59505951
    5951 #: public/dashboard/marketking-dashboard-login.php:1897
     5952#: public/dashboard/marketking-dashboard-login.php:1956
    59525953msgid "Limit quantity range"
    59535954msgstr ""
    59545955
    5955 #: public/dashboard/marketking-dashboard-login.php:1898
     5956#: public/dashboard/marketking-dashboard-login.php:1957
    59565957msgid "Limit character length"
    59575958msgstr ""
    59585959
    5959 #: public/dashboard/marketking-dashboard-login.php:1899
     5960#: public/dashboard/marketking-dashboard-login.php:1958
    59605961msgid "Restrictions"
    59615962msgstr ""
    59625963
    5963 #: public/dashboard/marketking-dashboard-login.php:1900
     5964#: public/dashboard/marketking-dashboard-login.php:1959
    59645965msgid "Are you sure you want remove this add-on field?"
    59655966msgstr ""
    59665967
    5967 #: public/dashboard/marketking-dashboard-login.php:1901
     5968#: public/dashboard/marketking-dashboard-login.php:1960
    59685969msgid "Are you sure you want delete this option?"
    59695970msgstr ""
    59705971
    5971 #: public/dashboard/marketking-dashboard-login.php:1902
     5972#: public/dashboard/marketking-dashboard-login.php:1961
    59725973msgid "Add Image Swatch"
    59735974msgstr ""
    59745975
    5975 #: public/dashboard/marketking-dashboard-login.php:1903
     5976#: public/dashboard/marketking-dashboard-login.php:1962
    59765977msgid "Add Image"
    59775978msgstr ""
    59785979
    5979 #: public/dashboard/marketking-dashboard-login.php:1964
     5980#: public/dashboard/marketking-dashboard-login.php:2023
    59805981msgid "Cannot edit price while a pricing table is active"
    59815982msgstr ""
    59825983
    5983 #: public/dashboard/marketking-dashboard-login.php:1989
     5984#: public/dashboard/marketking-dashboard-login.php:2048
    59845985msgid "One or more emails entered appear to be invalid"
    59855986msgstr ""
    59865987
    5987 #: public/dashboard/marketking-dashboard-login.php:1990
     5988#: public/dashboard/marketking-dashboard-login.php:2049
    59885989#: public/dashboard/products.php:483
    59895990msgid "Add"
    59905991msgstr ""
    59915992
    5992 #: public/dashboard/marketking-dashboard-login.php:1991
     5993#: public/dashboard/marketking-dashboard-login.php:2050
    59935994msgid "No users selected"
    59945995msgstr ""
    59955996
    5996 #: public/dashboard/marketking-dashboard-login.php:1992
     5997#: public/dashboard/marketking-dashboard-login.php:2051
    59975998msgid "No action selected"
    59985999msgstr ""
    59996000
    6000 #: public/dashboard/marketking-dashboard-login.php:1993
     6001#: public/dashboard/marketking-dashboard-login.php:2052
    60016002msgid "View User Profile"
    60026003msgstr ""
    60036004
    6004 #: public/dashboard/marketking-dashboard-login.php:1994
     6005#: public/dashboard/marketking-dashboard-login.php:2053
    60056006msgid "Go"
    60066007msgstr ""
    60076008
    6008 #: public/dashboard/marketking-dashboard-login.php:1995
     6009#: public/dashboard/marketking-dashboard-login.php:2054
    60096010msgid "Update Options"
    60106011msgstr ""
    60116012
    6012 #: public/dashboard/marketking-dashboard-login.php:1996
     6013#: public/dashboard/marketking-dashboard-login.php:2055
    60136014msgid ""
    60146015"Waitlists may be appear inaccurate due to an update to variations. Please "
     
    60166017msgstr ""
    60176018
    6018 #: public/dashboard/marketking-dashboard-login.php:2062
     6019#: public/dashboard/marketking-dashboard-login.php:2121
    60196020msgid "Do you really want to delete this request?"
    60206021msgstr ""
    60216022
    6022 #: public/dashboard/marketking-dashboard-login.php:2267
     6023#: public/dashboard/marketking-dashboard-login.php:2326
    60236024msgid "Invalid Account"
    60246025msgstr ""
    60256026
    6026 #: public/dashboard/marketking-dashboard-login.php:2268
     6027#: public/dashboard/marketking-dashboard-login.php:2327
    60276028msgid ""
    60286029"Your current account is not a vendor or has been deactivated. To login as a "
     
    60306031msgstr ""
    60316032
    6032 #: public/dashboard/marketking-dashboard-login.php:2276
     6033#: public/dashboard/marketking-dashboard-login.php:2335
    60336034msgid "Log out"
    60346035msgstr ""
    60356036
    6036 #: public/dashboard/marketking-dashboard-login.php:2331
     6037#: public/dashboard/marketking-dashboard-login.php:2390
    60376038msgid "Username is empty"
    60386039msgstr ""
    60396040
    6040 #: public/dashboard/marketking-dashboard-login.php:2334
     6041#: public/dashboard/marketking-dashboard-login.php:2393
    60416042msgid "Password is empty"
    60426043msgstr ""
    60436044
    6044 #: public/dashboard/marketking-dashboard-login.php:2337
     6045#: public/dashboard/marketking-dashboard-login.php:2396
    60456046msgid "Incorrect user or password"
    60466047msgstr ""
    60476048
    6048 #: public/dashboard/marketking-dashboard-login.php:2343
     6049#: public/dashboard/marketking-dashboard-login.php:2402
    60496050msgid "Login failed"
    60506051msgstr ""
    60516052
    6052 #: public/dashboard/marketking-dashboard-login.php:2350
     6053#: public/dashboard/marketking-dashboard-login.php:2409
    60536054msgid "Sign-In"
    60546055msgstr ""
    60556056
    6056 #: public/dashboard/marketking-dashboard-login.php:2352
     6057#: public/dashboard/marketking-dashboard-login.php:2411
    60576058msgid "Access your vendor dashboard and data."
    60586059msgstr ""
    60596060
    6060 #: public/dashboard/marketking-dashboard-login.php:2362
     6061#: public/dashboard/marketking-dashboard-login.php:2421
    60616062msgid "Email or Username"
    60626063msgstr ""
    60636064
    6064 #: public/dashboard/marketking-dashboard-login.php:2364
     6065#: public/dashboard/marketking-dashboard-login.php:2423
    60656066msgid "Enter your email address or username"
    60666067msgstr ""
    60676068
    6068 #: public/dashboard/marketking-dashboard-login.php:2369
     6069#: public/dashboard/marketking-dashboard-login.php:2428
    60696070msgid "Forgot password?"
    60706071msgstr ""
    60716072
    6072 #: public/dashboard/marketking-dashboard-login.php:2376
     6073#: public/dashboard/marketking-dashboard-login.php:2435
    60736074msgid "Enter your password"
    60746075msgstr ""
    60756076
    6076 #: public/dashboard/marketking-dashboard-login.php:2382
     6077#: public/dashboard/marketking-dashboard-login.php:2441
    60776078msgid "Sign in"
    60786079msgstr ""
    60796080
    6080 #: public/dashboard/marketking-dashboard-login.php:2389
     6081#: public/dashboard/marketking-dashboard-login.php:2448
    60816082msgid "New on our platform?"
    60826083msgstr ""
     
    65926593msgstr ""
    65936594
    6594 #: public/emails/class-marketking-new-announcement-email.php:13
     6595#: public/emails/class-marketking-new-announcement-email.php:14
    65956596msgid "New Announcement"
    65966597msgstr ""
    65976598
    6598 #: public/emails/class-marketking-new-announcement-email.php:16
     6599#: public/emails/class-marketking-new-announcement-email.php:17
    65996600msgid ""
    66006601"This email is sent when a new announcement is released to vendors "
     
    66026603msgstr ""
    66036604
    6604 #: public/emails/class-marketking-new-announcement-email.php:19
    66056605#: public/emails/class-marketking-new-announcement-email.php:20
    6606 #: public/emails/class-marketking-new-announcement-email.php:46
     6606#: public/emails/class-marketking-new-announcement-email.php:21
    66076607#: public/emails/class-marketking-new-announcement-email.php:47
     6608#: public/emails/class-marketking-new-announcement-email.php:48
    66086609msgid "New announcement"
    66096610msgstr ""
    66106611
    6611 #: public/emails/class-marketking-new-announcement-email.php:100
    6612 #: public/emails/class-marketking-new-message-email.php:122
    6613 #: public/emails/class-marketking-new-payout-email.php:96
    6614 #: public/emails/class-marketking-new-product-requires-approval-email.php:89
    6615 #: public/emails/class-marketking-new-rating-email.php:95
    6616 #: public/emails/class-marketking-new-refund-email.php:96
    6617 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:97
    6618 #: public/emails/class-marketking-new-verification-email.php:98
    6619 #: public/emails/class-marketking-product-has-been-approved-email.php:95
    6620 #: public/emails/class-marketking-your-account-approved-email.php:99
     6612#: 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
    66216622msgid "Enable/Disable"
    66226623msgstr ""
    66236624
    6624 #: public/emails/class-marketking-new-announcement-email.php:102
    6625 #: public/emails/class-marketking-new-message-email.php:124
    6626 #: public/emails/class-marketking-new-payout-email.php:98
    6627 #: public/emails/class-marketking-new-product-requires-approval-email.php:91
    6628 #: public/emails/class-marketking-new-rating-email.php:97
    6629 #: public/emails/class-marketking-new-refund-email.php:98
    6630 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:99
    6631 #: public/emails/class-marketking-new-verification-email.php:100
    6632 #: public/emails/class-marketking-product-has-been-approved-email.php:97
    6633 #: public/emails/class-marketking-your-account-approved-email.php:101
     6625#: 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
    66346635msgid "Enable this email notification"
    66356636msgstr ""
    66366637
    6637 #: public/emails/class-marketking-new-announcement-email.php:108
    6638 #: public/emails/class-marketking-new-message-email.php:130
    6639 #: public/emails/class-marketking-new-payout-email.php:104
    6640 #: public/emails/class-marketking-new-product-requires-approval-email.php:104
    6641 #: public/emails/class-marketking-new-rating-email.php:103
    6642 #: public/emails/class-marketking-new-refund-email.php:104
    6643 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:112
    6644 #: public/emails/class-marketking-new-verification-email.php:106
    6645 #: public/emails/class-marketking-product-has-been-approved-email.php:103
    6646 #: public/emails/class-marketking-your-account-approved-email.php:107
     6638#: 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
    66476648msgid ""
    66486649"This controls the email subject line. Leave blank to use the default "
     
    66506651msgstr ""
    66516652
    6652 #: public/emails/class-marketking-new-announcement-email.php:113
    6653 #: public/emails/class-marketking-new-message-email.php:135
    6654 #: public/emails/class-marketking-new-payout-email.php:109
    6655 #: public/emails/class-marketking-new-product-requires-approval-email.php:109
    6656 #: public/emails/class-marketking-new-rating-email.php:108
    6657 #: public/emails/class-marketking-new-refund-email.php:109
    6658 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:117
    6659 #: public/emails/class-marketking-new-verification-email.php:111
    6660 #: public/emails/class-marketking-product-has-been-approved-email.php:108
    6661 #: public/emails/class-marketking-your-account-approved-email.php:112
     6653#: 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
    66626663msgid "Email Heading"
    66636664msgstr ""
    66646665
    6665 #: public/emails/class-marketking-new-announcement-email.php:115
    6666 #: public/emails/class-marketking-new-message-email.php:137
    6667 #: public/emails/class-marketking-new-payout-email.php:111
    6668 #: public/emails/class-marketking-new-product-requires-approval-email.php:111
    6669 #: public/emails/class-marketking-new-rating-email.php:110
    6670 #: public/emails/class-marketking-new-refund-email.php:111
    6671 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:119
    6672 #: public/emails/class-marketking-new-verification-email.php:113
    6673 #: public/emails/class-marketking-product-has-been-approved-email.php:110
    6674 #: public/emails/class-marketking-your-account-approved-email.php:114
     6666#: 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
    66756676msgid ""
    66766677"This controls the main heading contained within the email notification. "
     
    66786679msgstr ""
    66796680
    6680 #: public/emails/class-marketking-new-announcement-email.php:120
    6681 #: public/emails/class-marketking-new-message-email.php:142
    6682 #: public/emails/class-marketking-new-payout-email.php:116
    6683 #: public/emails/class-marketking-new-product-requires-approval-email.php:116
    6684 #: public/emails/class-marketking-new-rating-email.php:115
    6685 #: public/emails/class-marketking-new-refund-email.php:116
    6686 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:124
    6687 #: public/emails/class-marketking-new-verification-email.php:118
    6688 #: public/emails/class-marketking-product-has-been-approved-email.php:115
    6689 #: public/emails/class-marketking-your-account-approved-email.php:119
     6681#: 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
    66906691msgid "Email type"
    66916692msgstr ""
    66926693
    6693 #: public/emails/class-marketking-new-announcement-email.php:122
    6694 #: public/emails/class-marketking-new-message-email.php:144
    6695 #: public/emails/class-marketking-new-payout-email.php:118
    6696 #: public/emails/class-marketking-new-product-requires-approval-email.php:118
    6697 #: public/emails/class-marketking-new-rating-email.php:117
    6698 #: public/emails/class-marketking-new-refund-email.php:118
    6699 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:126
    6700 #: public/emails/class-marketking-new-verification-email.php:120
    6701 #: public/emails/class-marketking-product-has-been-approved-email.php:117
    6702 #: public/emails/class-marketking-your-account-approved-email.php:121
     6694#: 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
    67036704msgid "Choose which format of email to send."
    67046705msgstr ""
    67056706
    6706 #: public/emails/class-marketking-new-message-email.php:13
     6707#: public/emails/class-marketking-new-message-email.php:14
    67076708msgid "New Message"
    67086709msgstr ""
    67096710
    6710 #: public/emails/class-marketking-new-message-email.php:16
     6711#: public/emails/class-marketking-new-message-email.php:17
    67116712msgid "This email is sent when a new message is sent (marketking)"
    67126713msgstr ""
    67136714
    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
    67166716#: public/emails/class-marketking-new-payout-email.php:20
    6717 #: public/emails/class-marketking-new-payout-email.php:46
     6717#: public/emails/class-marketking-new-payout-email.php:21
    67186718#: public/emails/class-marketking-new-payout-email.php:47
     6719#: public/emails/class-marketking-new-payout-email.php:48
    67196720msgid "New Payout"
    67206721msgstr ""
    67216722
    6722 #: public/emails/class-marketking-new-payout-email.php:16
     6723#: public/emails/class-marketking-new-payout-email.php:17
    67236724msgid "This email is sent when a payout is saved (marketking)"
    67246725msgstr ""
    67256726
    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
    67286728#: public/emails/class-marketking-new-product-requires-approval-email.php:20
     6729#: public/emails/class-marketking-new-product-requires-approval-email.php:21
    67296730msgid "New product requires approval"
    67306731msgstr ""
    67316732
    6732 #: public/emails/class-marketking-new-product-requires-approval-email.php:16
     6733#: public/emails/class-marketking-new-product-requires-approval-email.php:17
    67336734msgid ""
    67346735"This email is sent to admin when a vendor submits a product which requires "
     
    67366737msgstr ""
    67376738
    6738 #: public/emails/class-marketking-new-product-requires-approval-email.php:95
    6739 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:103
     6739#: public/emails/class-marketking-new-product-requires-approval-email.php:96
     6740#: public/emails/class-marketking-new-vendor-requires-approval-email.php:104
    67406741msgid "Recipient(s)"
    67416742msgstr ""
    67426743
    6743 #: public/emails/class-marketking-new-product-requires-approval-email.php:97
    6744 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:105
     6744#: public/emails/class-marketking-new-product-requires-approval-email.php:98
     6745#: public/emails/class-marketking-new-vendor-requires-approval-email.php:106
    67456746msgid "Enter recipients (comma separated) for this email. Defaults to"
    6746 msgstr ""
    6747 
    6748 #: public/emails/class-marketking-new-product-requires-approval-email.php:128
    6749 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:136
    6750 #: public/emails/class-marketking-product-has-been-approved-email.php:127
    6751 #: public/emails/class-marketking-your-account-approved-email.php:131
    6752 msgid "Additional content"
    67536747msgstr ""
    67546748
     
    67576751#: public/emails/class-marketking-product-has-been-approved-email.php:128
    67586752#: public/emails/class-marketking-your-account-approved-email.php:132
     6753msgid "Additional content"
     6754msgstr ""
     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
    67596760msgid "Text to appear below the main email content."
    67606761msgstr ""
    67616762
    6762 #: public/emails/class-marketking-new-product-requires-approval-email.php:131
    6763 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:139
    6764 #: public/emails/class-marketking-product-has-been-approved-email.php:130
    6765 #: public/emails/class-marketking-your-account-approved-email.php:134
     6763#: 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
    67666767msgid "N/A"
    67676768msgstr ""
    67686769
    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
    67716771#: public/emails/class-marketking-new-rating-email.php:20
    6772 #: public/emails/class-marketking-new-rating-email.php:46
     6772#: public/emails/class-marketking-new-rating-email.php:21
    67736773#: public/emails/class-marketking-new-rating-email.php:47
     6774#: public/emails/class-marketking-new-rating-email.php:48
    67746775msgid "New Rating"
    67756776msgstr ""
    67766777
    6777 #: public/emails/class-marketking-new-rating-email.php:16
     6778#: public/emails/class-marketking-new-rating-email.php:17
    67786779msgid "This email is sent when a new rating is received (marketking)"
    67796780msgstr ""
    67806781
    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
    67836783#: public/emails/class-marketking-new-refund-email.php:20
    6784 #: public/emails/class-marketking-new-refund-email.php:47
     6784#: public/emails/class-marketking-new-refund-email.php:21
    67856785#: public/emails/class-marketking-new-refund-email.php:48
     6786#: public/emails/class-marketking-new-refund-email.php:49
    67866787msgid "New Refund Request"
    67876788msgstr ""
    67886789
    6789 #: public/emails/class-marketking-new-refund-email.php:16
     6790#: public/emails/class-marketking-new-refund-email.php:17
    67906791msgid ""
    67916792"This email is sent to vendors when a new refund request is received "
     
    67936794msgstr ""
    67946795
    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
    67976797#: public/emails/class-marketking-new-vendor-requires-approval-email.php:20
     6798#: public/emails/class-marketking-new-vendor-requires-approval-email.php:21
    67986799msgid "New vendor requires approval"
    67996800msgstr ""
    68006801
    6801 #: public/emails/class-marketking-new-vendor-requires-approval-email.php:16
     6802#: public/emails/class-marketking-new-vendor-requires-approval-email.php:17
    68026803msgid ""
    68036804"This email is sent to admin when a new vendor registers and requires manual "
     
    68056806msgstr ""
    68066807
    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
    68096809#: public/emails/class-marketking-new-verification-email.php:48
     6810#: public/emails/class-marketking-new-verification-email.php:49
    68106811msgid "New Verification Status"
    68116812msgstr ""
    68126813
    6813 #: public/emails/class-marketking-new-verification-email.php:16
     6814#: public/emails/class-marketking-new-verification-email.php:17
    68146815msgid ""
    68156816"This email is sent when a vendor verification request is approved or "
     
    68176818msgstr ""
    68186819
    6819 #: public/emails/class-marketking-new-verification-email.php:19
    68206820#: public/emails/class-marketking-new-verification-email.php:20
     6821#: public/emails/class-marketking-new-verification-email.php:21
    68216822msgid "New Verification"
    68226823msgstr ""
    68236824
    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
    68266826#: public/emails/class-marketking-product-has-been-approved-email.php:20
     6827#: public/emails/class-marketking-product-has-been-approved-email.php:21
    68276828msgid "Your product has been approved"
    68286829msgstr ""
    68296830
    6830 #: public/emails/class-marketking-product-has-been-approved-email.php:16
     6831#: public/emails/class-marketking-product-has-been-approved-email.php:17
    68316832msgid ""
    68326833"This email is sent to the vendor when the admin approves one of their "
     
    68346835msgstr ""
    68356836
    6836 #: public/emails/class-marketking-your-account-approved-email.php:13
     6837#: public/emails/class-marketking-your-account-approved-email.php:14
    68376838msgid "Vendor account approved"
    68386839msgstr ""
    68396840
    6840 #: public/emails/class-marketking-your-account-approved-email.php:19
     6841#: public/emails/class-marketking-your-account-approved-email.php:20
    68416842msgid ""
    68426843"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:22
    6846 #: public/emails/class-marketking-your-account-approved-email.php:49
    6847 msgid "Your account has been approved"
    68486844msgstr ""
    68496845
    68506846#: public/emails/class-marketking-your-account-approved-email.php:23
    68516847#: public/emails/class-marketking-your-account-approved-email.php:50
     6848msgid "Your account has been approved"
     6849msgstr ""
     6850
     6851#: public/emails/class-marketking-your-account-approved-email.php:24
     6852#: public/emails/class-marketking-your-account-approved-email.php:51
    68526853msgid "Your vendor account has been approved"
    68536854msgstr ""
  • marketking-multivendor-marketplace-for-woocommerce/trunk/marketking-core.php

    r3241511 r3296674  
    55 * Plugin URI:        https://wordpress.org/plugins/marketking-multivendor-marketplace-for-woocommerce
    66 * Description:       MarketKing is the complete solution for turning WooCommerce into a powerful multivendor marketplace. Core plugin.
    7  * Version:           2.0.50
     7 * Version:           2.0.70
    88 * Author:            WebWizards
    99 * Author URI:        webwizards.dev
     
    1111 * Domain Path:       /languages
    1212 * WC requires at least: 5.0.0
    13  * WC tested up to: 9.6.0
     13 * WC tested up to: 9.8.5
    1414 */
    1515
     
    1818    die;
    1919}
    20 define ( 'MARKETKINGCORE_VERSION', 'v2.0.50' );
     20define ( 'MARKETKINGCORE_VERSION', 'v2.0.70' );
    2121define( 'MARKETKINGCORE_DIR', plugin_dir_path( __FILE__ ) );
    2222define( 'MARKETKINGCORE_URL', plugin_dir_url( __FILE__ ) );
  • marketking-multivendor-marketplace-for-woocommerce/trunk/public/assets/js/public.js

    r3241511 r3296674  
    29262926
    29272927        /* 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(){
    29292929
    29302930            // loader
     
    29412941                $('#marketking_add_product_to_my_store').html('&nbsp;&nbsp;&nbsp;&nbsp;'+marketking_display_settings.product_added_store);
    29422942                $('#marketking_add_product_to_my_store').prop('disabled', true);
     2943                $('#marketking_add_product_to_my_store').attr('disabled', 'disabled');
    29432944
    29442945                // remove loader
  • marketking-multivendor-marketplace-for-woocommerce/trunk/public/class-marketking-core-public.php

    r3241511 r3296674  
    218218            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() ) ){
    219219                // error
    220                 wc_print_notice( esc_html__('Your cannot 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' );
    221221            }
    222222        }
     
    228228            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() ) ){
    229229                // error
    230                 $errors->add( 'validation', esc_html__('Your cannot 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') );
    231231            }
    232232        }
     
    506506    }
    507507
    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;
    520540    }
    521541
  • marketking-multivendor-marketplace-for-woocommerce/trunk/public/dashboard/marketking-dashboard-login.php

    r3241511 r3296674  
    674674        if (apply_filters('marketking_enable_perproductshipping_integration', true)){
    675675
     676            if (!defined( 'WP_ADMIN' )){
     677                define('WP_ADMIN', true);
     678            }
     679
    676680            if (defined('PER_PRODUCT_SHIPPING_FILE')){
    677681                $dir = plugin_dir_path(PER_PRODUCT_SHIPPING_FILE);
    678682                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;
    680684
    681685                add_action('wp_print_styles', function(){
     
    697701                      'i18n_cost'            => __( 'Cost', 'woocommerce-shipping-per-product' ),
    698702                      'i18n_item_cost'       => __( 'Item Cost', 'woocommerce-shipping-per-product' ),
     703                      'decimal_separator'    => wc_get_price_decimal_separator(),
    699704                  ) );
    700705                });
     
    706711
    707712            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                });
    708724
    709725                include_once WC_GERMANIZED_ABSPATH . 'includes/export/class-wc-gzd-product-export.php';
     
    722738                    $admin_script_path = $assets_path . 'js/admin/';
    723739
    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 );
    725743                    wp_enqueue_style( 'woocommerce-gzd-admin' );
    726744
    727745                    wp_register_style(
    728746                        'woocommerce-gzd-admin-settings',
    729                         $assets_path . 'css/admin-settings' . $suffix . '.css',
     747                        $gzd->get_assets_build_url( 'static/admin-settings.css' ),
    730748                        array(
    731749                            'woocommerce_admin_styles',
     
    734752                        WC_GERMANIZED_VERSION
    735753                    );
     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                    }
    736764                });
    737765
     
    741769                    $assets_path       = WC_germanized()->plugin_url() . '/assets/';
    742770                    $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
    757777                    wp_register_script( // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.NotInFooter
    758778                        'wc-gzd-admin-legal-checkboxes',
    759                         $admin_script_path . 'legal-checkboxes' . $suffix . '.js',
     779                        $gzd->get_assets_build_url( 'static/admin-legal-checkboxes.js' ),
    760780                        array(
    761781                            'jquery',
     
    768788                        WC_GERMANIZED_VERSION
    769789                    );
    770 
    771790                    wp_register_script( // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.NotInFooter
    772791                        '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',
    774800                        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                        )
    779820                    );
    780821
     
    792833                    wp_enqueue_script( 'wc-gzd-admin-product' );
    793834                    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                   
    794853                });
    795854            }
  • marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-new-announcement-email.php

    r2863393 r3296674  
    33if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    44
    5 class Marketking_New_Announcement_Email extends WC_Email {
     5if (!class_exists('Marketking_New_Announcement_Email')) {
     6    class Marketking_New_Announcement_Email extends WC_Email {
    67
    7     public function __construct() {
     8        public function __construct() {
    89
    9         // set ID, this simply needs to be a unique name
    10         $this->id = 'marketking_new_announcement_email';
     10            // set ID, this simply needs to be a unique name
     11            $this->id = 'marketking_new_announcement_email';
    1112
    12         // this is the title in WooCommerce Email settings
    13         $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');
    1415
    15         // this is the description in WooCommerce email settings
    16         $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');
    1718
    18         // these are the default heading and subject lines that can be overridden using the settings
    19         $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');
    2122
    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 here
    27         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();
    2829
    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        }
    30134
    31135    }
    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 
    134136}
    135137return new Marketking_New_Announcement_Email();
  • marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-new-message-email.php

    r2863393 r3296674  
    33if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    44
    5 class Marketking_New_Message_Email extends WC_Email {
     5if (!class_exists('Marketking_New_Message_Email')) {
     6    class Marketking_New_Message_Email extends WC_Email {
    67
    7     public function __construct() {
     8        public function __construct() {
    89
    9         // set ID, this simply needs to be a unique name
    10         $this->id = 'marketking_new_message_email';
     10            // set ID, this simply needs to be a unique name
     11            $this->id = 'marketking_new_message_email';
    1112
    12         // this is the title in WooCommerce Email settings
    13         $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');
    1415
    15         // this is the description in WooCommerce email settings
    16         $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');
    1718
    18         // these are the default heading and subject lines that can be overridden using the settings
    19         $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');
    2122
    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 here
    27         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();
    2829
    29         add_action( 'marketking_new_message_notification', array( $this, 'trigger'), 10, 4 );
     30            add_action( 'marketking_new_message_notification', array( $this, 'trigger'), 10, 4 );
    3031
    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;
    4232        }
    4333
    44         marketking()->switch_to_user_locale($email_address);
     34        public function trigger($email_address, $message, $userid, $messageid) {
    4535
    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;
    5040
    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            }
    5444
    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();
    5880        }
    5981
    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;
    6988            }
     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();
    7098        }
    7199
    72100
    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();
    75117        }
    76118
    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
    79157    }
    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 
    156158}
    157159return new Marketking_New_Message_Email();
  • marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-new-payout-email.php

    r2863393 r3296674  
    33if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    44
    5 class Marketking_New_Payout_Email extends WC_Email {
     5if (!class_exists('Marketking_New_Payout_Email')) {
     6    class Marketking_New_Payout_Email extends WC_Email {
    67
    7     public function __construct() {
     8        public function __construct() {
    89
    9         // set ID, this simply needs to be a unique name
    10         $this->id = 'marketking_new_payout_email';
     10            // set ID, this simply needs to be a unique name
     11            $this->id = 'marketking_new_payout_email';
    1112
    12         // this is the title in WooCommerce Email settings
    13         $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');
    1415
    15         // this is the description in WooCommerce email settings
    16         $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');
    1718
    18         // these are the default heading and subject lines that can be overridden using the settings
    19         $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');
    2122
    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 here
    27         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();
    2829
    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        }
    30130
    31131    }
     132}
    32133
    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 }
    131134return new Marketking_New_Payout_Email();
  • marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-new-product-requires-approval-email.php

    r3212032 r3296674  
    33if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    44
    5 class Marketking_New_Product_Requires_Approval_Email extends WC_Email {
     5if (!class_exists('Marketking_New_Product_Requires_Approval_Email')) {
     6    class Marketking_New_Product_Requires_Approval_Email extends WC_Email {
    67
    7     public function __construct() {
     8        public function __construct() {
    89
    9         // set ID, this simply needs to be a unique name
    10         $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';
    1112
    12         // this is the title in WooCommerce Email settings
    13         $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');
    1415
    15         // this is the description in WooCommerce email settings
    16         $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');
    1718
    18         // these are the default heading and subject lines that can be overridden using the settings
    19         $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');
    2122
    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 here
    27         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();
    2829
    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' );
    3132
    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
    3540        }
    3641
    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        }
    38139
    39140    }
     141}
    40142
    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 }
    140143return new Marketking_New_Product_Requires_Approval_Email();
  • marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-new-rating-email.php

    r2863393 r3296674  
    33if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    44
    5 class Marketking_New_Rating_Email extends WC_Email {
     5if (!class_exists('Marketking_New_Rating_Email')) {
     6    class Marketking_New_Rating_Email extends WC_Email {
    67
    7     public function __construct() {
     8        public function __construct() {
    89
    9         // set ID, this simply needs to be a unique name
    10         $this->id = 'marketking_new_rating_email';
     10            // set ID, this simply needs to be a unique name
     11            $this->id = 'marketking_new_rating_email';
    1112
    12         // this is the title in WooCommerce Email settings
    13         $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');
    1415
    15         // this is the description in WooCommerce email settings
    16         $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');
    1718
    18         // these are the default heading and subject lines that can be overridden using the settings
    19         $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');
    2122
    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 here
    27         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();
    2829
    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        }
    30129
    31130    }
     131}
    32132
    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 }
    130133return new Marketking_New_Rating_Email();
  • marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-new-refund-email.php

    r3180752 r3296674  
    33if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    44
    5 class Marketking_New_Refund_Email extends WC_Email {
     5if (!class_exists('Marketking_New_Refund_Email')) {
     6    class Marketking_New_Refund_Email extends WC_Email {
    67
    7     public function __construct() {
     8        public function __construct() {
    89
    9         // set ID, this simply needs to be a unique name
    10         $this->id = 'marketking_new_refund_email';
     10            // set ID, this simply needs to be a unique name
     11            $this->id = 'marketking_new_refund_email';
    1112
    12         // this is the title in WooCommerce Email settings
    13         $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');
    1415
    15         // this is the description in WooCommerce email settings
    16         $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');
    1718
    18         // these are the default heading and subject lines that can be overridden using the settings
    19         $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');
    2122
    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 here
    27         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();
    2829
    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        }
    30130
    31131    }
    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 
    130132}
    131133return new Marketking_New_Refund_Email();
  • marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-new-vendor-requires-approval-email.php

    r2797852 r3296674  
    33if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    44
    5 class Marketking_New_Vendor_Requires_Approval_Email extends WC_Email {
     5if (!class_exists('Marketking_New_Vendor_Requires_Approval_Email')) {
     6    class Marketking_New_Vendor_Requires_Approval_Email extends WC_Email {
    67
    7     public function __construct() {
     8        public function __construct() {
    89
    9         // set ID, this simply needs to be a unique name
    10         $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';
    1112
    12         // this is the title in WooCommerce Email settings
    13         $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');
    1415
    15         // this is the description in WooCommerce email settings
    16         $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');
    1718
    18         // these are the default heading and subject lines that can be overridden using the settings
    19         $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');
    2122
    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 here
    27         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();
    2829
    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' );
    3132
    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
    3541        }
    3642
    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        }
    39147
    40148    }
     149}
    41150
    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 approval
    53         $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 }
    148151return new Marketking_New_Vendor_Requires_Approval_Email();
  • marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-new-verification-email.php

    r2863393 r3296674  
    33if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    44
    5 class Marketking_New_Verification_Email extends WC_Email {
     5if (!class_exists('Marketking_New_Verification_Email')) {
     6    class Marketking_New_Verification_Email extends WC_Email {
    67
    7     public function __construct() {
     8        public function __construct() {
    89
    9         // set ID, this simply needs to be a unique name
    10         $this->id = 'marketking_new_verification_email';
     10            // set ID, this simply needs to be a unique name
     11            $this->id = 'marketking_new_verification_email';
    1112
    12         // this is the title in WooCommerce Email settings
    13         $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');
    1415
    15         // this is the description in WooCommerce email settings
    16         $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');
    1718
    18         // these are the default heading and subject lines that can be overridden using the settings
    19         $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');
    2122
    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 here
    27         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();
    2829
    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        }
    30132
    31133    }
     134}
    32135
    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 }
    133136return new Marketking_New_Verification_Email();
  • marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-product-has-been-approved-email.php

    r2863393 r3296674  
    33if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    44
    5 class Marketking_Product_Has_Been_Approved_Email extends WC_Email {
     5if (!class_exists('Marketking_Product_Has_Been_Approved_Email')) {
     6    class Marketking_Product_Has_Been_Approved_Email extends WC_Email {
    67
    7     public function __construct() {
     8        public function __construct() {
    89
    9         // set ID, this simply needs to be a unique name
    10         $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';
    1112
    12         // this is the title in WooCommerce Email settings
    13         $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');
    1415
    15         // this is the description in WooCommerce email settings
    16         $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');
    1718
    18         // these are the default heading and subject lines that can be overridden using the settings
    19         $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');
    2122
    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 here
    27         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();
    2829
    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        }
    30138
    31139    }
     140}
    32141
    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 }
    139142return new Marketking_Product_Has_Been_Approved_Email();
  • marketking-multivendor-marketplace-for-woocommerce/trunk/public/emails/class-marketking-your-account-approved-email.php

    r2863393 r3296674  
    33if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    44
    5 class Marketking_Your_Account_Approved_Email extends WC_Email {
     5if (!class_exists('Marketking_Your_Account_Approved_Email')) {
     6    class Marketking_Your_Account_Approved_Email extends WC_Email {
    67
    7     public function __construct() {
     8        public function __construct() {
    89
    9         // set ID, this simply needs to be a unique name
    10         $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';
    1112
    12         // this is the title in WooCommerce Email settings
    13         $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');
    1415
    15            
    16         $this->customer_email = true;
     16               
     17            $this->customer_email = true;
    1718
    18         // this is the description in WooCommerce email settings
    19         $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');
    2021
    21         // these are the default heading and subject lines that can be overridden using the settings
    22         $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');
    2425
    2526
    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 here
    31         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();
    3233
    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        }
    34142
    35143    }
    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 
    142144}
    143145return new Marketking_Your_Account_Approved_Email();
  • marketking-multivendor-marketplace-for-woocommerce/trunk/readme.txt

    r3269159 r3296674  
    99Tested up to: 6.8
    1010Requires PHP: 5.6.20
    11 Stable tag: 2.0.50
    12 Version: 2.0.50
     11Stable tag: 2.0.70
     12Version: 2.0.70
    1313License: GPLv2 or later
    1414License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.