Changeset 2683354
- Timestamp:
- 02/22/2022 10:48:08 PM (4 years ago)
- Location:
- diller-loyalty/trunk
- Files:
-
- 10 edited
-
README.txt (modified) (2 diffs)
-
admin/class-diller-loyalty-admin.php (modified) (1 diff)
-
admin/partials/diller-loyalty-admin-settings.php (modified) (3 diffs)
-
diller-loyalty.php (modified) (3 diffs)
-
includes/class-diller-loyalty-store.php (modified) (4 diffs)
-
includes/class-diller-loyalty-woocommerce.php (modified) (11 diffs)
-
includes/class-diller-loyalty.php (modified) (1 diff)
-
languages/diller-loyalty-nb_NO.mo (modified) (previous)
-
languages/diller-loyalty-nb_NO.po (modified) (26 diffs)
-
languages/diller-loyalty.pot (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
diller-loyalty/trunk/README.txt
r2682907 r2683354 4 4 Requires at least: 4.7 5 5 Tested up to: 5.9 6 Version: 2.1. 07 Stable tag: 2.1. 06 Version: 2.1.1 7 Stable tag: 2.1.1 8 8 Requires PHP: 7.3 9 9 WC requires at least: 3.8.0 … … 65 65 66 66 == Changelog == 67 = 2.1.1 = 68 * Added new field in admin settings to allow "Join Loyalty Program" checkboxes to be displayed after billing form (default) or terms 69 * Fixes bug with marketing fields logic at checkout 70 * Fixes bug with displaying points to customers that joined for the first time via checkout 71 67 72 = 2.1.0 = 68 73 * New feature: Members can reset their account or fulfil an incomplete registration by SMS code verification -
diller-loyalty/trunk/admin/class-diller-loyalty-admin.php
r2682907 r2683354 213 213 $new_configs["default_date_placeholder"] = sanitize_text_field($_POST["default_date_placeholder"]); 214 214 $new_configs["min_enrollment_age"] = sanitize_text_field($_POST["min_enrollment_age"]); 215 $new_configs["join_checkboxes_placement"] = sanitize_text_field($_POST["join_checkboxes_placement"]); 215 216 216 217 $store_configs = wp_parse_args($new_configs, DillerLoyalty()->get_store()->get_configs(true)); -
diller-loyalty/trunk/admin/partials/diller-loyalty-admin-settings.php
r2654758 r2683354 24 24 $enable_recaptcha = get_partial_view_param("enable_recaptcha"); 25 25 $min_enrollment_age = get_partial_view_param("min_enrollment_age"); 26 $join_checkboxes_placement = get_partial_view_param("join_checkboxes_placement"); 26 27 27 28 $phone_configs = get_partial_view_param("phone"); … … 153 154 <table class="form-table" role="presentation"> 154 155 <tr> 155 <th><?php esc_html_e( "Minimum age for enrollment", "diller-loyalty" ); ?></th>156 <td>157 <input type="number" id="min_enrollment_age" class="small-text" name="min_enrollment_age" value="<?php echo esc_attr( $min_enrollment_age ); ?>" /><br />158 <p class="description"><?php esc_html_e( "The minimum age allowed, for enrolling the Loyalty Program", "diller-loyalty" ); ?></p>159 </td>160 </tr>161 <tr>162 156 <th scope="row"> 163 157 <label for="stamps_enabled"><?php esc_html_e( "Enable stamps usage", "diller-loyalty" ); ?></label> … … 167 161 <?php esc_html_e( "Enable", "diller-loyalty" ); ?><br /> 168 162 <p class="description"><?php esc_html_e( "If checked, Stamps feature will be available for this store.", "diller-loyalty" ); ?></p> 163 </td> 164 </tr> 165 </table> 166 </div><!-- end of inside --> 167 </div> 168 169 <div class="diller-mb-3"> 170 <h2><?php esc_html_e( "Other settings", "diller-loyalty" ); ?></h2> 171 <div id="diller-forms-description"> 172 <p><?php esc_html_e( "Other settings for customizing Loyalty Program enrollment"); ?></p> 173 </div> 174 <div class="inside"> 175 <table class="form-table" role="presentation"> 176 <tr> 177 <th><?php esc_html_e( "Minimum age for enrollment", "diller-loyalty" ); ?></th> 178 <td> 179 <input type="number" id="min_enrollment_age" class="small-text" name="min_enrollment_age" value="<?php echo esc_attr( $min_enrollment_age ); ?>" /><br /> 180 <p class="description"><?php esc_html_e( "The minimum age allowed, for enrolling the Loyalty Program", "diller-loyalty" ); ?></p> 181 </td> 182 </tr> 183 <tr> 184 <th scope="row"> 185 <label for="checkboxes_placement[]"><?php esc_html_e( "Display \"Join Loyalty Program\" checkboxes", "diller-loyalty" ); ?></label> 186 </th> 187 <td> 188 <fieldset> 189 <input name="join_checkboxes_placement" type="radio" id="checkbox_placement_billing_form" value="billing" <?php checked($join_checkboxes_placement === 'billing'); ?> > 190 <?php esc_html_e( "After billing details", "diller-loyalty" ); ?><br /> 191 <p class="description"><?php esc_html_e( "Display checkboxes for joining the Loyalty Program right after the billing fields, at checkout. This is the default setting.", "diller-loyalty" ); ?></p> 192 <br /> 193 </fieldset> 194 <fieldset> 195 <input name="join_checkboxes_placement" type="radio" id="checkbox_placement_terms" value="terms" <?php checked($join_checkboxes_placement === 'terms'); ?> > 196 <?php esc_html_e( "Before terms & conditions", "diller-loyalty" ); ?><br /> 197 <p class="description"><?php esc_html_e( "Display checkboxes for joining the Loyalty Program right before the terms and conditions checkbox field, at checkout.", "diller-loyalty" ); ?></p> 198 </fieldset> 169 199 </td> 170 200 </tr> -
diller-loyalty/trunk/diller-loyalty.php
r2682907 r2683354 6 6 * Plugin URI: https://diller.no/ 7 7 * Description: Diller is a loyalty platform for businesses that is easy, affordable and profitable and integrates seamlessly with your WooCommerce shop. 8 * Version: 2.1. 08 * Version: 2.1.1 9 9 * Author: Diller AS 10 10 * Author URI: https://diller.no/kontakt/ … … 13 13 * Text Domain: diller-loyalty 14 14 * Domain Path: /languages 15 * Stable tag: 2.1. 015 * Stable tag: 2.1.1 16 16 * Requires at least: 4.7 17 17 * Tested up to: 5.8.2 … … 31 31 // Start at version 2.0.0 and use SemVer - https://semver.org 32 32 if ( ! defined( 'DILLER_LOYALTY_VERSION' ) ) { 33 define('DILLER_LOYALTY_VERSION', '2.1. 0');33 define('DILLER_LOYALTY_VERSION', '2.1.1'); 34 34 } 35 35 -
diller-loyalty/trunk/includes/class-diller-loyalty-store.php
r2654758 r2683354 27 27 protected $default_postal_code_format = ''; 28 28 protected $min_enrollment_age = 15; 29 protected $join_checkboxes_placement = ''; 29 30 30 31 /** … … 181 182 public function get_min_enrollment_age(): int { 182 183 return $this->min_enrollment_age; 184 } 185 186 public function get_join_checkboxes_placement(): string { 187 return $this->join_checkboxes_placement; 183 188 } 184 189 … … 220 225 "default_postal_code_format" => "", 221 226 "min_enrollment_age" => 15, 227 "join_checkboxes_placement" => "billing", 222 228 "phone" => array( 223 229 "enable_number_lookup" => true, … … 291 297 $this->default_postal_code_format = $this->store_data["default_postal_code_format"] ?? $default_data["default_postal_code_format"] ?? ''; 292 298 $this->min_enrollment_age = $this->store_data["min_enrollment_age"] ?? $default_data["min_enrollment_age"] ?? ''; 293 299 $this->join_checkboxes_placement = $this->store_data["join_checkboxes_placement"] ?? $default_data["join_checkboxes_placement"] ?? ''; 294 300 295 301 -
diller-loyalty/trunk/includes/class-diller-loyalty-woocommerce.php
r2682907 r2683354 641 641 642 642 643 function checkout_ display_consent_fields_after_terms_and_conditions() {643 function checkout_page_display_consent_fields() { 644 644 645 645 … … 673 673 674 674 function order_thank_you_summary_show_points($order_id) { 675 if(DillerLoyalty()->get_store()->get_point_system_enabled() && DillerLoyalty()->user_has_joined()): 676 $order_total = get_post_meta($order_id, '_order_total', true); 677 $currency_to_points_ratio = DillerLoyalty()->get_store()->get_currency_to_points_ratio(); 678 //Test URL: http://localhost:8080/checkout/order-received/100/?key=wc_order_2jhYu1vG6cEMY 675 676 //Test URL: http://localhost:8080/checkout/order-received/100/?key=wc_order_2jhYu1vG6cEMY 677 if(($total_points = $this->get_order_points($order_id)) > 0): 679 678 ?> 680 679 <section class="diller-woocommerce-section"> … … 684 683 <tr> 685 684 <th class="diller-woocommerce-table-cell"><?php echo esc_html__('Points earned','diller-loyalty'); ?></th> 686 <th class="diller-woocommerce-table-cell"><?php echo ($order_total * $currency_to_points_ratio). ' ' . esc_html__( 'points', 'diller-loyalty' ); ?></th>685 <th class="diller-woocommerce-table-cell"><?php echo $total_points . ' ' . esc_html__( 'points', 'diller-loyalty' ); ?></th> 687 686 </tr> 688 687 </tbody> … … 729 728 730 729 function update_order_received_text($thank_you_text, $order) { 731 if(false === is_a($order, 'WC_Order')) return $thank_you_text; 732 733 $order_user = $order->get_user(); 734 if(false === is_a($order_user, 'WP_User')) return $thank_you_text; 735 736 if(DillerLoyalty()->get_store()->get_point_system_enabled() && DillerLoyalty()->user_has_joined($order_user->ID)): 737 $order_total = get_post_meta( $order->get_id(), '_order_total', true ); 738 $currency_to_points_ratio = DillerLoyalty()->get_store()->get_currency_to_points_ratio(); 739 740 $thank_you_text = '<ul class="diller-woocommerce-order-overview diller-woocommerce-order-points">'; 741 $thank_you_text .= ' <li>'; 742 $thank_you_text .= esc_html__('Points earned', 'diller-loyalty') . ': <b>' . $order_total * $currency_to_points_ratio . '</b>'; 743 $thank_you_text .= ' </li>'; 744 $thank_you_text .= '</ul>'; 745 endif; 730 if(($total_points = $this->get_order_points($order)) == 0) return $thank_you_text; 731 732 $thank_you_text = '<ul class="diller-woocommerce-order-overview diller-woocommerce-order-points">'; 733 $thank_you_text .= ' <li>'; 734 $thank_you_text .= esc_html__('Points earned', 'diller-loyalty') . ': <b>' . $total_points . '</b>'; 735 $thank_you_text .= ' </li>'; 736 $thank_you_text .= '</ul>'; 746 737 747 738 return $thank_you_text; … … 782 773 $result = DillerLoyalty()->get_api()->cancel_order_transaction_for($follower, $order->get_id()); 783 774 if(!is_wp_error($result)){ 775 delete_post_meta($order->get_id(), '_diller_points'); 784 776 DillerLoyalty()->get_logger()->info(sprintf("Successfully cancelled order# %s", $order->get_id()), $follower); 785 777 return true; … … 816 808 $country = $order->get_billing_country(); 817 809 $follower = false; 818 $checkout_membership_consent_accepted = !empty($_POST['diller_membership_consent_accepted'])819 ? filter_var($_POST['diller_membership_consent_accepted'], FILTER_SANITIZE_STRING)820 : 'No';821 810 822 811 // Handle normal scenario, for registered and logged-in Customer that has already enrolled LP before … … 844 833 845 834 // Handle scenario where Customer is new and wants to join the LP or has already joined LP, but never used the webshop 835 $checkout_membership_consent_accepted = !empty($_POST['diller_membership_consent_accepted']) 836 ? filter_var($_POST['diller_membership_consent_accepted'], FILTER_SANITIZE_STRING) 837 : 'No'; 838 846 839 $purchase_history_consent_accepted = !empty($_POST['diller_purchase_history_consent_accepted']) 847 840 ? filter_var($_POST['diller_purchase_history_consent_accepted'], FILTER_SANITIZE_STRING) … … 870 863 $follower_exists = (!is_wp_error($follower) && is_a($follower, 'Diller_Loyalty_Follower')); 871 864 if($follower_exists): 872 // Quit is Follower hasn't accepted the GDPR before andat checkout865 // Quit because Follower hasn't accepted the GDPR before and now at checkout 873 866 if($follower->get_membership_consent_accepted() !== 'Yes' && $checkout_membership_consent_accepted !== 'Yes') return; 874 867 … … 882 875 } 883 876 884 // Check if Follower didn't accept purchase_history_consent from before, but accepted it now at checkout 885 if($follower->get_purchase_history_consent_accepted() !== 'Yes' && $purchase_history_consent_accepted === 'Yes'){ 886 $follower->set_purchase_history_consent_accepted($purchase_history_consent_accepted); 887 } 877 // Check if Follower haven't accepted purchase_history, sms and email consents before, but accepted it now, at checkout 878 $checkout_membership_consent_accepted = ($follower->get_membership_consent_accepted() === 'Yes') ? 'Yes' : $checkout_membership_consent_accepted; 879 $purchase_history_consent_accepted = ($follower->get_purchase_history_consent_accepted() === 'Yes') ? 'Yes' : $purchase_history_consent_accepted; 880 $marketing_sms_consent_accepted = ($follower->get_marketing_sms_consent_accepted() === 'Yes') ? 'Yes' : $marketing_sms_consent_accepted; 881 $marketing_email_consent_accepted = ($follower->get_marketing_email_consent_accepted() === 'Yes') ? 'Yes' : $marketing_email_consent_accepted; 888 882 endif; 889 883 … … 941 935 $result = DillerLoyalty()->get_api()->save_follower_transactions($follower, $order); 942 936 if(!is_wp_error($result)){ 937 938 // Transaction was successfully communicated, so we can safely save here the amount of points earned. 939 // This is mainly to cover the scenario where customer enrolled the LP at checkout. 940 $order_total = get_post_meta( $order->get_id(), '_order_total', true ); 941 $currency_to_points_ratio = DillerLoyalty()->get_store()->get_currency_to_points_ratio(); 942 update_post_meta($order->get_id(), '_diller_points', $order_total * $currency_to_points_ratio); 943 943 944 DillerLoyalty()->get_logger()->info(sprintf("Transaction saved for order# %d.", $order->get_id()), $follower); 944 945 return true; … … 1065 1066 } 1066 1067 } 1068 1069 private function get_order_points($order) { 1070 if (is_int( $order )) { 1071 $order = new WC_Order($order); 1072 } 1073 1074 if(false === is_a($order, 'WC_Order') || !DillerLoyalty()->get_store()->get_point_system_enabled()) return 0; 1075 1076 if(!($total_points = get_post_meta($order->get_id(), '_diller_points', true))){ 1077 1078 // We can only display points for customers that joined LP and gave consent to save transactions 1079 if(!DillerLoyalty()->user_has_joined() || 'No' === DillerLoyalty()->get_current_follower()->get_purchase_history_consent_accepted()) return 0; 1080 1081 // Fallback 1082 $order_total = get_post_meta($order->get_id(), '_order_total', true); 1083 $currency_to_points_ratio = DillerLoyalty()->get_store()->get_currency_to_points_ratio(); 1084 $total_points = ($order_total * $currency_to_points_ratio); 1085 } 1086 1087 return $total_points; 1088 } 1067 1089 } -
diller-loyalty/trunk/includes/class-diller-loyalty.php
r2682907 r2683354 439 439 // Checkout 440 440 $filters[] = array( 'hook' => 'woocommerce_checkout_fields', 'callback' => 'checkout_form_add_custom_fields', 'priority' => 10, 'accepted_args' => 1 ); 441 $actions[] = array( 'hook' => 'woocommerce_checkout_terms_and_conditions', 'callback' => 'checkout_display_consent_fields_after_terms_and_conditions', 'priority' => 10, 'accepted_args' => 1 ); 442 443 // Check for Klarna checkout plugin 441 442 // Consent checkboxes placement. Defaults to billing 443 $consent_fields_action = "woocommerce_after_checkout_billing_form"; 444 if(DillerLoyalty()->get_store()->get_join_checkboxes_placement() === "terms"){ 445 $consent_fields_action = 'woocommerce_checkout_terms_and_conditions'; 446 } 447 $actions[] = array( 'hook' => $consent_fields_action, 'callback' => 'checkout_page_display_consent_fields', 'priority' => 10, 'accepted_args' => 1 ); 448 449 // Check for Klarna checkout plugin existence. 444 450 if(class_exists( 'KCO' )) { 445 451 // Ref: https://docs.woocommerce.com/document/klarna-checkout-hooks-actions-filters/ 446 // Klarna checkout form takes over the native WC checkout form. So we add here the custom fields for joining Diller447 $actions[] = array( 'hook' => 'kco_wc_after_order_review', 'callback' => 'checkout_ display_consent_fields_after_terms_and_conditions', 'priority' => 10, 'accepted_args' => 1 );452 // Klarna checkout form takes over the native WC checkout billing form. So we add here the custom fields for joining Diller here. 453 $actions[] = array( 'hook' => 'kco_wc_after_order_review', 'callback' => 'checkout_page_display_consent_fields', 'priority' => 10, 'accepted_args' => 1 ); 448 454 } 449 455 -
diller-loyalty/trunk/languages/diller-loyalty-nb_NO.po
r2682907 r2683354 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2021-09-16 15:17+0000\n" 6 "PO-Revision-Date: 2022-02-2 1 14:06+0000\n"6 "PO-Revision-Date: 2022-02-22 22:35+0000\n" 7 7 "Last-Translator: Tiago - Network Super Admin\n" 8 "Language-Team: Nor wegian (Bokmål)\n"8 "Language-Team: Norsk bokmål\n" 9 9 "Language: nb_NO\n" 10 10 "Plural-Forms: nplurals=2; plural=n != 1;\n" … … 40 40 msgstr "Adresse" 41 41 42 #: admin/partials/diller-loyalty-admin-settings.php:36 42 #: admin/partials/diller-loyalty-admin-settings.php:190 43 msgid "After billing details" 44 msgstr "Etter faktureringsdetaljer" 45 46 #: admin/partials/diller-loyalty-admin-settings.php:37 43 47 msgid "Allow phone numbers from all countries" 44 48 msgstr "Tillat telefonnumre fra andre land" 45 49 46 #: admin/partials/diller-loyalty-admin-settings.php:3 750 #: admin/partials/diller-loyalty-admin-settings.php:38 47 51 msgid "Allow phone numbers from all countries, except for…" 48 52 msgstr "Tillat telefonnumre fra alle land, bortsett fra... " 49 53 50 #: admin/partials/diller-loyalty-admin-settings.php:3 854 #: admin/partials/diller-loyalty-admin-settings.php:39 51 55 msgid "Allow phone numbers from specific countries" 52 56 msgstr "Tillat telefonnumre fra bestemte land" … … 82 86 "%1$s%2$sKlikk her%3$s for å bli medlem nå." 83 87 88 #: admin/partials/diller-loyalty-admin-settings.php:196 89 msgid "Before terms & conditions" 90 msgstr "Før vilkår og betingelser" 91 84 92 #: includes/forms/class-diller-enrollment-form.php:80 85 93 msgid "Birth date" 86 94 msgstr "Bursdag" 87 95 88 #: admin/partials/diller-loyalty-admin-settings.php:1 0996 #: admin/partials/diller-loyalty-admin-settings.php:110 89 97 msgid "Choose one or more countries, to display on the top of the list" 90 98 msgstr "Velg ett eller flere land for å vises øverst på listen" … … 94 102 msgstr "Lukk" 95 103 96 #: admin/partials/diller-loyalty-admin-settings.php:1 19104 #: admin/partials/diller-loyalty-admin-settings.php:120 97 105 msgid "Configure date formats, etc" 98 106 msgstr "Konfigurer datoformater, osv" … … 145 153 msgstr "Kunne ikke hente landskode fra telefonnummeret" 146 154 147 #: admin/partials/diller-loyalty-admin-settings.php:9 1155 #: admin/partials/diller-loyalty-admin-settings.php:92 148 156 msgid "Countries" 149 157 msgstr "Land" … … 169 177 msgstr "Dato kan ikke være høyere enn i dag" 170 178 171 #: admin/partials/diller-loyalty-admin-settings.php:12 4179 #: admin/partials/diller-loyalty-admin-settings.php:125 172 180 msgid "Default date placeholder" 173 181 msgstr "Standard datoformat" 174 182 175 #: admin/partials/diller-loyalty-admin-settings.php:6 3183 #: admin/partials/diller-loyalty-admin-settings.php:64 176 184 msgid "Default phone country code" 177 185 msgstr "Standard landskode" … … 206 214 msgstr "Avvis varsel." 207 215 216 #: admin/partials/diller-loyalty-admin-settings.php:185 217 msgid "Display \"Join Loyalty Program\" checkboxes" 218 msgstr "Vis \"Bli med i kundeklubb\" avmerkingsbokser" 219 220 #: admin/partials/diller-loyalty-admin-settings.php:191 221 msgid "" 222 "Display checkboxes for joining the Loyalty Program right after the billing " 223 "fields, at checkout. This is the default setting." 224 msgstr "" 225 "Vis avmerkingsbokser for å bli med i kundeklubb rett etter " 226 "faktureringsdetaljer, ved kassen. Dette er standardinnstillingen." 227 228 #: admin/partials/diller-loyalty-admin-settings.php:197 229 msgid "" 230 "Display checkboxes for joining the Loyalty Program right before the terms " 231 "and conditions checkbox field, at checkout." 232 msgstr "" 233 "Vis avmerkingsbokser for å bli med i kundeklubb rett før avmerkingsboksen " 234 "for vilkår og betingelser, ved kassen." 235 208 236 #: includes/forms/class-diller-wc-enrollment-form.php:11 209 237 msgid "" … … 224 252 msgstr "E-post" 225 253 226 #: admin/partials/diller-loyalty-admin-settings.php:5 8227 #: admin/partials/diller-loyalty-admin-settings.php:7 5228 #: admin/partials/diller-loyalty-admin-settings.php:16 7254 #: admin/partials/diller-loyalty-admin-settings.php:59 255 #: admin/partials/diller-loyalty-admin-settings.php:76 256 #: admin/partials/diller-loyalty-admin-settings.php:161 229 257 msgid "Enable" 230 258 msgstr "Aktiver" 231 259 232 #: admin/partials/diller-loyalty-admin-settings.php:1 63260 #: admin/partials/diller-loyalty-admin-settings.php:157 233 261 msgid "Enable stamps usage" 234 262 msgstr "Aktiver klippekort bruk" 235 263 236 #: admin/partials/diller-loyalty-admin-settings.php:7 0264 #: admin/partials/diller-loyalty-admin-settings.php:71 237 265 msgid "Enhanced phone field" 238 266 msgstr "Forbedre telefon-felt" … … 274 302 msgstr "Fornavn" 275 303 276 #: admin/partials/diller-loyalty-admin-settings.php:11 7304 #: admin/partials/diller-loyalty-admin-settings.php:118 277 305 msgid "Formats" 278 306 msgstr "Formater" … … 330 358 "vilkårene her%3$s" 331 359 332 #: admin/partials/diller-loyalty-admin-settings.php: 59360 #: admin/partials/diller-loyalty-admin-settings.php:60 333 361 msgid "" 334 362 "If checked, Diller will try to fetch name and address automatically from " … … 337 365 "Hvis huket på, Diller vil hente opplysninger fra 1881.no for telefonnummeret" 338 366 339 #: admin/partials/diller-loyalty-admin-settings.php:7 6367 #: admin/partials/diller-loyalty-admin-settings.php:77 340 368 msgid "" 341 369 "If checked, form displays an enhanced phone input field, with dropdown to " … … 345 373 "rullegardin for å velge landskoder og validere telefonnumre" 346 374 347 #: admin/partials/diller-loyalty-admin-settings.php:16 8375 #: admin/partials/diller-loyalty-admin-settings.php:162 348 376 msgid "If checked, Stamps feature will be available for this store." 349 377 msgstr "" … … 372 400 msgstr "Invitasjon status" 373 401 374 #: includes/class-diller-loyalty.php:8 48402 #: includes/class-diller-loyalty.php:854 375 403 msgid "Join Loyalty Program" 376 404 msgstr "Bli medlem av vår kundeklubb" … … 386 414 #: includes/class-diller-loyalty-woocommerce.php:44 387 415 #: includes/class-diller-loyalty-woocommerce.php:145 388 #: includes/class-diller-loyalty-woocommerce.php:68 1389 #: includes/class-diller-loyalty-woocommerce.php:96 2390 #: includes/class-diller-loyalty-woocommerce.php:104 0391 #: includes/class-diller-loyalty-woocommerce.php:105 8416 #: includes/class-diller-loyalty-woocommerce.php:680 417 #: includes/class-diller-loyalty-woocommerce.php:963 418 #: includes/class-diller-loyalty-woocommerce.php:1041 419 #: includes/class-diller-loyalty-woocommerce.php:1059 392 420 #: includes/forms/class-diller-wc-enrollment-form.php:45 393 421 msgid "Loyalty Program" … … 410 438 msgstr "Kvalifiseringsperiode for oppgradering av medlemsnivå" 411 439 412 #: admin/partials/diller-loyalty-admin-settings.php:1 55440 #: admin/partials/diller-loyalty-admin-settings.php:177 413 441 msgid "Minimum age for enrollment" 414 442 msgstr "Aldersgrense for å bli med i kundeklubb" … … 418 446 msgstr "Mobilnummer" 419 447 420 #: admin/partials/diller-loyalty-admin-settings.php:14 8448 #: admin/partials/diller-loyalty-admin-settings.php:149 421 449 msgid "My Account" 422 450 msgstr "Min Konto" … … 494 522 "kontakt med oss." 495 523 496 #: admin/partials/diller-loyalty-admin-settings.php:46 524 #: admin/partials/diller-loyalty-admin-settings.php:170 525 msgid "Other settings" 526 msgstr "Andre innstillinger" 527 528 #: admin/partials/diller-loyalty-admin-settings.php:47 497 529 msgid "Phone" 498 530 msgstr "Telefonnummer" 499 531 500 #: admin/partials/diller-loyalty-admin-settings.php:5 4532 #: admin/partials/diller-loyalty-admin-settings.php:55 501 533 msgid "Phone lookup - 1881.no" 502 534 msgstr "Søk telefonnummer på 1881.no" … … 510 542 msgstr "Telefonnummer er ugyldig" 511 543 512 #: admin/partials/diller-loyalty-admin-settings.php:8 0544 #: admin/partials/diller-loyalty-admin-settings.php:81 513 545 msgid "Phone numbers allowed" 514 546 msgstr "Telefonnumre tillatt" … … 532 564 #: includes/class-diller-loyalty-woocommerce.php:438 533 565 #: includes/class-diller-loyalty-woocommerce.php:506 534 #: includes/class-diller-loyalty-woocommerce.php:68 6535 #: includes/class-diller-loyalty-woocommerce.php:72 5566 #: includes/class-diller-loyalty-woocommerce.php:685 567 #: includes/class-diller-loyalty-woocommerce.php:724 536 568 msgid "points" 537 569 msgstr "poeng" 538 570 539 #: includes/class-diller-loyalty-woocommerce.php:68 5540 #: includes/class-diller-loyalty-woocommerce.php:70 7541 #: includes/class-diller-loyalty-woocommerce.php:7 42571 #: includes/class-diller-loyalty-woocommerce.php:684 572 #: includes/class-diller-loyalty-woocommerce.php:706 573 #: includes/class-diller-loyalty-woocommerce.php:734 542 574 #: includes/forms/class-diller-refer-friend-form.php:109 543 575 msgid "Points earned" … … 572 604 msgstr "Ønsker ikke å dele" 573 605 574 #: admin/partials/diller-loyalty-admin-settings.php:10 2606 #: admin/partials/diller-loyalty-admin-settings.php:103 575 607 msgid "Preferred countries" 576 608 msgstr "Foretrukkede land" … … 621 653 msgstr "Lagre mine preferanser" 622 654 623 #: admin/partials/diller-loyalty-admin-settings.php: 176655 #: admin/partials/diller-loyalty-admin-settings.php:206 624 656 msgid "Save Settings" 625 657 msgstr "Lagre instillinger" … … 633 665 msgstr "Send verifiseringskode" 634 666 635 #: diller-loyalty.php:13 4667 #: diller-loyalty.php:133 636 668 msgid "Settings" 637 669 msgstr "Innstillinger" 638 670 639 #: admin/class-diller-loyalty-admin.php:22 0671 #: admin/class-diller-loyalty-admin.php:221 640 672 msgid "Settings saved" 641 673 msgstr "Instillingene ble lagret" … … 706 738 707 739 #. translators: 1: new line break 708 #: admin/partials/diller-loyalty-admin-settings.php:13 0740 #: admin/partials/diller-loyalty-admin-settings.php:131 709 741 msgid "" 710 742 "The default placeholder for date input fields to provide a hint on how to " … … 720 752 msgstr "Du må oppgi en gyldig e-postadresse." 721 753 722 #: admin/partials/diller-loyalty-admin-settings.php:1 58754 #: admin/partials/diller-loyalty-admin-settings.php:180 723 755 msgid "The minimum age allowed, for enrolling the Loyalty Program" 724 756 msgstr "Minimumsalderen tillatt for å melde seg på Kundeklubb" … … 741 773 msgstr "E-post finnes allerede" 742 774 743 #: admin/partials/diller-loyalty-admin-settings.php:8 7775 #: admin/partials/diller-loyalty-admin-settings.php:88 744 776 msgid "" 745 777 "This option lets you define countries for which phone numbers are allowed or " … … 882 914 883 915 #. translators: 1: link to Terms & Conditions URL, 2: closing url 884 #: includes/class-diller-loyalty-woocommerce.php:104 4916 #: includes/class-diller-loyalty-woocommerce.php:1045 885 917 #| msgid "" 886 918 #| "You have unsubscribed the Loyalty Program. To enroll again and enjoy the " -
diller-loyalty/trunk/languages/diller-loyalty.pot
r2682907 r2683354 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Diller Loyalty 2 2.1. 0\n"5 "Project-Id-Version: Diller Loyalty 2 2.1.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/diller-loyalty\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2022-02-2 1T14:04:58+00:00\n"12 "POT-Creation-Date: 2022-02-22T22:26:45+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.6.0\n" … … 53 53 msgstr "" 54 54 55 #: admin/class-diller-loyalty-admin.php:22 055 #: admin/class-diller-loyalty-admin.php:221 56 56 msgid "Settings saved" 57 57 msgstr "" … … 114 114 msgstr "" 115 115 116 #: admin/partials/diller-loyalty-admin-settings.php:3 6116 #: admin/partials/diller-loyalty-admin-settings.php:37 117 117 msgid "Allow phone numbers from all countries" 118 118 msgstr "" 119 119 120 #: admin/partials/diller-loyalty-admin-settings.php:3 7120 #: admin/partials/diller-loyalty-admin-settings.php:38 121 121 msgid "Allow phone numbers from all countries, except for…" 122 122 msgstr "" 123 123 124 #: admin/partials/diller-loyalty-admin-settings.php:3 8124 #: admin/partials/diller-loyalty-admin-settings.php:39 125 125 msgid "Allow phone numbers from specific countries" 126 126 msgstr "" 127 127 128 #: admin/partials/diller-loyalty-admin-settings.php:4 6128 #: admin/partials/diller-loyalty-admin-settings.php:47 129 129 msgid "Phone" 130 130 msgstr "" 131 131 132 #: admin/partials/diller-loyalty-admin-settings.php:5 4132 #: admin/partials/diller-loyalty-admin-settings.php:55 133 133 msgid "Phone lookup - 1881.no" 134 134 msgstr "" 135 135 136 #: admin/partials/diller-loyalty-admin-settings.php:5 8137 #: admin/partials/diller-loyalty-admin-settings.php:7 5138 #: admin/partials/diller-loyalty-admin-settings.php:16 7136 #: admin/partials/diller-loyalty-admin-settings.php:59 137 #: admin/partials/diller-loyalty-admin-settings.php:76 138 #: admin/partials/diller-loyalty-admin-settings.php:161 139 139 msgid "Enable" 140 140 msgstr "" 141 141 142 #: admin/partials/diller-loyalty-admin-settings.php: 59142 #: admin/partials/diller-loyalty-admin-settings.php:60 143 143 msgid "If checked, Diller will try to fetch name and address automatically from 1881.no, by using the phone number." 144 144 msgstr "" 145 145 146 #: admin/partials/diller-loyalty-admin-settings.php:6 3146 #: admin/partials/diller-loyalty-admin-settings.php:64 147 147 msgid "Default phone country code" 148 148 msgstr "" 149 149 150 #: admin/partials/diller-loyalty-admin-settings.php:7 0150 #: admin/partials/diller-loyalty-admin-settings.php:71 151 151 msgid "Enhanced phone field" 152 152 msgstr "" 153 153 154 #: admin/partials/diller-loyalty-admin-settings.php:7 6154 #: admin/partials/diller-loyalty-admin-settings.php:77 155 155 msgid "If checked, form displays an enhanced phone input field, with dropdown to pick country codes and validate phone numbers" 156 156 msgstr "" 157 157 158 #: admin/partials/diller-loyalty-admin-settings.php:8 0158 #: admin/partials/diller-loyalty-admin-settings.php:81 159 159 msgid "Phone numbers allowed" 160 160 msgstr "" 161 161 162 #: admin/partials/diller-loyalty-admin-settings.php:8 7162 #: admin/partials/diller-loyalty-admin-settings.php:88 163 163 msgid "This option lets you define countries for which phone numbers are allowed or not." 164 164 msgstr "" 165 165 166 #: admin/partials/diller-loyalty-admin-settings.php:9 1166 #: admin/partials/diller-loyalty-admin-settings.php:92 167 167 msgid "Countries" 168 168 msgstr "" 169 169 170 #: admin/partials/diller-loyalty-admin-settings.php:10 2170 #: admin/partials/diller-loyalty-admin-settings.php:103 171 171 msgid "Preferred countries" 172 172 msgstr "" 173 173 174 #: admin/partials/diller-loyalty-admin-settings.php:1 09174 #: admin/partials/diller-loyalty-admin-settings.php:110 175 175 msgid "Choose one or more countries, to display on the top of the list" 176 176 msgstr "" 177 177 178 #: admin/partials/diller-loyalty-admin-settings.php:11 7178 #: admin/partials/diller-loyalty-admin-settings.php:118 179 179 msgid "Formats" 180 180 msgstr "" 181 181 182 #: admin/partials/diller-loyalty-admin-settings.php:1 19182 #: admin/partials/diller-loyalty-admin-settings.php:120 183 183 msgid "Configure date formats, etc" 184 184 msgstr "" 185 185 186 #: admin/partials/diller-loyalty-admin-settings.php:12 4186 #: admin/partials/diller-loyalty-admin-settings.php:125 187 187 msgid "Default date placeholder" 188 188 msgstr "" 189 189 190 190 #. translators: 1: new line break 191 #: admin/partials/diller-loyalty-admin-settings.php:13 0191 #: admin/partials/diller-loyalty-admin-settings.php:131 192 192 msgid "The default placeholder for date input fields to provide a hint on how to type the date.%1$sEg. Norway: dd.mm.åååå, Sweden: åååå-mm-dd, UK: dd/mm/yyyy, US: mm/dd/yyyyetc." 193 193 msgstr "" 194 194 195 #: admin/partials/diller-loyalty-admin-settings.php:14 8195 #: admin/partials/diller-loyalty-admin-settings.php:149 196 196 msgid "My Account" 197 197 msgstr "" 198 198 199 #: admin/partials/diller-loyalty-admin-settings.php:155 199 #: admin/partials/diller-loyalty-admin-settings.php:157 200 msgid "Enable stamps usage" 201 msgstr "" 202 203 #: admin/partials/diller-loyalty-admin-settings.php:162 204 msgid "If checked, Stamps feature will be available for this store." 205 msgstr "" 206 207 #: admin/partials/diller-loyalty-admin-settings.php:170 208 msgid "Other settings" 209 msgstr "" 210 211 #: admin/partials/diller-loyalty-admin-settings.php:177 200 212 msgid "Minimum age for enrollment" 201 213 msgstr "" 202 214 203 #: admin/partials/diller-loyalty-admin-settings.php:1 58215 #: admin/partials/diller-loyalty-admin-settings.php:180 204 216 msgid "The minimum age allowed, for enrolling the Loyalty Program" 205 217 msgstr "" 206 218 207 #: admin/partials/diller-loyalty-admin-settings.php:163 208 msgid "Enable stamps usage" 209 msgstr "" 210 211 #: admin/partials/diller-loyalty-admin-settings.php:168 212 msgid "If checked, Stamps feature will be available for this store." 213 msgstr "" 214 215 #: admin/partials/diller-loyalty-admin-settings.php:176 219 #: admin/partials/diller-loyalty-admin-settings.php:185 220 msgid "Display \"Join Loyalty Program\" checkboxes" 221 msgstr "" 222 223 #: admin/partials/diller-loyalty-admin-settings.php:190 224 msgid "After billing details" 225 msgstr "" 226 227 #: admin/partials/diller-loyalty-admin-settings.php:191 228 msgid "Display checkboxes for joining the Loyalty Program right after the billing fields, at checkout. This is the default setting." 229 msgstr "" 230 231 #: admin/partials/diller-loyalty-admin-settings.php:196 232 msgid "Before terms & conditions" 233 msgstr "" 234 235 #: admin/partials/diller-loyalty-admin-settings.php:197 236 msgid "Display checkboxes for joining the Loyalty Program right before the terms and conditions checkbox field, at checkout." 237 msgstr "" 238 239 #: admin/partials/diller-loyalty-admin-settings.php:206 216 240 msgid "Save Settings" 217 241 msgstr "" 218 242 219 #: diller-loyalty.php:13 4243 #: diller-loyalty.php:133 220 244 msgid "Settings" 221 245 msgstr "" … … 271 295 #: includes/class-diller-loyalty-woocommerce.php:44 272 296 #: includes/class-diller-loyalty-woocommerce.php:145 273 #: includes/class-diller-loyalty-woocommerce.php:68 1274 #: includes/class-diller-loyalty-woocommerce.php:96 2275 #: includes/class-diller-loyalty-woocommerce.php:104 0276 #: includes/class-diller-loyalty-woocommerce.php:105 8297 #: includes/class-diller-loyalty-woocommerce.php:680 298 #: includes/class-diller-loyalty-woocommerce.php:963 299 #: includes/class-diller-loyalty-woocommerce.php:1041 300 #: includes/class-diller-loyalty-woocommerce.php:1059 277 301 #: includes/forms/class-diller-wc-enrollment-form.php:45 278 302 msgid "Loyalty Program" … … 299 323 #: includes/class-diller-loyalty-woocommerce.php:438 300 324 #: includes/class-diller-loyalty-woocommerce.php:506 301 #: includes/class-diller-loyalty-woocommerce.php:68 6302 #: includes/class-diller-loyalty-woocommerce.php:72 5325 #: includes/class-diller-loyalty-woocommerce.php:685 326 #: includes/class-diller-loyalty-woocommerce.php:724 303 327 msgid "points" 304 328 msgstr "" … … 470 494 msgstr "" 471 495 472 #: includes/class-diller-loyalty-woocommerce.php:68 5473 #: includes/class-diller-loyalty-woocommerce.php:70 7474 #: includes/class-diller-loyalty-woocommerce.php:7 42496 #: includes/class-diller-loyalty-woocommerce.php:684 497 #: includes/class-diller-loyalty-woocommerce.php:706 498 #: includes/class-diller-loyalty-woocommerce.php:734 475 499 #: includes/forms/class-diller-refer-friend-form.php:109 476 500 msgid "Points earned" … … 478 502 479 503 #. translators: 1: link to Terms & Conditions URL, 2: closing url 480 #: includes/class-diller-loyalty-woocommerce.php:104 4504 #: includes/class-diller-loyalty-woocommerce.php:1045 481 505 msgid "You have unsubscribed the Loyalty Program. To enroll again and enjoy the benefits, please %1$sclick here%2$s" 482 506 msgstr "" 483 507 484 #: includes/class-diller-loyalty.php:8 48508 #: includes/class-diller-loyalty.php:854 485 509 msgid "Join Loyalty Program" 486 510 msgstr ""
Note: See TracChangeset
for help on using the changeset viewer.