Changeset 2698466
- Timestamp:
- 03/23/2022 04:44:11 PM (4 years ago)
- Location:
- diller-loyalty/trunk
- Files:
-
- 9 edited
-
README.txt (modified) (2 diffs)
-
diller-loyalty.php (modified) (3 diffs)
-
includes/class-diller-loyalty-i18n.php (modified) (1 diff)
-
includes/class-diller-loyalty-woocommerce.php (modified) (2 diffs)
-
includes/class-diller-loyalty.php (modified) (1 diff)
-
languages/diller-loyalty-nb_NO.mo (modified) (previous)
-
languages/diller-loyalty-nb_NO.po (modified) (29 diffs)
-
languages/diller-loyalty.pot (modified) (9 diffs)
-
public/class-diller-loyalty-public.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
diller-loyalty/trunk/README.txt
r2691550 r2698466 4 4 Requires at least: 4.7 5 5 Tested up to: 5.9 6 Version: 2.2. 07 Stable tag: 2.2. 06 Version: 2.2.1 7 Stable tag: 2.2.1 8 8 Requires PHP: 7.3 9 9 WC requires at least: 3.8.0 … … 65 65 66 66 == Changelog == 67 = 2.2.1 = 68 * Fixed bug with coupons at checkout. 69 * Removed description from coupons. 70 67 71 = 2.2.0 = 68 72 * Support for Vipps transactions (integration with plugin [Checkout with Vipps for WooCommerce](https://wordpress.org/plugins/woo-vipps/)). -
diller-loyalty/trunk/diller-loyalty.php
r2691550 r2698466 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.2. 08 * Version: 2.2.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.2. 015 * Stable tag: 2.2.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.2. 0');33 define('DILLER_LOYALTY_VERSION', '2.2.1'); 34 34 } 35 35 -
diller-loyalty/trunk/includes/class-diller-loyalty-i18n.php
r2691550 r2698466 33 33 */ 34 34 public function load_plugin_textdomain() { 35 // Since WordPress 4.6 translations now take translate.wordpress.org as priority and so36 // plugins that are translated via translate.wordpress.org do not necessary require load_plugin_textdomain() anymore.37 // If you don’t want to add a load_plugin_textdomain() call to your plugin you have to set the Requires at least: field in your readme.txt to 4.6 or more.38 // More info: https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/#plugins-on-wordpress-org39 35 load_plugin_textdomain( DILLER_LOYALTY_PLUGIN_NAME, false, trailingslashit(plugin_basename( dirname( DILLER_LOYALTY_PLUGIN_FILE ) )) . 'languages/' ); 40 36 } 37 38 /* Since WordPress 4.6 translations now take translate.wordpress.org as priority and so 39 * plugins that are translated via translate.wordpress.org do not necessary require load_plugin_textdomain() anymore. 40 * If you don’t want to add a load_plugin_textdomain() call to your plugin you have to set the Requires at least: field in your readme.txt to 4.6 or more. 41 * More info: https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/#plugins-on-wordpress-org */ 42 43 // If you still want to load your own translations and not the ones from translate, you will have to use a hook filter named load_textdomain_mofile. 44 // Example with a .mo file in the /languages/ directory of your plugin, with this code inserted in the main plugin file: 45 // function my_plugin_load_my_own_textdomain( $mofile, $domain ) { 46 // if ( 'my-domain' === $domain && false !== strpos( $mofile, WP_LANG_DIR . '/plugins/' ) ) { 47 // $locale = apply_filters( 'plugin_locale', determine_locale(), $domain ); 48 // $mofile = WP_PLUGIN_DIR . '/' . dirname( plugin_basename( __FILE__ ) ) . '/languages/' . $domain . '-' . $locale . '.mo'; 49 // } 50 // return $mofile; 51 // } 52 // add_filter( 'load_textdomain_mofile', 'my_plugin_load_my_own_textdomain', 10, 2 ); 41 53 } -
diller-loyalty/trunk/includes/class-diller-loyalty-woocommerce.php
r2691550 r2698466 209 209 */ 210 210 function applied_coupon($coupon_code){ 211 if(!DillerLoyalty()->user_has_joined() || DillerLoyalty()->user_has_unsubscribed()) return; 212 213 $follower = DillerLoyalty()->get_current_follower(); 214 $result = DillerLoyalty()->get_api()->validate_coupon_for($follower, $coupon_code); 215 216 if(is_wp_error($result)){ 217 WC()->cart->remove_coupon($coupon_code); 218 wc_clear_notices(); 219 $error_message = join("<br/>", $result->get_error_messages('validation-error')); 220 wc_add_notice($error_message, 'error'); 221 } 211 $error_message = ""; 212 $coupon = new WC_Coupon($coupon_code); 213 $is_diller_coupon = (int)$coupon->get_meta('store_id', true) > 0; 214 $is_public_coupon = (int)$coupon->get_meta('is_public', true) === 1; 215 216 // Internal WC coupon or Diller public coupon. OK 217 if(!$is_diller_coupon || $is_public_coupon) return true; 218 219 // Coupon is not public. Validate it against the API for the current customer 220 if(DillerLoyalty()->user_has_joined() && !DillerLoyalty()->user_has_unsubscribed() ){ 221 $follower = DillerLoyalty()->get_current_follower(); 222 $result = DillerLoyalty()->get_api()->validate_coupon_for( $follower, $coupon_code ); 223 224 if (is_wp_error( $result ) ){ 225 $error_message = join( "<br/>", $result->get_error_messages( 'validation-error' ) ); 226 }else{ 227 return true; 228 } 229 } 230 231 // Not valid 232 $error_message = !empty($error_message) 233 ? $error_message 234 : esc_html__( 'You need to login and become a member of our Loyalty Program before you can use this coupon code.', 'diller-loyalty' ); 235 236 WC()->cart->remove_coupon( $coupon_code ); 237 wc_clear_notices(); 238 wc_add_notice( $error_message, 'error' ); 222 239 } 223 240 … … 436 453 <div class="diller-coupon-inner"> 437 454 <h3 class="diller-coupon-name"><?php echo esc_html($coupon->get_name()); ?></h3> 438 439 <?php if($coupon->get_description()): ?>440 <div class="diller-coupon-description">441 <?php echo esc_html($coupon->get_description()); ?>442 </div>443 <?php endif; ?>444 445 455 <div class="diller-coupon-discount diller-flex-col"> 446 456 <span><?php echo esc_html__('Discount', 'diller-loyalty'); ?></span> -
diller-loyalty/trunk/includes/class-diller-loyalty.php
r2691550 r2698466 434 434 435 435 // Cart / Coupons 436 $actions[] = array( 'hook' => 'woocommerce_applied_coupon', 'callback' => 'applied_coupon', 'priority' => 10, 'accepted_args' => 1 ); 436 437 if(is_user_logged_in()) { 437 438 $actions[] = array( 'hook' => 'woocommerce_before_cart', 'callback' => 'my_cart_show_available_coupons', 'priority' => 10, 'accepted_args' => 1 ); 438 $actions[] = array( 'hook' => 'woocommerce_applied_coupon', 'callback' => 'applied_coupon', 'priority' => 10, 'accepted_args' => 1 );439 439 } 440 440 -
diller-loyalty/trunk/languages/diller-loyalty-nb_NO.po
r2691550 r2698466 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2021-09-16 15:17+0000\n" 6 "PO-Revision-Date: 2022-03- 09 13:05+0000\n"6 "PO-Revision-Date: 2022-03-23 15:54+0000\n" 7 7 "Last-Translator: Tiago - Network Super Admin\n" 8 8 "Language-Team: Norwegian (Bokmål)\n" … … 60 60 msgstr "API-nøkkel" 61 61 62 #: includes/class-diller-loyalty-woocommerce.php:2 2963 #: includes/class-diller-loyalty-woocommerce.php:3 0262 #: includes/class-diller-loyalty-woocommerce.php:246 63 #: includes/class-diller-loyalty-woocommerce.php:319 64 64 msgid "Apply" 65 65 msgstr "Bruk" … … 76 76 77 77 #. translators: 1: is a line break <br>. 2: is the points earned with this purchase 78 #: includes/class-diller-loyalty-woocommerce.php:13 7478 #: includes/class-diller-loyalty-woocommerce.php:1384 79 79 #| msgid "" 80 80 #| "Become a member of our loyalty program and enjoy benefits and offers that " … … 109 109 msgstr "Bursdag" 110 110 111 #: includes/class-diller-loyalty-woocommerce.php: 291112 #: includes/class-diller-loyalty-woocommerce.php:3 73113 #: includes/class-diller-loyalty-woocommerce.php:4 74111 #: includes/class-diller-loyalty-woocommerce.php:308 112 #: includes/class-diller-loyalty-woocommerce.php:390 113 #: includes/class-diller-loyalty-woocommerce.php:484 114 114 msgid "Can be used unlimited times" 115 115 msgstr "Kan brukes ubegrenset ganger" … … 220 220 msgstr "Diller Lojalitet" 221 221 222 #: includes/class-diller-loyalty-woocommerce.php:2 63223 #: includes/class-diller-loyalty-woocommerce.php:3 45224 #: includes/class-diller-loyalty-woocommerce.php:4 46222 #: includes/class-diller-loyalty-woocommerce.php:280 223 #: includes/class-diller-loyalty-woocommerce.php:362 224 #: includes/class-diller-loyalty-woocommerce.php:456 225 225 msgid "Discount" 226 226 msgstr "Rabatt" … … 290 290 msgstr "Miljø:" 291 291 292 #: includes/class-diller-loyalty-woocommerce.php:4 80293 #: includes/class-diller-loyalty-woocommerce.php:6 21294 #: includes/class-diller-loyalty-woocommerce.php:6 41292 #: includes/class-diller-loyalty-woocommerce.php:490 293 #: includes/class-diller-loyalty-woocommerce.php:631 294 #: includes/class-diller-loyalty-woocommerce.php:651 295 295 msgid "expired" 296 296 msgstr "utløpt" 297 297 298 #: includes/class-diller-loyalty-woocommerce.php:4 80299 #: includes/class-diller-loyalty-woocommerce.php:6 21300 #: includes/class-diller-loyalty-woocommerce.php:6 41298 #: includes/class-diller-loyalty-woocommerce.php:490 299 #: includes/class-diller-loyalty-woocommerce.php:631 300 #: includes/class-diller-loyalty-woocommerce.php:651 301 301 msgid "Expires:" 302 302 msgstr "Utløper:" … … 343 343 msgstr "Gå til %1$sMy Account%2$s for å bli med i kundeklubben" 344 344 345 #: includes/class-diller-loyalty-woocommerce.php: 384345 #: includes/class-diller-loyalty-woocommerce.php:401 346 346 msgid "Go to coupon" 347 347 msgstr "Gå til kupong" 348 348 349 #: includes/class-diller-loyalty-woocommerce.php:5 48349 #: includes/class-diller-loyalty-woocommerce.php:558 350 350 msgid "Go to stamp" 351 351 msgstr "Gå til klippekort" … … 361 361 msgstr "https://diller.no/kontakt" 362 362 363 #: includes/class-diller-loyalty-woocommerce.php:7 37363 #: includes/class-diller-loyalty-woocommerce.php:747 364 364 #: includes/forms/class-diller-enrollment-form.php:183 365 365 msgid "" … … 371 371 372 372 #. translators: 1: Store Name, 2: link to Terms & Conditions URL, 3: closing url 373 #: includes/class-diller-loyalty-woocommerce.php:7 40373 #: includes/class-diller-loyalty-woocommerce.php:750 374 374 #: includes/forms/class-diller-enrollment-form.php:186 375 375 #| msgid "" … … 432 432 msgstr "Bli medlem av vår kundeklubb" 433 433 434 #: includes/class-diller-loyalty-woocommerce.php:13 70434 #: includes/class-diller-loyalty-woocommerce.php:1380 435 435 msgid "Join our Loyalty Program for exclusive benefits" 436 436 msgstr "Bli medlem av vår kundeklubb for unike tilbud og fordeler" … … 446 446 #: includes/class-diller-loyalty-woocommerce.php:44 447 447 #: includes/class-diller-loyalty-woocommerce.php:145 448 #: includes/class-diller-loyalty-woocommerce.php:7 49449 #: includes/class-diller-loyalty-woocommerce.php:12 14450 #: includes/class-diller-loyalty-woocommerce.php:1 292451 #: includes/class-diller-loyalty-woocommerce.php:13 10452 #: includes/class-diller-loyalty-woocommerce.php:13 47448 #: includes/class-diller-loyalty-woocommerce.php:759 449 #: includes/class-diller-loyalty-woocommerce.php:1224 450 #: includes/class-diller-loyalty-woocommerce.php:1302 451 #: includes/class-diller-loyalty-woocommerce.php:1320 452 #: includes/class-diller-loyalty-woocommerce.php:1357 453 453 #: includes/forms/class-diller-wc-enrollment-form.php:45 454 454 msgid "Loyalty Program" … … 456 456 457 457 #. translators: This is the note text to add to the current order. 1: Amount of points earned in this purchase 458 #: includes/class-diller-loyalty-woocommerce.php:11 79458 #: includes/class-diller-loyalty-woocommerce.php:1189 459 459 msgid "Loyalty Program - Customer earned %1$s points with this purchase." 460 460 msgstr "Kundeklubb - Kunde opptjent %1$s poeng." 461 461 462 462 #. translators: This is the note text to add to the current order when cancelled. 1: Amount of points earned in this purchase 463 #: includes/class-diller-loyalty-woocommerce.php:9 13463 #: includes/class-diller-loyalty-woocommerce.php:923 464 464 msgid "Loyalty Program - Order cancelled. %1$s points removed." 465 465 msgstr "Kundeklubb - Bestilling kansellert. %1$s poeng ble trukket." … … 493 493 msgstr "Min Konto" 494 494 495 #: includes/class-diller-loyalty-woocommerce.php:2 36496 #: includes/class-diller-loyalty-woocommerce.php:4 17495 #: includes/class-diller-loyalty-woocommerce.php:253 496 #: includes/class-diller-loyalty-woocommerce.php:434 497 497 msgid "My Coupons" 498 498 msgstr "Mine kuponger" 499 499 500 500 #: includes/class-diller-loyalty-woocommerce.php:41 501 #: includes/class-diller-loyalty-woocommerce.php:3 22501 #: includes/class-diller-loyalty-woocommerce.php:339 502 502 msgid "My coupons" 503 503 msgstr "Mine kuponger" … … 507 507 msgstr "Mitt nivå" 508 508 509 #: includes/class-diller-loyalty-woocommerce.php:2 49510 #: includes/class-diller-loyalty-woocommerce.php:3 31511 #: includes/class-diller-loyalty-woocommerce.php:4 29512 #: includes/class-diller-loyalty-woocommerce.php:5 24513 #: includes/class-diller-loyalty-woocommerce.php: 592509 #: includes/class-diller-loyalty-woocommerce.php:266 510 #: includes/class-diller-loyalty-woocommerce.php:348 511 #: includes/class-diller-loyalty-woocommerce.php:446 512 #: includes/class-diller-loyalty-woocommerce.php:534 513 #: includes/class-diller-loyalty-woocommerce.php:602 514 514 msgid "My points" 515 515 msgstr "Mine poeng" 516 516 517 517 #: includes/class-diller-loyalty-woocommerce.php:42 518 #: includes/class-diller-loyalty-woocommerce.php:5 12518 #: includes/class-diller-loyalty-woocommerce.php:522 519 519 msgid "My stamp cards" 520 520 msgstr "Mine klippekort" 521 521 522 #: includes/class-diller-loyalty-woocommerce.php:5 81522 #: includes/class-diller-loyalty-woocommerce.php:591 523 523 msgid "My stamps" 524 524 msgstr "Mine klippekort" … … 610 610 #: includes/class-diller-loyalty-woocommerce.php:93 611 611 #: includes/class-diller-loyalty-woocommerce.php:97 612 #: includes/class-diller-loyalty-woocommerce.php:2 49613 #: includes/class-diller-loyalty-woocommerce.php:3 31614 #: includes/class-diller-loyalty-woocommerce.php:4 29615 #: includes/class-diller-loyalty-woocommerce.php:5 24616 #: includes/class-diller-loyalty-woocommerce.php: 592617 #: includes/class-diller-loyalty-woocommerce.php:8 50612 #: includes/class-diller-loyalty-woocommerce.php:266 613 #: includes/class-diller-loyalty-woocommerce.php:348 614 #: includes/class-diller-loyalty-woocommerce.php:446 615 #: includes/class-diller-loyalty-woocommerce.php:534 616 #: includes/class-diller-loyalty-woocommerce.php:602 617 #: includes/class-diller-loyalty-woocommerce.php:860 618 618 msgid "points" 619 619 msgstr "poeng" 620 620 621 #: includes/class-diller-loyalty-woocommerce.php:8 32622 #: includes/class-diller-loyalty-woocommerce.php:8 68623 #: includes/class-diller-loyalty-woocommerce.php:13 49621 #: includes/class-diller-loyalty-woocommerce.php:842 622 #: includes/class-diller-loyalty-woocommerce.php:878 623 #: includes/class-diller-loyalty-woocommerce.php:1359 624 624 #: includes/forms/class-diller-refer-friend-form.php:109 625 625 msgid "Points earned" … … 658 658 msgstr "Foretrukkede land" 659 659 660 #: includes/class-diller-loyalty-woocommerce.php: 297661 #: includes/class-diller-loyalty-woocommerce.php:3 79660 #: includes/class-diller-loyalty-woocommerce.php:314 661 #: includes/class-diller-loyalty-woocommerce.php:396 662 662 msgid "Promo code" 663 663 msgstr "Rabattkode" 664 664 665 #: includes/class-diller-loyalty-woocommerce.php:4 86665 #: includes/class-diller-loyalty-woocommerce.php:496 666 666 msgid "Promo code:" 667 667 msgstr "Rabattkode:" … … 699 699 msgstr "Registrering fullført" 700 700 701 #: includes/class-diller-loyalty-woocommerce.php:2 30701 #: includes/class-diller-loyalty-woocommerce.php:247 702 702 msgid "Remove" 703 703 msgstr "Fjern" … … 751 751 "elektronisk i tilknytning til kundeklubben på SMS." 752 752 753 #: includes/class-diller-loyalty-woocommerce.php:5 36753 #: includes/class-diller-loyalty-woocommerce.php:546 754 754 msgid "Stamp can be used" 755 755 msgstr "Klippekort kan bli brukt" 756 756 757 #: includes/class-diller-loyalty-woocommerce.php:6 09757 #: includes/class-diller-loyalty-woocommerce.php:619 758 758 msgid "Stamp can be used:" 759 759 msgstr "Klippekort kan bli brukt:" 760 760 761 #: includes/class-diller-loyalty-woocommerce.php:6 27761 #: includes/class-diller-loyalty-woocommerce.php:637 762 762 msgid "Stamp has been used" 763 763 msgstr "Klippekort har blitt brukt" … … 780 780 msgstr "Butikk ID" 781 781 782 #: includes/class-diller-loyalty-woocommerce.php:13 81782 #: includes/class-diller-loyalty-woocommerce.php:1391 783 783 #: includes/forms/class-diller-enrollment-form.php:222 784 784 msgid "Subscribe" … … 820 820 821 821 #. translators: This is the text to append to the current order note, if coupons were applied. 1: This is the coupon codes for this order 822 #: includes/class-diller-loyalty-woocommerce.php:11 85822 #: includes/class-diller-loyalty-woocommerce.php:1195 823 823 msgid "The following coupons were used: %1$s" 824 824 msgstr "Følgende kuponger ble brukt: %1$s" … … 853 853 "eller ikke." 854 854 855 #: includes/class-diller-loyalty-woocommerce.php:5 38856 #: includes/class-diller-loyalty-woocommerce.php:6 11857 #: includes/class-diller-loyalty-woocommerce.php:6 27855 #: includes/class-diller-loyalty-woocommerce.php:548 856 #: includes/class-diller-loyalty-woocommerce.php:621 857 #: includes/class-diller-loyalty-woocommerce.php:637 858 858 msgid "time" 859 859 msgstr "gang" 860 860 861 #: includes/class-diller-loyalty-woocommerce.php:5 38862 #: includes/class-diller-loyalty-woocommerce.php:6 11863 #: includes/class-diller-loyalty-woocommerce.php:6 27861 #: includes/class-diller-loyalty-woocommerce.php:548 862 #: includes/class-diller-loyalty-woocommerce.php:621 863 #: includes/class-diller-loyalty-woocommerce.php:637 864 864 msgid "times" 865 865 msgstr "ganger" … … 869 869 msgstr "Ukjent" 870 870 871 #: includes/class-diller-loyalty-woocommerce.php:5 37872 #: includes/class-diller-loyalty-woocommerce.php:6 10871 #: includes/class-diller-loyalty-woocommerce.php:547 872 #: includes/class-diller-loyalty-woocommerce.php:620 873 873 msgid "unlimited" 874 874 msgstr "ubegrenset" … … 959 959 960 960 #. translators: %s: Remaining coupons usages. 961 #: includes/class-diller-loyalty-woocommerce.php: 284962 #: includes/class-diller-loyalty-woocommerce.php:3 66963 #: includes/class-diller-loyalty-woocommerce.php:4 67961 #: includes/class-diller-loyalty-woocommerce.php:301 962 #: includes/class-diller-loyalty-woocommerce.php:383 963 #: includes/class-diller-loyalty-woocommerce.php:477 964 964 msgid "You have <b>%s</b> usage left" 965 965 msgid_plural "You have <b>%s</b> usages left" … … 977 977 "preferansene dine." 978 978 979 #: includes/class-diller-loyalty-woocommerce.php:3 10980 #: includes/class-diller-loyalty-woocommerce.php: 392979 #: includes/class-diller-loyalty-woocommerce.php:327 980 #: includes/class-diller-loyalty-woocommerce.php:409 981 981 msgid "You have no coupons available at the time" 982 982 msgstr "Ingen tilgjengelig kuponger akkurat nå" 983 983 984 #: includes/class-diller-loyalty-woocommerce.php:5 57984 #: includes/class-diller-loyalty-woocommerce.php:567 985 985 msgid "You have no stamps available at the time" 986 986 msgstr "Du har ingen klippekort tilgjengelig for øyeblikket" 987 987 988 988 #. translators: 1: link to Terms & Conditions URL, 2: closing url 989 #: includes/class-diller-loyalty-woocommerce.php:1 296989 #: includes/class-diller-loyalty-woocommerce.php:1306 990 990 #| msgid "" 991 991 #| "You have unsubscribed the Loyalty Program. To enroll again and enjoy the " … … 1007 1007 msgstr "Skriv inn en gyldig dato" 1008 1008 1009 #: includes/class-diller-loyalty-woocommerce.php:7 211009 #: includes/class-diller-loyalty-woocommerce.php:731 1010 1010 #: includes/forms/class-diller-form.php:256 1011 1011 msgid "You must enter a valid mobile number" … … 1013 1013 1014 1014 #. translators: 1: is a line break <br>. 2: link to Loyalty Program enrollment form URL. 3: closing link 1015 #: includes/class-diller-loyalty-woocommerce.php:4 001016 #: includes/class-diller-loyalty-woocommerce.php: 4971015 #: includes/class-diller-loyalty-woocommerce.php:417 1016 #: includes/class-diller-loyalty-woocommerce.php:507 1017 1017 #, php-format 1018 1018 #| msgid "" … … 1027 1027 1028 1028 #. translators: 1: link to Loyalty Program enrollment form URL. 2: closing link 1029 #: includes/class-diller-loyalty-woocommerce.php:6 541029 #: includes/class-diller-loyalty-woocommerce.php:664 1030 1030 #, php-format 1031 1031 #| msgid "" … … 1040 1040 1041 1041 #. translators: 1: is a line break <br>. 2: link to Loyalty Program enrollment form URL. 3: closing link 1042 #: includes/class-diller-loyalty-woocommerce.php:5 651042 #: includes/class-diller-loyalty-woocommerce.php:575 1043 1043 msgid "" 1044 1044 "You need to enroll on the Loyalty Program first, before you can access your " … … 1060 1060 "kuponger.%1$sFor å melde deg på, vennligst %2$sklikk her%3$s" 1061 1061 1062 #: includes/class-diller-loyalty-woocommerce.php:234 1063 msgid "" 1064 "You need to login and become a member of our Loyalty Program before you can " 1065 "use this coupon code." 1066 msgstr "" 1067 "Du må logge inn og bli medlem av vår Kundeklubb før du kan bruke denne " 1068 "kupongen." 1069 1062 1070 #: admin/partials/diller-loyalty-admin-connect.php:51 1063 1071 msgid "Your API-Key (32 chars long)" -
diller-loyalty/trunk/languages/diller-loyalty.pot
r2691550 r2698466 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Diller Loyalty 2 2. 1.2\n"5 "Project-Id-Version: Diller Loyalty 2 2.2.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-03- 09T13:02:03+00:00\n"12 "POT-Creation-Date: 2022-03-23T15:45:04+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" … … 301 301 302 302 #: includes/class-diller-loyalty-woocommerce.php:41 303 #: includes/class-diller-loyalty-woocommerce.php:3 22303 #: includes/class-diller-loyalty-woocommerce.php:339 304 304 msgid "My coupons" 305 305 msgstr "" 306 306 307 307 #: includes/class-diller-loyalty-woocommerce.php:42 308 #: includes/class-diller-loyalty-woocommerce.php:5 12308 #: includes/class-diller-loyalty-woocommerce.php:522 309 309 msgid "My stamp cards" 310 310 msgstr "" … … 319 319 #: includes/class-diller-loyalty-woocommerce.php:44 320 320 #: includes/class-diller-loyalty-woocommerce.php:145 321 #: includes/class-diller-loyalty-woocommerce.php:7 49322 #: includes/class-diller-loyalty-woocommerce.php:12 14323 #: includes/class-diller-loyalty-woocommerce.php:1 292324 #: includes/class-diller-loyalty-woocommerce.php:13 10325 #: includes/class-diller-loyalty-woocommerce.php:13 47321 #: includes/class-diller-loyalty-woocommerce.php:759 322 #: includes/class-diller-loyalty-woocommerce.php:1224 323 #: includes/class-diller-loyalty-woocommerce.php:1302 324 #: includes/class-diller-loyalty-woocommerce.php:1320 325 #: includes/class-diller-loyalty-woocommerce.php:1357 326 326 #: includes/forms/class-diller-wc-enrollment-form.php:45 327 327 msgid "Loyalty Program" … … 343 343 #: includes/class-diller-loyalty-woocommerce.php:93 344 344 #: includes/class-diller-loyalty-woocommerce.php:97 345 #: includes/class-diller-loyalty-woocommerce.php:2 49346 #: includes/class-diller-loyalty-woocommerce.php:3 31347 #: includes/class-diller-loyalty-woocommerce.php:4 29348 #: includes/class-diller-loyalty-woocommerce.php:5 24349 #: includes/class-diller-loyalty-woocommerce.php: 592350 #: includes/class-diller-loyalty-woocommerce.php:8 50345 #: includes/class-diller-loyalty-woocommerce.php:266 346 #: includes/class-diller-loyalty-woocommerce.php:348 347 #: includes/class-diller-loyalty-woocommerce.php:446 348 #: includes/class-diller-loyalty-woocommerce.php:534 349 #: includes/class-diller-loyalty-woocommerce.php:602 350 #: includes/class-diller-loyalty-woocommerce.php:860 351 351 msgid "points" 352 352 msgstr "" … … 382 382 msgstr "" 383 383 384 #: includes/class-diller-loyalty-woocommerce.php:229 385 #: includes/class-diller-loyalty-woocommerce.php:302 384 #: includes/class-diller-loyalty-woocommerce.php:234 385 msgid "You need to login and become a member of our Loyalty Program before you can use this coupon code." 386 msgstr "" 387 388 #: includes/class-diller-loyalty-woocommerce.php:246 389 #: includes/class-diller-loyalty-woocommerce.php:319 386 390 msgid "Apply" 387 391 msgstr "" 388 392 389 #: includes/class-diller-loyalty-woocommerce.php:2 30393 #: includes/class-diller-loyalty-woocommerce.php:247 390 394 msgid "Remove" 391 395 msgstr "" 392 396 393 #: includes/class-diller-loyalty-woocommerce.php:2 36394 #: includes/class-diller-loyalty-woocommerce.php:4 17397 #: includes/class-diller-loyalty-woocommerce.php:253 398 #: includes/class-diller-loyalty-woocommerce.php:434 395 399 msgid "My Coupons" 396 400 msgstr "" 397 401 398 #: includes/class-diller-loyalty-woocommerce.php:2 49399 #: includes/class-diller-loyalty-woocommerce.php:3 31400 #: includes/class-diller-loyalty-woocommerce.php:4 29401 #: includes/class-diller-loyalty-woocommerce.php:5 24402 #: includes/class-diller-loyalty-woocommerce.php: 592402 #: includes/class-diller-loyalty-woocommerce.php:266 403 #: includes/class-diller-loyalty-woocommerce.php:348 404 #: includes/class-diller-loyalty-woocommerce.php:446 405 #: includes/class-diller-loyalty-woocommerce.php:534 406 #: includes/class-diller-loyalty-woocommerce.php:602 403 407 msgid "My points" 404 408 msgstr "" 405 409 406 #: includes/class-diller-loyalty-woocommerce.php:2 63407 #: includes/class-diller-loyalty-woocommerce.php:3 45408 #: includes/class-diller-loyalty-woocommerce.php:4 46410 #: includes/class-diller-loyalty-woocommerce.php:280 411 #: includes/class-diller-loyalty-woocommerce.php:362 412 #: includes/class-diller-loyalty-woocommerce.php:456 409 413 msgid "Discount" 410 414 msgstr "" 411 415 412 416 #. translators: %s: Remaining coupons usages. 413 #: includes/class-diller-loyalty-woocommerce.php: 284414 #: includes/class-diller-loyalty-woocommerce.php:3 66415 #: includes/class-diller-loyalty-woocommerce.php:4 67417 #: includes/class-diller-loyalty-woocommerce.php:301 418 #: includes/class-diller-loyalty-woocommerce.php:383 419 #: includes/class-diller-loyalty-woocommerce.php:477 416 420 msgid "You have <b>%s</b> usage left" 417 421 msgid_plural "You have <b>%s</b> usages left" … … 419 423 msgstr[1] "" 420 424 421 #: includes/class-diller-loyalty-woocommerce.php: 291422 #: includes/class-diller-loyalty-woocommerce.php:3 73423 #: includes/class-diller-loyalty-woocommerce.php:4 74425 #: includes/class-diller-loyalty-woocommerce.php:308 426 #: includes/class-diller-loyalty-woocommerce.php:390 427 #: includes/class-diller-loyalty-woocommerce.php:484 424 428 msgid "Can be used unlimited times" 425 429 msgstr "" 426 430 427 #: includes/class-diller-loyalty-woocommerce.php: 297428 #: includes/class-diller-loyalty-woocommerce.php:3 79431 #: includes/class-diller-loyalty-woocommerce.php:314 432 #: includes/class-diller-loyalty-woocommerce.php:396 429 433 msgid "Promo code" 430 434 msgstr "" 431 435 432 #: includes/class-diller-loyalty-woocommerce.php:3 10433 #: includes/class-diller-loyalty-woocommerce.php: 392436 #: includes/class-diller-loyalty-woocommerce.php:327 437 #: includes/class-diller-loyalty-woocommerce.php:409 434 438 msgid "You have no coupons available at the time" 435 439 msgstr "" 436 440 437 #: includes/class-diller-loyalty-woocommerce.php: 384441 #: includes/class-diller-loyalty-woocommerce.php:401 438 442 msgid "Go to coupon" 439 443 msgstr "" 440 444 441 445 #. translators: 1: is a line break <br>. 2: link to Loyalty Program enrollment form URL. 3: closing link 442 #: includes/class-diller-loyalty-woocommerce.php:4 00443 #: includes/class-diller-loyalty-woocommerce.php: 497446 #: includes/class-diller-loyalty-woocommerce.php:417 447 #: includes/class-diller-loyalty-woocommerce.php:507 444 448 msgid "You need to enroll on the Loyalty Program first, before you can access your coupons.%1$sTo enroll, please %2$sclick here%3$s" 445 449 msgstr "" 446 450 447 #: includes/class-diller-loyalty-woocommerce.php:480 451 #: includes/class-diller-loyalty-woocommerce.php:490 452 #: includes/class-diller-loyalty-woocommerce.php:631 453 #: includes/class-diller-loyalty-woocommerce.php:651 454 msgid "Expires:" 455 msgstr "" 456 457 #: includes/class-diller-loyalty-woocommerce.php:490 458 #: includes/class-diller-loyalty-woocommerce.php:631 459 #: includes/class-diller-loyalty-woocommerce.php:651 460 msgid "expired" 461 msgstr "" 462 463 #: includes/class-diller-loyalty-woocommerce.php:496 464 msgid "Promo code:" 465 msgstr "" 466 467 #: includes/class-diller-loyalty-woocommerce.php:546 468 msgid "Stamp can be used" 469 msgstr "" 470 471 #: includes/class-diller-loyalty-woocommerce.php:547 472 #: includes/class-diller-loyalty-woocommerce.php:620 473 msgid "unlimited" 474 msgstr "" 475 476 #: includes/class-diller-loyalty-woocommerce.php:548 448 477 #: includes/class-diller-loyalty-woocommerce.php:621 449 #: includes/class-diller-loyalty-woocommerce.php:6 41450 msgid " Expires:"451 msgstr "" 452 453 #: includes/class-diller-loyalty-woocommerce.php: 480478 #: includes/class-diller-loyalty-woocommerce.php:637 479 msgid "time" 480 msgstr "" 481 482 #: includes/class-diller-loyalty-woocommerce.php:548 454 483 #: includes/class-diller-loyalty-woocommerce.php:621 455 #: includes/class-diller-loyalty-woocommerce.php:641 456 msgid "expired" 457 msgstr "" 458 459 #: includes/class-diller-loyalty-woocommerce.php:486 460 msgid "Promo code:" 461 msgstr "" 462 463 #: includes/class-diller-loyalty-woocommerce.php:536 464 msgid "Stamp can be used" 465 msgstr "" 466 467 #: includes/class-diller-loyalty-woocommerce.php:537 468 #: includes/class-diller-loyalty-woocommerce.php:610 469 msgid "unlimited" 470 msgstr "" 471 472 #: includes/class-diller-loyalty-woocommerce.php:538 473 #: includes/class-diller-loyalty-woocommerce.php:611 474 #: includes/class-diller-loyalty-woocommerce.php:627 475 msgid "time" 476 msgstr "" 477 478 #: includes/class-diller-loyalty-woocommerce.php:538 479 #: includes/class-diller-loyalty-woocommerce.php:611 480 #: includes/class-diller-loyalty-woocommerce.php:627 484 #: includes/class-diller-loyalty-woocommerce.php:637 481 485 msgid "times" 482 486 msgstr "" 483 487 484 #: includes/class-diller-loyalty-woocommerce.php:5 48488 #: includes/class-diller-loyalty-woocommerce.php:558 485 489 msgid "Go to stamp" 486 490 msgstr "" 487 491 488 #: includes/class-diller-loyalty-woocommerce.php:5 57492 #: includes/class-diller-loyalty-woocommerce.php:567 489 493 msgid "You have no stamps available at the time" 490 494 msgstr "" 491 495 492 496 #. translators: 1: is a line break <br>. 2: link to Loyalty Program enrollment form URL. 3: closing link 493 #: includes/class-diller-loyalty-woocommerce.php:5 65497 #: includes/class-diller-loyalty-woocommerce.php:575 494 498 msgid "You need to enroll on the Loyalty Program first, before you can access your stamp cards.%1$sTo enroll, please %2$sclick here%3$s" 495 499 msgstr "" 496 500 497 #: includes/class-diller-loyalty-woocommerce.php:5 81501 #: includes/class-diller-loyalty-woocommerce.php:591 498 502 msgid "My stamps" 499 503 msgstr "" 500 504 501 #: includes/class-diller-loyalty-woocommerce.php:6 09505 #: includes/class-diller-loyalty-woocommerce.php:619 502 506 msgid "Stamp can be used:" 503 507 msgstr "" 504 508 505 #: includes/class-diller-loyalty-woocommerce.php:6 27509 #: includes/class-diller-loyalty-woocommerce.php:637 506 510 msgid "Stamp has been used" 507 511 msgstr "" 508 512 509 513 #. translators: 1: link to Loyalty Program enrollment form URL. 2: closing link 510 #: includes/class-diller-loyalty-woocommerce.php:6 54514 #: includes/class-diller-loyalty-woocommerce.php:664 511 515 msgid "You need to enroll on the Loyalty Program first, before you can access your stamp cards. To enroll, please %1$sclick here%2$s" 512 516 msgstr "" 513 517 514 #: includes/class-diller-loyalty-woocommerce.php:7 21518 #: includes/class-diller-loyalty-woocommerce.php:731 515 519 #: includes/forms/class-diller-form.php:256 516 520 msgid "You must enter a valid mobile number" 517 521 msgstr "" 518 522 519 #: includes/class-diller-loyalty-woocommerce.php:7 37523 #: includes/class-diller-loyalty-woocommerce.php:747 520 524 #: includes/forms/class-diller-enrollment-form.php:183 521 525 msgid "I want to get offers and benefits that suit me based on my preferences and purchase history." … … 523 527 524 528 #. translators: 1: Store Name, 2: link to Terms & Conditions URL, 3: closing url 525 #: includes/class-diller-loyalty-woocommerce.php:7 40529 #: includes/class-diller-loyalty-woocommerce.php:750 526 530 #: includes/forms/class-diller-enrollment-form.php:186 527 531 msgid "I want to join %1$s's loyalty club and receive benefits, offers and other marketing communications electronically, including email, SMS and the like. Read our %2$sprivacy policy here%3$s" 528 532 msgstr "" 529 533 530 #: includes/class-diller-loyalty-woocommerce.php:8 32531 #: includes/class-diller-loyalty-woocommerce.php:8 68532 #: includes/class-diller-loyalty-woocommerce.php:13 49534 #: includes/class-diller-loyalty-woocommerce.php:842 535 #: includes/class-diller-loyalty-woocommerce.php:878 536 #: includes/class-diller-loyalty-woocommerce.php:1359 533 537 #: includes/forms/class-diller-refer-friend-form.php:109 534 538 msgid "Points earned" … … 536 540 537 541 #. translators: This is the note text to add to the current order when cancelled. 1: Amount of points earned in this purchase 538 #: includes/class-diller-loyalty-woocommerce.php:9 13542 #: includes/class-diller-loyalty-woocommerce.php:923 539 543 msgid "Loyalty Program - Order cancelled. %1$s points removed." 540 544 msgstr "" 541 545 542 546 #. translators: This is the note text to add to the current order. 1: Amount of points earned in this purchase 543 #: includes/class-diller-loyalty-woocommerce.php:11 79547 #: includes/class-diller-loyalty-woocommerce.php:1189 544 548 msgid "Loyalty Program - Customer earned %1$s points with this purchase." 545 549 msgstr "" 546 550 547 551 #. translators: This is the text to append to the current order note, if coupons were applied. 1: This is the coupon codes for this order 548 #: includes/class-diller-loyalty-woocommerce.php:11 85552 #: includes/class-diller-loyalty-woocommerce.php:1195 549 553 msgid "The following coupons were used: %1$s" 550 554 msgstr "" 551 555 552 556 #. translators: 1: link to Terms & Conditions URL, 2: closing url 553 #: includes/class-diller-loyalty-woocommerce.php:1 296557 #: includes/class-diller-loyalty-woocommerce.php:1306 554 558 msgid "You have unsubscribed the Loyalty Program. To enroll again and enjoy the benefits, please %1$sclick here%2$s" 555 559 msgstr "" 556 560 557 #: includes/class-diller-loyalty-woocommerce.php:13 70561 #: includes/class-diller-loyalty-woocommerce.php:1380 558 562 msgid "Join our Loyalty Program for exclusive benefits" 559 563 msgstr "" 560 564 561 565 #. translators: 1: is a line break <br>. 2: is the points earned with this purchase 562 #: includes/class-diller-loyalty-woocommerce.php:13 74566 #: includes/class-diller-loyalty-woocommerce.php:1384 563 567 msgid "Become a member of our loyalty program and enjoy benefits and offers that is only available for our members. With this purchase you could have earned %1$s points" 564 568 msgstr "" 565 569 566 #: includes/class-diller-loyalty-woocommerce.php:13 81570 #: includes/class-diller-loyalty-woocommerce.php:1391 567 571 #: includes/forms/class-diller-enrollment-form.php:222 568 572 msgid "Subscribe" -
diller-loyalty/trunk/public/class-diller-loyalty-public.php
r2654758 r2698466 39 39 public function enqueue_styles() { 40 40 41 // TODO: Substitute PROD vs DEV41 42 42 43 43 wp_enqueue_style( DILLER_LOYALTY_PLUGIN_NAME, trailingslashit( DILLER_LOYALTY_URL ) . 'assets/css/diller-loyalty-bundle-public.css', array(), DillerLoyalty()->get_version("assets"), 'all' ); … … 56 56 public function enqueue_scripts() { 57 57 58 // TODO: Substitute PROD vs DEV58 59 59 // Enqueues all the necessary 3rd party scripts bundles into a single file. This matches all the dependency files added via npm command 60 60 wp_enqueue_script( DILLER_LOYALTY_JS_VENDORS_BUNDLE_HANDLE, trailingslashit( DILLER_LOYALTY_URL ) . 'assets/js/vendors-bundle.js', array( 'jquery' ), DillerLoyalty()->get_version("assets"), true );
Note: See TracChangeset
for help on using the changeset viewer.