Changeset 3831230
- Timestamp:
- 11/28/2026 10:38:37 AM (less than one hour ago)
- Location:
- wpruby-shipping-rates-canada-post
- Files:
-
- 2 added
- 16 edited
- 1 copied
-
assets/banner-1544x500.png (modified) ( previous)
-
assets/banner-772x250.png (modified) ( previous)
-
tags/1.0.1 (copied) (copied from wpruby-shipping-rates-canada-post/trunk )
-
tags/1.0.1/assets/css/admin.css (modified) (1 diff)
-
tags/1.0.1/languages/wpruby-shipping-rates-canada-post.pot (modified) (9 diffs)
-
tags/1.0.1/readme.txt (modified) (7 diffs)
-
tags/1.0.1/src/Admin/Upsell.php (added)
-
tags/1.0.1/src/Plugin.php (modified) (3 diffs)
-
tags/1.0.1/src/Shipping/Method.php (modified) (2 diffs)
-
tags/1.0.1/src/Shipping/SettingsSection.php (modified) (2 diffs)
-
tags/1.0.1/wpruby-shipping-rates-canada-post.php (modified) (2 diffs)
-
trunk/assets/css/admin.css (modified) (1 diff)
-
trunk/languages/wpruby-shipping-rates-canada-post.pot (modified) (9 diffs)
-
trunk/readme.txt (modified) (7 diffs)
-
trunk/src/Admin/Upsell.php (added)
-
trunk/src/Plugin.php (modified) (3 diffs)
-
trunk/src/Shipping/Method.php (modified) (2 diffs)
-
trunk/src/Shipping/SettingsSection.php (modified) (2 diffs)
-
trunk/wpruby-shipping-rates-canada-post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpruby-shipping-rates-canada-post/tags/1.0.1/assets/css/admin.css
r3831201 r3831230 346 346 } 347 347 348 /* Canada Post Pro */ 349 350 .wpruby-cps-pro { 351 border-top: 4px solid var(--wpruby-cps-red); 352 } 353 354 .wpruby-cps-card.wpruby-cps-pro h3 .dashicons { 355 color: var(--wpruby-cps-red); 356 } 357 358 .wpruby-cps-pro__list { 359 margin: 0 0 12px; 360 } 361 362 .wpruby-cps-pro__list li { 363 display: flex; 364 align-items: flex-start; 365 gap: 6px; 366 margin: 0 0 6px; 367 } 368 369 .wpruby-cps-pro__list .dashicons { 370 flex: none; 371 color: var(--wpruby-cps-ok); 372 } 373 374 .wpruby-cps-pro p { 375 margin: 0 0 8px; 376 } 377 378 .wp-core-ui .wpruby-cps-sidebar .button.wpruby-cps-pro__button { 379 width: 100%; 380 text-align: center; 381 } 382 383 .wpruby-cps-pro__note { 384 color: var(--wpruby-cps-muted); 385 font-size: 12px; 386 } 387 388 .wpruby-cps-zone-pro { 389 max-width: 760px; 390 } 391 348 392 /* Help links */ 349 393 -
wpruby-shipping-rates-canada-post/tags/1.0.1/languages/wpruby-shipping-rates-canada-post.pot
r3831201 r3831230 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WPRuby Shipping Rates for Canada Post 1.0.0\n"5 "Project-Id-Version: WPRuby Shipping Rates for Canada Post and WooCommerce 1.0.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpruby-shipping-rates-canada-post\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: 2026-11-2 7T11:04:13+00:00\n"12 "POT-Creation-Date: 2026-11-28T10:36:32+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" … … 17 17 #. Plugin Name of the plugin 18 18 #: wpruby-shipping-rates-canada-post.php 19 msgid "WPRuby Shipping Rates for Canada Post "19 msgid "WPRuby Shipping Rates for Canada Post and WooCommerce" 20 20 msgstr "" 21 21 … … 59 59 #: src/Admin/ConnectionCheck.php:80 60 60 msgid "This is a Test app, so the price is a sample." 61 msgstr "" 62 63 #: src/Admin/Upsell.php:40 64 msgid "Print Canada Post labels from the order screen, one order or in bulk" 65 msgstr "" 66 67 #: src/Admin/Upsell.php:41 68 msgid "End-of-day manifests, pickups and return labels" 69 msgstr "" 70 71 #: src/Admin/Upsell.php:42 72 msgid "Tracking numbers and status updates in order emails and My Account" 73 msgstr "" 74 75 #: src/Admin/Upsell.php:43 76 msgid "Delivery to a post office chosen at checkout, and AddressComplete" 77 msgstr "" 78 79 #: src/Admin/Upsell.php:44 80 msgid "Your own boxes with 3D packing, free shipping thresholds and per-service price adjustments" 81 msgstr "" 82 83 #: src/Admin/Upsell.php:57 84 msgid "Upgrade to Canada Post Pro" 85 msgstr "" 86 87 #: src/Admin/Upsell.php:66 88 msgid "Get Canada Post Pro" 89 msgstr "" 90 91 #: src/Admin/Upsell.php:67 92 msgid "(opens in a new tab)" 93 msgstr "" 94 95 #: src/Admin/Upsell.php:70 96 msgid "Your shipping zones keep their settings when you upgrade." 61 97 msgstr "" 62 98 … … 101 137 msgstr "" 102 138 103 #: src/Plugin.php:6 2139 #: src/Plugin.php:63 104 140 msgid "Settings" 105 141 msgstr "" 106 142 107 #: src/Plugin.php:63 143 #: src/Plugin.php:64 144 msgid "Get the Pro version" 145 msgstr "" 146 147 #: src/Plugin.php:65 108 148 msgid "Support" 109 149 msgstr "" 110 150 111 #: src/Plugin.php:10 4151 #: src/Plugin.php:106 112 152 msgid "Checking…" 113 153 msgstr "" 114 154 115 #: src/Plugin.php:10 5155 #: src/Plugin.php:107 116 156 msgid "The check could not run. Reload the page and try again." 117 157 msgstr "" 118 158 119 #: src/Plugin.php:10 6159 #: src/Plugin.php:108 120 160 msgid "Connected" 121 161 msgstr "" 122 162 123 163 #. translators: 1: services turned on, 2: services in the group 124 #: src/Plugin.php:1 08164 #: src/Plugin.php:110 125 165 #: src/Shipping/Method.php:194 126 166 msgid "%1$d of %2$d on" 127 167 msgstr "" 128 168 129 #: src/Plugin.php:12 2169 #: src/Plugin.php:124 130 170 msgid "Canada Post needs a ship-from postal code in Canada. Enter it in the Canada Post settings, or set a Canadian store address." 131 171 msgstr "" 132 172 133 173 #. translators: %s: store currency code 134 #: src/Plugin.php:1 28174 #: src/Plugin.php:130 135 175 msgid "Canada Post quotes in CAD, but your store uses %s. Set the CAD exchange rate in the Canada Post settings so customers pay the right amount." 136 176 msgstr "" 137 177 138 #: src/Plugin.php:13 4178 #: src/Plugin.php:136 139 179 msgid "Canada Post is connected with a Test app: rates are samples and only shop managers see them. Switch to a Production app before customers order." 140 180 msgstr "" … … 227 267 #: src/Shipping/Method.php:55 228 268 #: src/Shipping/Method.php:66 229 #: src/Shipping/SettingsSection.php:2 5269 #: src/Shipping/SettingsSection.php:26 230 270 msgid "Canada Post" 231 271 msgstr "" … … 342 382 343 383 #. translators: %s: link to the Canada Post settings 344 #: src/Shipping/Method.php:26 4384 #: src/Shipping/Method.php:265 345 385 msgid "Customers see no Canada Post rates until you connect your Canada Post account in %s." 346 386 msgstr "" 347 387 348 #: src/Shipping/Method.php:26 5388 #: src/Shipping/Method.php:266 349 389 msgid "the Canada Post settings" 350 390 msgstr "" 351 391 352 392 #. translators: 1: number of parcels, 2: quoted services 353 #: src/Shipping/Method.php:32 0393 #: src/Shipping/Method.php:324 354 394 msgid "Canada Post quoted %1$d parcel(s): %2$s" 355 395 msgstr "" 356 396 357 #: src/Shipping/Method.php:32 2397 #: src/Shipping/Method.php:326 358 398 msgid "no services" 359 399 msgstr "" 360 400 361 401 #. translators: %d: business days in transit 362 #: src/Shipping/Method.php:3 36402 #: src/Shipping/Method.php:340 363 403 msgid "(est. %d business day)" 364 404 msgid_plural "(est. %d business days)" … … 366 406 msgstr[1] "" 367 407 368 #: src/Shipping/SettingsSection.php:2 6408 #: src/Shipping/SettingsSection.php:27 369 409 msgid "Connect your Canada Post account and set where parcels ship from. Then add the Canada Post method to your shipping zones." 370 410 msgstr "" 371 411 372 #: src/Shipping/SettingsSection.php:5 2412 #: src/Shipping/SettingsSection.php:53 373 413 msgid "Canada Post account" 374 414 msgstr "" 375 415 376 416 #. translators: %s: link to the Canada Post Developer Portal 377 #: src/Shipping/SettingsSection.php:5 7417 #: src/Shipping/SettingsSection.php:58 378 418 msgid "Create an app on the %s, add the Rating API product to it, and copy its API key and secret here." 379 419 msgstr "" 380 420 381 #: src/Shipping/SettingsSection.php:5 8382 #: src/Shipping/SettingsSection.php:39 1421 #: src/Shipping/SettingsSection.php:59 422 #: src/Shipping/SettingsSection.php:394 383 423 msgid "Canada Post Developer Portal" 384 424 msgstr "" 385 425 386 #: src/Shipping/SettingsSection.php:6 3426 #: src/Shipping/SettingsSection.php:64 387 427 msgid "App type" 388 428 msgstr "" 389 429 390 #: src/Shipping/SettingsSection.php:6 7430 #: src/Shipping/SettingsSection.php:68 391 431 msgid "Production app (real rates)" 392 432 msgstr "" 393 433 394 #: src/Shipping/SettingsSection.php:6 8434 #: src/Shipping/SettingsSection.php:69 395 435 msgid "Test app (sample rates, shown to shop managers only)" 396 436 msgstr "" 397 437 398 #: src/Shipping/SettingsSection.php:7 0438 #: src/Shipping/SettingsSection.php:71 399 439 msgid "Canada Post decides the type when you create the app. A Test app returns sample prices that are not your real rates." 400 440 msgstr "" 401 441 402 #: src/Shipping/SettingsSection.php:7 3442 #: src/Shipping/SettingsSection.php:74 403 443 msgid "API key" 404 444 msgstr "" 405 445 406 #: src/Shipping/SettingsSection.php:7 7446 #: src/Shipping/SettingsSection.php:78 407 447 msgid "Set in wp-config.php (WPRUBY_CPS_API_KEY)." 408 448 msgstr "" 409 449 410 #: src/Shipping/SettingsSection.php:8 0450 #: src/Shipping/SettingsSection.php:81 411 451 msgid "API secret" 412 452 msgstr "" 413 453 414 #: src/Shipping/SettingsSection.php:8 4454 #: src/Shipping/SettingsSection.php:85 415 455 msgid "Set in wp-config.php (WPRUBY_CPS_API_SECRET)." 416 456 msgstr "" 417 457 418 #: src/Shipping/SettingsSection.php:8 4458 #: src/Shipping/SettingsSection.php:85 419 459 msgid "Stored in your database. Leave empty to keep the saved secret." 420 460 msgstr "" 421 461 422 #: src/Shipping/SettingsSection.php:8 7462 #: src/Shipping/SettingsSection.php:88 423 463 msgid "Customer number" 424 464 msgstr "" 425 465 426 #: src/Shipping/SettingsSection.php:9 0466 #: src/Shipping/SettingsSection.php:91 427 467 msgid "Your Canada Post customer number (up to 10 digits), shown in your Canada Post business account." 428 468 msgstr "" 429 469 430 #: src/Shipping/SettingsSection.php:9 3470 #: src/Shipping/SettingsSection.php:94 431 471 msgid "Account type" 432 472 msgstr "" 433 473 434 #: src/Shipping/SettingsSection.php:9 7474 #: src/Shipping/SettingsSection.php:98 435 475 msgid "Solutions for Small Business (retail rates)" 436 476 msgstr "" 437 477 438 #: src/Shipping/SettingsSection.php:9 8478 #: src/Shipping/SettingsSection.php:99 439 479 msgid "Commercial contract (business rates)" 440 480 msgstr "" 441 481 442 #: src/Shipping/SettingsSection.php:10 2482 #: src/Shipping/SettingsSection.php:103 443 483 msgid "Contract number" 444 484 msgstr "" 445 485 446 #: src/Shipping/SettingsSection.php:10 5486 #: src/Shipping/SettingsSection.php:106 447 487 msgid "Commercial accounts only. Leave empty for Solutions for Small Business." 448 488 msgstr "" 449 489 450 #: src/Shipping/SettingsSection.php:10 8490 #: src/Shipping/SettingsSection.php:109 451 491 msgid "Ship-from postal code" 452 492 msgstr "" 453 493 454 #: src/Shipping/SettingsSection.php:11 2494 #: src/Shipping/SettingsSection.php:113 455 495 msgid "Where your parcels leave from. Leave empty to use the store address when it is in Canada." 456 496 msgstr "" 457 497 458 #: src/Shipping/SettingsSection.php:11 6498 #: src/Shipping/SettingsSection.php:117 459 499 msgid "Parcels" 460 500 msgstr "" 461 501 462 #: src/Shipping/SettingsSection.php:11 8502 #: src/Shipping/SettingsSection.php:119 463 503 msgid "How cart items are packed into parcels, and the weight and size used for products that have none." 464 504 msgstr "" 465 505 466 #: src/Shipping/SettingsSection.php:12 1506 #: src/Shipping/SettingsSection.php:122 467 507 msgid "Packing" 468 508 msgstr "" 469 509 470 #: src/Shipping/SettingsSection.php:12 5510 #: src/Shipping/SettingsSection.php:126 471 511 msgid "Pack items together (split into more parcels by weight)" 472 512 msgstr "" 473 513 474 #: src/Shipping/SettingsSection.php:12 6514 #: src/Shipping/SettingsSection.php:127 475 515 msgid "Ship each item in its own parcel" 476 516 msgstr "" 477 517 478 #: src/Shipping/SettingsSection.php:13 0518 #: src/Shipping/SettingsSection.php:131 479 519 msgid "Maximum parcel weight (kg)" 480 520 msgstr "" 481 521 482 #: src/Shipping/SettingsSection.php:13 3522 #: src/Shipping/SettingsSection.php:134 483 523 msgid "When packing items together, a new parcel starts above this weight. Canada Post's limit is 30 kg." 484 524 msgstr "" 485 525 486 526 #. translators: %s: weight unit 487 #: src/Shipping/SettingsSection.php:13 7527 #: src/Shipping/SettingsSection.php:138 488 528 msgid "Default weight (%s)" 489 529 msgstr "" 490 530 491 #: src/Shipping/SettingsSection.php:14 0531 #: src/Shipping/SettingsSection.php:141 492 532 msgid "Used for products with no weight." 493 533 msgstr "" 494 534 495 535 #. translators: %s: dimension unit 496 #: src/Shipping/SettingsSection.php:14 4536 #: src/Shipping/SettingsSection.php:145 497 537 msgid "Default length (%s)" 498 538 msgstr "" 499 539 500 540 #. translators: %s: dimension unit 501 #: src/Shipping/SettingsSection.php:15 0541 #: src/Shipping/SettingsSection.php:151 502 542 msgid "Default width (%s)" 503 543 msgstr "" 504 544 505 545 #. translators: %s: dimension unit 506 #: src/Shipping/SettingsSection.php:15 6546 #: src/Shipping/SettingsSection.php:157 507 547 msgid "Default height (%s)" 508 548 msgstr "" 509 549 510 #: src/Shipping/SettingsSection.php:1 59550 #: src/Shipping/SettingsSection.php:160 511 551 msgid "Used for products with no size. Leave empty to quote those products by weight only." 512 552 msgstr "" 513 553 514 554 #. translators: %s: weight unit 515 #: src/Shipping/SettingsSection.php:16 3555 #: src/Shipping/SettingsSection.php:164 516 556 msgid "Packaging weight (%s)" 517 557 msgstr "" 518 558 519 #: src/Shipping/SettingsSection.php:16 6559 #: src/Shipping/SettingsSection.php:167 520 560 msgid "Added to every parcel for the box and padding." 521 561 msgstr "" 522 562 523 #: src/Shipping/SettingsSection.php:17 0563 #: src/Shipping/SettingsSection.php:171 524 564 msgid "Currency and troubleshooting" 525 565 msgstr "" 526 566 527 #: src/Shipping/SettingsSection.php:17 2567 #: src/Shipping/SettingsSection.php:173 528 568 msgid "Currency conversion for stores not in CAD, and logging for when rates don't show up." 529 569 msgstr "" 530 570 531 #: src/Shipping/SettingsSection.php:17 5571 #: src/Shipping/SettingsSection.php:176 532 572 msgid "CAD exchange rate" 533 573 msgstr "" 534 574 535 575 #. translators: %s: store currency code 536 #: src/Shipping/SettingsSection.php:1 79576 #: src/Shipping/SettingsSection.php:180 537 577 msgid "Canada Post quotes in CAD. Your store uses %s, so rates are multiplied by this number. Ignored when the store uses CAD." 538 578 msgstr "" 539 579 540 #: src/Shipping/SettingsSection.php:18 2580 #: src/Shipping/SettingsSection.php:183 541 581 msgid "Debug mode" 542 582 msgstr "" 543 583 544 #: src/Shipping/SettingsSection.php:18 4584 #: src/Shipping/SettingsSection.php:185 545 585 msgid "Show Canada Post errors on the cart and checkout to shop managers, and log them" 546 586 msgstr "" 547 587 548 #: src/Shipping/SettingsSection.php:18 6588 #: src/Shipping/SettingsSection.php:187 549 589 msgid "Logs are in WooCommerce → Status → Logs (source: wpruby-canada-post). Customers never see these messages." 550 590 msgstr "" 551 591 552 #: src/Shipping/SettingsSection.php:20 5592 #: src/Shipping/SettingsSection.php:206 553 593 msgid "Saved (hidden)" 554 594 msgstr "" 555 595 556 #: src/Shipping/SettingsSection.php:23 6596 #: src/Shipping/SettingsSection.php:237 557 597 msgid "The ship-from postal code must be a Canadian postal code, like K1A 0B1. The previous value was kept." 558 598 msgstr "" 559 599 560 #: src/Shipping/SettingsSection.php:25 1600 #: src/Shipping/SettingsSection.php:252 561 601 msgid "The customer number has at most 10 digits. The previous value was kept." 562 602 msgstr "" 563 603 564 #: src/Shipping/SettingsSection.php:27 8604 #: src/Shipping/SettingsSection.php:279 565 605 msgid "Connect your Canada Post account" 566 606 msgstr "" 567 607 568 #: src/Shipping/SettingsSection.php:2 79608 #: src/Shipping/SettingsSection.php:280 569 609 msgid "API key, secret and customer number." 570 610 msgstr "" 571 611 572 #: src/Shipping/SettingsSection.php:28 4612 #: src/Shipping/SettingsSection.php:285 573 613 msgid "Set your ship-from postal code" 574 614 msgstr "" 575 615 576 616 #. translators: %s: postal code 577 #: src/Shipping/SettingsSection.php:28 7617 #: src/Shipping/SettingsSection.php:288 578 618 msgid "Parcels ship from %s." 579 619 msgstr "" 580 620 581 #: src/Shipping/SettingsSection.php:28 8621 #: src/Shipping/SettingsSection.php:289 582 622 msgid "Where your parcels leave from." 583 623 msgstr "" 584 624 585 #: src/Shipping/SettingsSection.php:29 3625 #: src/Shipping/SettingsSection.php:294 586 626 msgid "Add Canada Post to a shipping zone" 587 627 msgstr "" 588 628 589 629 #. translators: %d: number of shipping zones 590 #: src/Shipping/SettingsSection.php:29 6630 #: src/Shipping/SettingsSection.php:297 591 631 msgid "Offered in %d zone." 592 632 msgid_plural "Offered in %d zones." … … 594 634 msgstr[1] "" 595 635 596 #: src/Shipping/SettingsSection.php:29 7636 #: src/Shipping/SettingsSection.php:298 597 637 msgid "Then pick the services customers can choose." 598 638 msgstr "" 599 639 600 #: src/Shipping/SettingsSection.php:30 4640 #: src/Shipping/SettingsSection.php:305 601 641 msgid "Not connected" 602 642 msgstr "" 603 643 604 #: src/Shipping/SettingsSection.php:30 6644 #: src/Shipping/SettingsSection.php:307 605 645 msgid "Test app" 606 646 msgstr "" 607 647 608 #: src/Shipping/SettingsSection.php:30 8648 #: src/Shipping/SettingsSection.php:309 609 649 msgid "Production app" 610 650 msgstr "" 611 651 612 #: src/Shipping/SettingsSection.php:32 4652 #: src/Shipping/SettingsSection.php:325 613 653 msgid "Get started" 614 654 msgstr "" 615 655 616 656 #. translators: 1: steps done, 2: total steps 617 #: src/Shipping/SettingsSection.php:32 8657 #: src/Shipping/SettingsSection.php:329 618 658 msgid "%1$d of %2$d done" 619 659 msgstr "" 620 660 621 #: src/Shipping/SettingsSection.php:34 0661 #: src/Shipping/SettingsSection.php:341 622 662 msgid "Done" 623 663 msgstr "" 624 664 625 #: src/Shipping/SettingsSection.php:34 0665 #: src/Shipping/SettingsSection.php:341 626 666 msgid "To do" 627 667 msgstr "" 628 668 629 #: src/Shipping/SettingsSection.php:36 7669 #: src/Shipping/SettingsSection.php:368 630 670 msgid "Connection test" 631 671 msgstr "" 632 672 633 #: src/Shipping/SettingsSection.php:3 69673 #: src/Shipping/SettingsSection.php:370 634 674 msgid "Asks Canada Post for a 1 kg Regular Parcel rate from your postal code to itself. Save your changes first." 635 675 msgstr "" 636 676 637 #: src/Shipping/SettingsSection.php:37 3677 #: src/Shipping/SettingsSection.php:374 638 678 msgid "Test connection" 639 679 msgstr "" 640 680 641 #: src/Shipping/SettingsSection.php:3 79681 #: src/Shipping/SettingsSection.php:380 642 682 msgid "Enter and save your API key, secret and customer number to run the test." 643 683 msgstr "" 644 684 645 #: src/Shipping/SettingsSection.php:3 87685 #: src/Shipping/SettingsSection.php:390 646 686 msgid "Help" 647 687 msgstr "" 648 688 649 #: src/Shipping/SettingsSection.php:39 0689 #: src/Shipping/SettingsSection.php:393 650 690 msgid "Setup guide" 651 691 msgstr "" 652 692 653 #: src/Shipping/SettingsSection.php:39 2693 #: src/Shipping/SettingsSection.php:395 654 694 msgid "Debug logs" 655 695 msgstr "" 656 696 657 #: src/Shipping/SettingsSection.php:39 3697 #: src/Shipping/SettingsSection.php:396 658 698 msgid "Support forum" 659 699 msgstr "" 660 700 661 #: src/Shipping/SettingsSection.php:39 4701 #: src/Shipping/SettingsSection.php:397 662 702 msgid "Rate the plugin" 663 703 msgstr "" -
wpruby-shipping-rates-canada-post/tags/1.0.1/readme.txt
r3831201 r3831230 1 === WPRuby Shipping Rates for Canada Post ===1 === WPRuby Shipping Rates for Canada Post and WooCommerce === 2 2 Contributors: waseem_senjer, wprubyplugins 3 3 Tags: canada post, shipping rates, woocommerce shipping, canada, shipping calculator … … 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 27 27 * **Block and classic checkout:** rates appear in both, and the plugin is compatible with WooCommerce's order storage (HPOS). 28 28 29 = Need more? Upgrade to Canada Post Pro = 30 31 [Canada Post Pro](https://wpruby.com/plugin/woocommerce-canada-post-extension-pro/?utm_source=canadapost-lite&utm_medium=readme&utm_campaign=freetopro&utm_content=pro) adds everything after checkout: 32 33 * Print Canada Post labels from the order screen, one order at a time or in bulk. 34 * End-of-day manifests, pickups and return labels. 35 * Tracking numbers and status updates in order emails and My Account. 36 * Delivery to a post office chosen at checkout, and AddressComplete address search. 37 * Your own boxes with 3D packing, free shipping thresholds, per-service price adjustments and a fallback rate when Canada Post is down. 38 39 Your shipping zones keep their settings when you upgrade. 40 29 41 = Links = 30 42 31 43 * [How to show Canada Post shipping rates at WooCommerce checkout](https://wpruby.com/canada-post-shipping-rates-woocommerce/) 44 * [Canada Post Pro](https://wpruby.com/plugin/woocommerce-canada-post-extension-pro/?utm_source=canadapost-lite&utm_medium=readme&utm_campaign=freetopro&utm_content=links) 32 45 * [Support forum](https://wordpress.org/support/plugin/wpruby-shipping-rates-canada-post/) 33 46 * [Source code on GitHub](https://github.com/wsenjer/wpruby-shipping-rates-canada-post) … … 77 90 = Can I print shipping labels? = 78 91 79 No. This plugin shows live Canada Post rates at checkout; it doesn't create labels. 92 Not with the free version. [Canada Post Pro](https://wpruby.com/plugin/woocommerce-canada-post-extension-pro/?utm_source=canadapost-lite&utm_medium=readme&utm_campaign=freetopro&utm_content=faq-labels) prints labels from the order screen, in bulk, with manifests, tracking and returns. 93 94 = How do I upgrade to Pro? = 95 96 Install and activate Canada Post Pro. While Pro is active, this free plugin stops running, and Pro uses your existing Canada Post shipping zones. Enter your API key and secret in Pro, then deactivate and delete the free plugin. 80 97 81 98 = Can I keep the API key out of the database? = … … 107 124 == Changelog == 108 125 126 = 1.0.1 = 127 * Added: An "Upgrade to Canada Post Pro" card on the Canada Post settings and zone settings screens, and a link in the plugin row. 128 * Changed: Plugin name is now "WPRuby Shipping Rates for Canada Post and WooCommerce". 129 109 130 = 1.0.0 = 110 131 * Added: Live Canada Post rates for Canada, the US and international destinations, from Canada Post's Rating API. … … 114 135 == Upgrade Notice == 115 136 137 = 1.0.1 = 138 Adds information about Canada Post Pro to the settings screens. No changes to rates. 139 116 140 = 1.0.0 = 117 141 First release. … … 119 143 == Disclaimer == 120 144 121 Canada Post and the Canada Post services named here are trademarks of Canada Post Corporation. This plugin is made by WPRuby and is not affiliated with or endorsed by Canada Post.145 Canada Post and the Canada Post services named here are trademarks of Canada Post Corporation. WooCommerce is a trademark of Automattic Inc. This plugin is made by WPRuby and is not affiliated with or endorsed by Canada Post or Automattic. -
wpruby-shipping-rates-canada-post/tags/1.0.1/src/Plugin.php
r3831201 r3831230 9 9 10 10 use WPRuby\CanadaPostShipping\Admin\ConnectionCheck; 11 use WPRuby\CanadaPostShipping\Admin\Upsell; 11 12 use WPRuby\CanadaPostShipping\Shipping\Method; 12 13 use WPRuby\CanadaPostShipping\Shipping\SettingsSection; … … 54 55 55 56 /** 56 * Settings first, then support.57 * Settings first, then Pro and support. 57 58 * 58 59 * @param array $links Plugin row links. … … 61 62 $links = (array) $links; 62 63 array_unshift( $links, '<a href="' . esc_url( self::settings_url() ) . '">' . esc_html__( 'Settings', 'wpruby-shipping-rates-canada-post' ) . '</a>' ); 64 $links[] = '<a href="' . esc_url( Upsell::url( 'plugins' ) ) . '" target="_blank" rel="noopener">' . esc_html__( 'Get the Pro version', 'wpruby-shipping-rates-canada-post' ) . '</a>'; 63 65 $links[] = '<a href="https://wordpress.org/support/plugin/wpruby-shipping-rates-canada-post/" target="_blank" rel="noopener">' . esc_html__( 'Support', 'wpruby-shipping-rates-canada-post' ) . '</a>'; 64 66 return $links; -
wpruby-shipping-rates-canada-post/tags/1.0.1/src/Shipping/Method.php
r3831201 r3831230 253 253 254 254 /** 255 * The zone settings, with a warning while the account isn't connected. 255 * The zone settings, with a warning while the account isn't connected, then what 256 * Canada Post Pro adds. 256 257 */ 257 258 public function admin_options() { … … 267 268 ) . '</p></div>'; 268 269 } 270 echo '<div class="wpruby-cps-admin wpruby-cps-zone-pro">'; 271 \WPRuby\CanadaPostShipping\Admin\Upsell::card( 'zone-settings' ); 272 echo '</div>'; 269 273 } 270 274 -
wpruby-shipping-rates-canada-post/tags/1.0.1/src/Shipping/SettingsSection.php
r3831201 r3831230 9 9 10 10 use WC_Shipping_Method; 11 use WPRuby\CanadaPostShipping\Admin\Upsell; 11 12 use WPRuby\CanadaPostShipping\Settings; 12 13 … … 382 383 </div> 383 384 </div> 385 386 <?php Upsell::card( 'settings' ); ?> 384 387 385 388 <div class="wpruby-cps-card"> -
wpruby-shipping-rates-canada-post/tags/1.0.1/wpruby-shipping-rates-canada-post.php
r3831201 r3831230 1 1 <?php 2 2 /** 3 * Plugin Name: WPRuby Shipping Rates for Canada Post 3 * Plugin Name: WPRuby Shipping Rates for Canada Post and WooCommerce 4 4 * Plugin URI: https://wordpress.org/plugins/wpruby-shipping-rates-canada-post/ 5 5 * Description: Live Canada Post shipping rates at WooCommerce checkout: Regular Parcel, Expedited Parcel, Xpresspost, Priority, and US and international services, from your own Canada Post account. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: WPRuby 8 8 * Author URI: https://wpruby.com … … 50 50 } 51 51 52 define( 'WPRUBY_CPS_VERSION', '1.0. 0' );52 define( 'WPRUBY_CPS_VERSION', '1.0.1' ); 53 53 define( 'WPRUBY_CPS_FILE', __FILE__ ); 54 54 define( 'WPRUBY_CPS_DIR', plugin_dir_path( __FILE__ ) ); -
wpruby-shipping-rates-canada-post/trunk/assets/css/admin.css
r3831201 r3831230 346 346 } 347 347 348 /* Canada Post Pro */ 349 350 .wpruby-cps-pro { 351 border-top: 4px solid var(--wpruby-cps-red); 352 } 353 354 .wpruby-cps-card.wpruby-cps-pro h3 .dashicons { 355 color: var(--wpruby-cps-red); 356 } 357 358 .wpruby-cps-pro__list { 359 margin: 0 0 12px; 360 } 361 362 .wpruby-cps-pro__list li { 363 display: flex; 364 align-items: flex-start; 365 gap: 6px; 366 margin: 0 0 6px; 367 } 368 369 .wpruby-cps-pro__list .dashicons { 370 flex: none; 371 color: var(--wpruby-cps-ok); 372 } 373 374 .wpruby-cps-pro p { 375 margin: 0 0 8px; 376 } 377 378 .wp-core-ui .wpruby-cps-sidebar .button.wpruby-cps-pro__button { 379 width: 100%; 380 text-align: center; 381 } 382 383 .wpruby-cps-pro__note { 384 color: var(--wpruby-cps-muted); 385 font-size: 12px; 386 } 387 388 .wpruby-cps-zone-pro { 389 max-width: 760px; 390 } 391 348 392 /* Help links */ 349 393 -
wpruby-shipping-rates-canada-post/trunk/languages/wpruby-shipping-rates-canada-post.pot
r3831201 r3831230 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WPRuby Shipping Rates for Canada Post 1.0.0\n"5 "Project-Id-Version: WPRuby Shipping Rates for Canada Post and WooCommerce 1.0.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpruby-shipping-rates-canada-post\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: 2026-11-2 7T11:04:13+00:00\n"12 "POT-Creation-Date: 2026-11-28T10:36:32+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" … … 17 17 #. Plugin Name of the plugin 18 18 #: wpruby-shipping-rates-canada-post.php 19 msgid "WPRuby Shipping Rates for Canada Post "19 msgid "WPRuby Shipping Rates for Canada Post and WooCommerce" 20 20 msgstr "" 21 21 … … 59 59 #: src/Admin/ConnectionCheck.php:80 60 60 msgid "This is a Test app, so the price is a sample." 61 msgstr "" 62 63 #: src/Admin/Upsell.php:40 64 msgid "Print Canada Post labels from the order screen, one order or in bulk" 65 msgstr "" 66 67 #: src/Admin/Upsell.php:41 68 msgid "End-of-day manifests, pickups and return labels" 69 msgstr "" 70 71 #: src/Admin/Upsell.php:42 72 msgid "Tracking numbers and status updates in order emails and My Account" 73 msgstr "" 74 75 #: src/Admin/Upsell.php:43 76 msgid "Delivery to a post office chosen at checkout, and AddressComplete" 77 msgstr "" 78 79 #: src/Admin/Upsell.php:44 80 msgid "Your own boxes with 3D packing, free shipping thresholds and per-service price adjustments" 81 msgstr "" 82 83 #: src/Admin/Upsell.php:57 84 msgid "Upgrade to Canada Post Pro" 85 msgstr "" 86 87 #: src/Admin/Upsell.php:66 88 msgid "Get Canada Post Pro" 89 msgstr "" 90 91 #: src/Admin/Upsell.php:67 92 msgid "(opens in a new tab)" 93 msgstr "" 94 95 #: src/Admin/Upsell.php:70 96 msgid "Your shipping zones keep their settings when you upgrade." 61 97 msgstr "" 62 98 … … 101 137 msgstr "" 102 138 103 #: src/Plugin.php:6 2139 #: src/Plugin.php:63 104 140 msgid "Settings" 105 141 msgstr "" 106 142 107 #: src/Plugin.php:63 143 #: src/Plugin.php:64 144 msgid "Get the Pro version" 145 msgstr "" 146 147 #: src/Plugin.php:65 108 148 msgid "Support" 109 149 msgstr "" 110 150 111 #: src/Plugin.php:10 4151 #: src/Plugin.php:106 112 152 msgid "Checking…" 113 153 msgstr "" 114 154 115 #: src/Plugin.php:10 5155 #: src/Plugin.php:107 116 156 msgid "The check could not run. Reload the page and try again." 117 157 msgstr "" 118 158 119 #: src/Plugin.php:10 6159 #: src/Plugin.php:108 120 160 msgid "Connected" 121 161 msgstr "" 122 162 123 163 #. translators: 1: services turned on, 2: services in the group 124 #: src/Plugin.php:1 08164 #: src/Plugin.php:110 125 165 #: src/Shipping/Method.php:194 126 166 msgid "%1$d of %2$d on" 127 167 msgstr "" 128 168 129 #: src/Plugin.php:12 2169 #: src/Plugin.php:124 130 170 msgid "Canada Post needs a ship-from postal code in Canada. Enter it in the Canada Post settings, or set a Canadian store address." 131 171 msgstr "" 132 172 133 173 #. translators: %s: store currency code 134 #: src/Plugin.php:1 28174 #: src/Plugin.php:130 135 175 msgid "Canada Post quotes in CAD, but your store uses %s. Set the CAD exchange rate in the Canada Post settings so customers pay the right amount." 136 176 msgstr "" 137 177 138 #: src/Plugin.php:13 4178 #: src/Plugin.php:136 139 179 msgid "Canada Post is connected with a Test app: rates are samples and only shop managers see them. Switch to a Production app before customers order." 140 180 msgstr "" … … 227 267 #: src/Shipping/Method.php:55 228 268 #: src/Shipping/Method.php:66 229 #: src/Shipping/SettingsSection.php:2 5269 #: src/Shipping/SettingsSection.php:26 230 270 msgid "Canada Post" 231 271 msgstr "" … … 342 382 343 383 #. translators: %s: link to the Canada Post settings 344 #: src/Shipping/Method.php:26 4384 #: src/Shipping/Method.php:265 345 385 msgid "Customers see no Canada Post rates until you connect your Canada Post account in %s." 346 386 msgstr "" 347 387 348 #: src/Shipping/Method.php:26 5388 #: src/Shipping/Method.php:266 349 389 msgid "the Canada Post settings" 350 390 msgstr "" 351 391 352 392 #. translators: 1: number of parcels, 2: quoted services 353 #: src/Shipping/Method.php:32 0393 #: src/Shipping/Method.php:324 354 394 msgid "Canada Post quoted %1$d parcel(s): %2$s" 355 395 msgstr "" 356 396 357 #: src/Shipping/Method.php:32 2397 #: src/Shipping/Method.php:326 358 398 msgid "no services" 359 399 msgstr "" 360 400 361 401 #. translators: %d: business days in transit 362 #: src/Shipping/Method.php:3 36402 #: src/Shipping/Method.php:340 363 403 msgid "(est. %d business day)" 364 404 msgid_plural "(est. %d business days)" … … 366 406 msgstr[1] "" 367 407 368 #: src/Shipping/SettingsSection.php:2 6408 #: src/Shipping/SettingsSection.php:27 369 409 msgid "Connect your Canada Post account and set where parcels ship from. Then add the Canada Post method to your shipping zones." 370 410 msgstr "" 371 411 372 #: src/Shipping/SettingsSection.php:5 2412 #: src/Shipping/SettingsSection.php:53 373 413 msgid "Canada Post account" 374 414 msgstr "" 375 415 376 416 #. translators: %s: link to the Canada Post Developer Portal 377 #: src/Shipping/SettingsSection.php:5 7417 #: src/Shipping/SettingsSection.php:58 378 418 msgid "Create an app on the %s, add the Rating API product to it, and copy its API key and secret here." 379 419 msgstr "" 380 420 381 #: src/Shipping/SettingsSection.php:5 8382 #: src/Shipping/SettingsSection.php:39 1421 #: src/Shipping/SettingsSection.php:59 422 #: src/Shipping/SettingsSection.php:394 383 423 msgid "Canada Post Developer Portal" 384 424 msgstr "" 385 425 386 #: src/Shipping/SettingsSection.php:6 3426 #: src/Shipping/SettingsSection.php:64 387 427 msgid "App type" 388 428 msgstr "" 389 429 390 #: src/Shipping/SettingsSection.php:6 7430 #: src/Shipping/SettingsSection.php:68 391 431 msgid "Production app (real rates)" 392 432 msgstr "" 393 433 394 #: src/Shipping/SettingsSection.php:6 8434 #: src/Shipping/SettingsSection.php:69 395 435 msgid "Test app (sample rates, shown to shop managers only)" 396 436 msgstr "" 397 437 398 #: src/Shipping/SettingsSection.php:7 0438 #: src/Shipping/SettingsSection.php:71 399 439 msgid "Canada Post decides the type when you create the app. A Test app returns sample prices that are not your real rates." 400 440 msgstr "" 401 441 402 #: src/Shipping/SettingsSection.php:7 3442 #: src/Shipping/SettingsSection.php:74 403 443 msgid "API key" 404 444 msgstr "" 405 445 406 #: src/Shipping/SettingsSection.php:7 7446 #: src/Shipping/SettingsSection.php:78 407 447 msgid "Set in wp-config.php (WPRUBY_CPS_API_KEY)." 408 448 msgstr "" 409 449 410 #: src/Shipping/SettingsSection.php:8 0450 #: src/Shipping/SettingsSection.php:81 411 451 msgid "API secret" 412 452 msgstr "" 413 453 414 #: src/Shipping/SettingsSection.php:8 4454 #: src/Shipping/SettingsSection.php:85 415 455 msgid "Set in wp-config.php (WPRUBY_CPS_API_SECRET)." 416 456 msgstr "" 417 457 418 #: src/Shipping/SettingsSection.php:8 4458 #: src/Shipping/SettingsSection.php:85 419 459 msgid "Stored in your database. Leave empty to keep the saved secret." 420 460 msgstr "" 421 461 422 #: src/Shipping/SettingsSection.php:8 7462 #: src/Shipping/SettingsSection.php:88 423 463 msgid "Customer number" 424 464 msgstr "" 425 465 426 #: src/Shipping/SettingsSection.php:9 0466 #: src/Shipping/SettingsSection.php:91 427 467 msgid "Your Canada Post customer number (up to 10 digits), shown in your Canada Post business account." 428 468 msgstr "" 429 469 430 #: src/Shipping/SettingsSection.php:9 3470 #: src/Shipping/SettingsSection.php:94 431 471 msgid "Account type" 432 472 msgstr "" 433 473 434 #: src/Shipping/SettingsSection.php:9 7474 #: src/Shipping/SettingsSection.php:98 435 475 msgid "Solutions for Small Business (retail rates)" 436 476 msgstr "" 437 477 438 #: src/Shipping/SettingsSection.php:9 8478 #: src/Shipping/SettingsSection.php:99 439 479 msgid "Commercial contract (business rates)" 440 480 msgstr "" 441 481 442 #: src/Shipping/SettingsSection.php:10 2482 #: src/Shipping/SettingsSection.php:103 443 483 msgid "Contract number" 444 484 msgstr "" 445 485 446 #: src/Shipping/SettingsSection.php:10 5486 #: src/Shipping/SettingsSection.php:106 447 487 msgid "Commercial accounts only. Leave empty for Solutions for Small Business." 448 488 msgstr "" 449 489 450 #: src/Shipping/SettingsSection.php:10 8490 #: src/Shipping/SettingsSection.php:109 451 491 msgid "Ship-from postal code" 452 492 msgstr "" 453 493 454 #: src/Shipping/SettingsSection.php:11 2494 #: src/Shipping/SettingsSection.php:113 455 495 msgid "Where your parcels leave from. Leave empty to use the store address when it is in Canada." 456 496 msgstr "" 457 497 458 #: src/Shipping/SettingsSection.php:11 6498 #: src/Shipping/SettingsSection.php:117 459 499 msgid "Parcels" 460 500 msgstr "" 461 501 462 #: src/Shipping/SettingsSection.php:11 8502 #: src/Shipping/SettingsSection.php:119 463 503 msgid "How cart items are packed into parcels, and the weight and size used for products that have none." 464 504 msgstr "" 465 505 466 #: src/Shipping/SettingsSection.php:12 1506 #: src/Shipping/SettingsSection.php:122 467 507 msgid "Packing" 468 508 msgstr "" 469 509 470 #: src/Shipping/SettingsSection.php:12 5510 #: src/Shipping/SettingsSection.php:126 471 511 msgid "Pack items together (split into more parcels by weight)" 472 512 msgstr "" 473 513 474 #: src/Shipping/SettingsSection.php:12 6514 #: src/Shipping/SettingsSection.php:127 475 515 msgid "Ship each item in its own parcel" 476 516 msgstr "" 477 517 478 #: src/Shipping/SettingsSection.php:13 0518 #: src/Shipping/SettingsSection.php:131 479 519 msgid "Maximum parcel weight (kg)" 480 520 msgstr "" 481 521 482 #: src/Shipping/SettingsSection.php:13 3522 #: src/Shipping/SettingsSection.php:134 483 523 msgid "When packing items together, a new parcel starts above this weight. Canada Post's limit is 30 kg." 484 524 msgstr "" 485 525 486 526 #. translators: %s: weight unit 487 #: src/Shipping/SettingsSection.php:13 7527 #: src/Shipping/SettingsSection.php:138 488 528 msgid "Default weight (%s)" 489 529 msgstr "" 490 530 491 #: src/Shipping/SettingsSection.php:14 0531 #: src/Shipping/SettingsSection.php:141 492 532 msgid "Used for products with no weight." 493 533 msgstr "" 494 534 495 535 #. translators: %s: dimension unit 496 #: src/Shipping/SettingsSection.php:14 4536 #: src/Shipping/SettingsSection.php:145 497 537 msgid "Default length (%s)" 498 538 msgstr "" 499 539 500 540 #. translators: %s: dimension unit 501 #: src/Shipping/SettingsSection.php:15 0541 #: src/Shipping/SettingsSection.php:151 502 542 msgid "Default width (%s)" 503 543 msgstr "" 504 544 505 545 #. translators: %s: dimension unit 506 #: src/Shipping/SettingsSection.php:15 6546 #: src/Shipping/SettingsSection.php:157 507 547 msgid "Default height (%s)" 508 548 msgstr "" 509 549 510 #: src/Shipping/SettingsSection.php:1 59550 #: src/Shipping/SettingsSection.php:160 511 551 msgid "Used for products with no size. Leave empty to quote those products by weight only." 512 552 msgstr "" 513 553 514 554 #. translators: %s: weight unit 515 #: src/Shipping/SettingsSection.php:16 3555 #: src/Shipping/SettingsSection.php:164 516 556 msgid "Packaging weight (%s)" 517 557 msgstr "" 518 558 519 #: src/Shipping/SettingsSection.php:16 6559 #: src/Shipping/SettingsSection.php:167 520 560 msgid "Added to every parcel for the box and padding." 521 561 msgstr "" 522 562 523 #: src/Shipping/SettingsSection.php:17 0563 #: src/Shipping/SettingsSection.php:171 524 564 msgid "Currency and troubleshooting" 525 565 msgstr "" 526 566 527 #: src/Shipping/SettingsSection.php:17 2567 #: src/Shipping/SettingsSection.php:173 528 568 msgid "Currency conversion for stores not in CAD, and logging for when rates don't show up." 529 569 msgstr "" 530 570 531 #: src/Shipping/SettingsSection.php:17 5571 #: src/Shipping/SettingsSection.php:176 532 572 msgid "CAD exchange rate" 533 573 msgstr "" 534 574 535 575 #. translators: %s: store currency code 536 #: src/Shipping/SettingsSection.php:1 79576 #: src/Shipping/SettingsSection.php:180 537 577 msgid "Canada Post quotes in CAD. Your store uses %s, so rates are multiplied by this number. Ignored when the store uses CAD." 538 578 msgstr "" 539 579 540 #: src/Shipping/SettingsSection.php:18 2580 #: src/Shipping/SettingsSection.php:183 541 581 msgid "Debug mode" 542 582 msgstr "" 543 583 544 #: src/Shipping/SettingsSection.php:18 4584 #: src/Shipping/SettingsSection.php:185 545 585 msgid "Show Canada Post errors on the cart and checkout to shop managers, and log them" 546 586 msgstr "" 547 587 548 #: src/Shipping/SettingsSection.php:18 6588 #: src/Shipping/SettingsSection.php:187 549 589 msgid "Logs are in WooCommerce → Status → Logs (source: wpruby-canada-post). Customers never see these messages." 550 590 msgstr "" 551 591 552 #: src/Shipping/SettingsSection.php:20 5592 #: src/Shipping/SettingsSection.php:206 553 593 msgid "Saved (hidden)" 554 594 msgstr "" 555 595 556 #: src/Shipping/SettingsSection.php:23 6596 #: src/Shipping/SettingsSection.php:237 557 597 msgid "The ship-from postal code must be a Canadian postal code, like K1A 0B1. The previous value was kept." 558 598 msgstr "" 559 599 560 #: src/Shipping/SettingsSection.php:25 1600 #: src/Shipping/SettingsSection.php:252 561 601 msgid "The customer number has at most 10 digits. The previous value was kept." 562 602 msgstr "" 563 603 564 #: src/Shipping/SettingsSection.php:27 8604 #: src/Shipping/SettingsSection.php:279 565 605 msgid "Connect your Canada Post account" 566 606 msgstr "" 567 607 568 #: src/Shipping/SettingsSection.php:2 79608 #: src/Shipping/SettingsSection.php:280 569 609 msgid "API key, secret and customer number." 570 610 msgstr "" 571 611 572 #: src/Shipping/SettingsSection.php:28 4612 #: src/Shipping/SettingsSection.php:285 573 613 msgid "Set your ship-from postal code" 574 614 msgstr "" 575 615 576 616 #. translators: %s: postal code 577 #: src/Shipping/SettingsSection.php:28 7617 #: src/Shipping/SettingsSection.php:288 578 618 msgid "Parcels ship from %s." 579 619 msgstr "" 580 620 581 #: src/Shipping/SettingsSection.php:28 8621 #: src/Shipping/SettingsSection.php:289 582 622 msgid "Where your parcels leave from." 583 623 msgstr "" 584 624 585 #: src/Shipping/SettingsSection.php:29 3625 #: src/Shipping/SettingsSection.php:294 586 626 msgid "Add Canada Post to a shipping zone" 587 627 msgstr "" 588 628 589 629 #. translators: %d: number of shipping zones 590 #: src/Shipping/SettingsSection.php:29 6630 #: src/Shipping/SettingsSection.php:297 591 631 msgid "Offered in %d zone." 592 632 msgid_plural "Offered in %d zones." … … 594 634 msgstr[1] "" 595 635 596 #: src/Shipping/SettingsSection.php:29 7636 #: src/Shipping/SettingsSection.php:298 597 637 msgid "Then pick the services customers can choose." 598 638 msgstr "" 599 639 600 #: src/Shipping/SettingsSection.php:30 4640 #: src/Shipping/SettingsSection.php:305 601 641 msgid "Not connected" 602 642 msgstr "" 603 643 604 #: src/Shipping/SettingsSection.php:30 6644 #: src/Shipping/SettingsSection.php:307 605 645 msgid "Test app" 606 646 msgstr "" 607 647 608 #: src/Shipping/SettingsSection.php:30 8648 #: src/Shipping/SettingsSection.php:309 609 649 msgid "Production app" 610 650 msgstr "" 611 651 612 #: src/Shipping/SettingsSection.php:32 4652 #: src/Shipping/SettingsSection.php:325 613 653 msgid "Get started" 614 654 msgstr "" 615 655 616 656 #. translators: 1: steps done, 2: total steps 617 #: src/Shipping/SettingsSection.php:32 8657 #: src/Shipping/SettingsSection.php:329 618 658 msgid "%1$d of %2$d done" 619 659 msgstr "" 620 660 621 #: src/Shipping/SettingsSection.php:34 0661 #: src/Shipping/SettingsSection.php:341 622 662 msgid "Done" 623 663 msgstr "" 624 664 625 #: src/Shipping/SettingsSection.php:34 0665 #: src/Shipping/SettingsSection.php:341 626 666 msgid "To do" 627 667 msgstr "" 628 668 629 #: src/Shipping/SettingsSection.php:36 7669 #: src/Shipping/SettingsSection.php:368 630 670 msgid "Connection test" 631 671 msgstr "" 632 672 633 #: src/Shipping/SettingsSection.php:3 69673 #: src/Shipping/SettingsSection.php:370 634 674 msgid "Asks Canada Post for a 1 kg Regular Parcel rate from your postal code to itself. Save your changes first." 635 675 msgstr "" 636 676 637 #: src/Shipping/SettingsSection.php:37 3677 #: src/Shipping/SettingsSection.php:374 638 678 msgid "Test connection" 639 679 msgstr "" 640 680 641 #: src/Shipping/SettingsSection.php:3 79681 #: src/Shipping/SettingsSection.php:380 642 682 msgid "Enter and save your API key, secret and customer number to run the test." 643 683 msgstr "" 644 684 645 #: src/Shipping/SettingsSection.php:3 87685 #: src/Shipping/SettingsSection.php:390 646 686 msgid "Help" 647 687 msgstr "" 648 688 649 #: src/Shipping/SettingsSection.php:39 0689 #: src/Shipping/SettingsSection.php:393 650 690 msgid "Setup guide" 651 691 msgstr "" 652 692 653 #: src/Shipping/SettingsSection.php:39 2693 #: src/Shipping/SettingsSection.php:395 654 694 msgid "Debug logs" 655 695 msgstr "" 656 696 657 #: src/Shipping/SettingsSection.php:39 3697 #: src/Shipping/SettingsSection.php:396 658 698 msgid "Support forum" 659 699 msgstr "" 660 700 661 #: src/Shipping/SettingsSection.php:39 4701 #: src/Shipping/SettingsSection.php:397 662 702 msgid "Rate the plugin" 663 703 msgstr "" -
wpruby-shipping-rates-canada-post/trunk/readme.txt
r3831201 r3831230 1 === WPRuby Shipping Rates for Canada Post ===1 === WPRuby Shipping Rates for Canada Post and WooCommerce === 2 2 Contributors: waseem_senjer, wprubyplugins 3 3 Tags: canada post, shipping rates, woocommerce shipping, canada, shipping calculator … … 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 27 27 * **Block and classic checkout:** rates appear in both, and the plugin is compatible with WooCommerce's order storage (HPOS). 28 28 29 = Need more? Upgrade to Canada Post Pro = 30 31 [Canada Post Pro](https://wpruby.com/plugin/woocommerce-canada-post-extension-pro/?utm_source=canadapost-lite&utm_medium=readme&utm_campaign=freetopro&utm_content=pro) adds everything after checkout: 32 33 * Print Canada Post labels from the order screen, one order at a time or in bulk. 34 * End-of-day manifests, pickups and return labels. 35 * Tracking numbers and status updates in order emails and My Account. 36 * Delivery to a post office chosen at checkout, and AddressComplete address search. 37 * Your own boxes with 3D packing, free shipping thresholds, per-service price adjustments and a fallback rate when Canada Post is down. 38 39 Your shipping zones keep their settings when you upgrade. 40 29 41 = Links = 30 42 31 43 * [How to show Canada Post shipping rates at WooCommerce checkout](https://wpruby.com/canada-post-shipping-rates-woocommerce/) 44 * [Canada Post Pro](https://wpruby.com/plugin/woocommerce-canada-post-extension-pro/?utm_source=canadapost-lite&utm_medium=readme&utm_campaign=freetopro&utm_content=links) 32 45 * [Support forum](https://wordpress.org/support/plugin/wpruby-shipping-rates-canada-post/) 33 46 * [Source code on GitHub](https://github.com/wsenjer/wpruby-shipping-rates-canada-post) … … 77 90 = Can I print shipping labels? = 78 91 79 No. This plugin shows live Canada Post rates at checkout; it doesn't create labels. 92 Not with the free version. [Canada Post Pro](https://wpruby.com/plugin/woocommerce-canada-post-extension-pro/?utm_source=canadapost-lite&utm_medium=readme&utm_campaign=freetopro&utm_content=faq-labels) prints labels from the order screen, in bulk, with manifests, tracking and returns. 93 94 = How do I upgrade to Pro? = 95 96 Install and activate Canada Post Pro. While Pro is active, this free plugin stops running, and Pro uses your existing Canada Post shipping zones. Enter your API key and secret in Pro, then deactivate and delete the free plugin. 80 97 81 98 = Can I keep the API key out of the database? = … … 107 124 == Changelog == 108 125 126 = 1.0.1 = 127 * Added: An "Upgrade to Canada Post Pro" card on the Canada Post settings and zone settings screens, and a link in the plugin row. 128 * Changed: Plugin name is now "WPRuby Shipping Rates for Canada Post and WooCommerce". 129 109 130 = 1.0.0 = 110 131 * Added: Live Canada Post rates for Canada, the US and international destinations, from Canada Post's Rating API. … … 114 135 == Upgrade Notice == 115 136 137 = 1.0.1 = 138 Adds information about Canada Post Pro to the settings screens. No changes to rates. 139 116 140 = 1.0.0 = 117 141 First release. … … 119 143 == Disclaimer == 120 144 121 Canada Post and the Canada Post services named here are trademarks of Canada Post Corporation. This plugin is made by WPRuby and is not affiliated with or endorsed by Canada Post.145 Canada Post and the Canada Post services named here are trademarks of Canada Post Corporation. WooCommerce is a trademark of Automattic Inc. This plugin is made by WPRuby and is not affiliated with or endorsed by Canada Post or Automattic. -
wpruby-shipping-rates-canada-post/trunk/src/Plugin.php
r3831201 r3831230 9 9 10 10 use WPRuby\CanadaPostShipping\Admin\ConnectionCheck; 11 use WPRuby\CanadaPostShipping\Admin\Upsell; 11 12 use WPRuby\CanadaPostShipping\Shipping\Method; 12 13 use WPRuby\CanadaPostShipping\Shipping\SettingsSection; … … 54 55 55 56 /** 56 * Settings first, then support.57 * Settings first, then Pro and support. 57 58 * 58 59 * @param array $links Plugin row links. … … 61 62 $links = (array) $links; 62 63 array_unshift( $links, '<a href="' . esc_url( self::settings_url() ) . '">' . esc_html__( 'Settings', 'wpruby-shipping-rates-canada-post' ) . '</a>' ); 64 $links[] = '<a href="' . esc_url( Upsell::url( 'plugins' ) ) . '" target="_blank" rel="noopener">' . esc_html__( 'Get the Pro version', 'wpruby-shipping-rates-canada-post' ) . '</a>'; 63 65 $links[] = '<a href="https://wordpress.org/support/plugin/wpruby-shipping-rates-canada-post/" target="_blank" rel="noopener">' . esc_html__( 'Support', 'wpruby-shipping-rates-canada-post' ) . '</a>'; 64 66 return $links; -
wpruby-shipping-rates-canada-post/trunk/src/Shipping/Method.php
r3831201 r3831230 253 253 254 254 /** 255 * The zone settings, with a warning while the account isn't connected. 255 * The zone settings, with a warning while the account isn't connected, then what 256 * Canada Post Pro adds. 256 257 */ 257 258 public function admin_options() { … … 267 268 ) . '</p></div>'; 268 269 } 270 echo '<div class="wpruby-cps-admin wpruby-cps-zone-pro">'; 271 \WPRuby\CanadaPostShipping\Admin\Upsell::card( 'zone-settings' ); 272 echo '</div>'; 269 273 } 270 274 -
wpruby-shipping-rates-canada-post/trunk/src/Shipping/SettingsSection.php
r3831201 r3831230 9 9 10 10 use WC_Shipping_Method; 11 use WPRuby\CanadaPostShipping\Admin\Upsell; 11 12 use WPRuby\CanadaPostShipping\Settings; 12 13 … … 382 383 </div> 383 384 </div> 385 386 <?php Upsell::card( 'settings' ); ?> 384 387 385 388 <div class="wpruby-cps-card"> -
wpruby-shipping-rates-canada-post/trunk/wpruby-shipping-rates-canada-post.php
r3831201 r3831230 1 1 <?php 2 2 /** 3 * Plugin Name: WPRuby Shipping Rates for Canada Post 3 * Plugin Name: WPRuby Shipping Rates for Canada Post and WooCommerce 4 4 * Plugin URI: https://wordpress.org/plugins/wpruby-shipping-rates-canada-post/ 5 5 * Description: Live Canada Post shipping rates at WooCommerce checkout: Regular Parcel, Expedited Parcel, Xpresspost, Priority, and US and international services, from your own Canada Post account. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: WPRuby 8 8 * Author URI: https://wpruby.com … … 50 50 } 51 51 52 define( 'WPRUBY_CPS_VERSION', '1.0. 0' );52 define( 'WPRUBY_CPS_VERSION', '1.0.1' ); 53 53 define( 'WPRUBY_CPS_FILE', __FILE__ ); 54 54 define( 'WPRUBY_CPS_DIR', plugin_dir_path( __FILE__ ) );
Note:
See TracChangeset
for help on using the changeset viewer.