Plugin Directory

Changeset 3831230


Ignore:
Timestamp:
11/28/2026 10:38:37 AM (less than one hour ago)
Author:
wprubyplugins
Message:

Release 1.0.1

Location:
wpruby-shipping-rates-canada-post
Files:
2 added
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wpruby-shipping-rates-canada-post/tags/1.0.1/assets/css/admin.css

    r3831201 r3831230  
    346346}
    347347
     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
    348392/* Help links */
    349393
  • wpruby-shipping-rates-canada-post/tags/1.0.1/languages/wpruby-shipping-rates-canada-post.pot

    r3831201 r3831230  
    33msgid ""
    44msgstr ""
    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"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpruby-shipping-rates-canada-post\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-11-27T11:04:13+00:00\n"
     12"POT-Creation-Date: 2026-11-28T10:36:32+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
    … …  
    1717#. Plugin Name of the plugin
    1818#: wpruby-shipping-rates-canada-post.php
    19 msgid "WPRuby Shipping Rates for Canada Post"
     19msgid "WPRuby Shipping Rates for Canada Post and WooCommerce"
    2020msgstr ""
    2121
    … …  
    5959#: src/Admin/ConnectionCheck.php:80
    6060msgid "This is a Test app, so the price is a sample."
     61msgstr ""
     62
     63#: src/Admin/Upsell.php:40
     64msgid "Print Canada Post labels from the order screen, one order or in bulk"
     65msgstr ""
     66
     67#: src/Admin/Upsell.php:41
     68msgid "End-of-day manifests, pickups and return labels"
     69msgstr ""
     70
     71#: src/Admin/Upsell.php:42
     72msgid "Tracking numbers and status updates in order emails and My Account"
     73msgstr ""
     74
     75#: src/Admin/Upsell.php:43
     76msgid "Delivery to a post office chosen at checkout, and AddressComplete"
     77msgstr ""
     78
     79#: src/Admin/Upsell.php:44
     80msgid "Your own boxes with 3D packing, free shipping thresholds and per-service price adjustments"
     81msgstr ""
     82
     83#: src/Admin/Upsell.php:57
     84msgid "Upgrade to Canada Post Pro"
     85msgstr ""
     86
     87#: src/Admin/Upsell.php:66
     88msgid "Get Canada Post Pro"
     89msgstr ""
     90
     91#: src/Admin/Upsell.php:67
     92msgid "(opens in a new tab)"
     93msgstr ""
     94
     95#: src/Admin/Upsell.php:70
     96msgid "Your shipping zones keep their settings when you upgrade."
    6197msgstr ""
    6298
    … …  
    101137msgstr ""
    102138
    103 #: src/Plugin.php:62
     139#: src/Plugin.php:63
    104140msgid "Settings"
    105141msgstr ""
    106142
    107 #: src/Plugin.php:63
     143#: src/Plugin.php:64
     144msgid "Get the Pro version"
     145msgstr ""
     146
     147#: src/Plugin.php:65
    108148msgid "Support"
    109149msgstr ""
    110150
    111 #: src/Plugin.php:104
     151#: src/Plugin.php:106
    112152msgid "Checking…"
    113153msgstr ""
    114154
    115 #: src/Plugin.php:105
     155#: src/Plugin.php:107
    116156msgid "The check could not run. Reload the page and try again."
    117157msgstr ""
    118158
    119 #: src/Plugin.php:106
     159#: src/Plugin.php:108
    120160msgid "Connected"
    121161msgstr ""
    122162
    123163#. translators: 1: services turned on, 2: services in the group
    124 #: src/Plugin.php:108
     164#: src/Plugin.php:110
    125165#: src/Shipping/Method.php:194
    126166msgid "%1$d of %2$d on"
    127167msgstr ""
    128168
    129 #: src/Plugin.php:122
     169#: src/Plugin.php:124
    130170msgid "Canada Post needs a ship-from postal code in Canada. Enter it in the Canada Post settings, or set a Canadian store address."
    131171msgstr ""
    132172
    133173#. translators: %s: store currency code
    134 #: src/Plugin.php:128
     174#: src/Plugin.php:130
    135175msgid "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."
    136176msgstr ""
    137177
    138 #: src/Plugin.php:134
     178#: src/Plugin.php:136
    139179msgid "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."
    140180msgstr ""
    … …  
    227267#: src/Shipping/Method.php:55
    228268#: src/Shipping/Method.php:66
    229 #: src/Shipping/SettingsSection.php:25
     269#: src/Shipping/SettingsSection.php:26
    230270msgid "Canada Post"
    231271msgstr ""
    … …  
    342382
    343383#. translators: %s: link to the Canada Post settings
    344 #: src/Shipping/Method.php:264
     384#: src/Shipping/Method.php:265
    345385msgid "Customers see no Canada Post rates until you connect your Canada Post account in %s."
    346386msgstr ""
    347387
    348 #: src/Shipping/Method.php:265
     388#: src/Shipping/Method.php:266
    349389msgid "the Canada Post settings"
    350390msgstr ""
    351391
    352392#. translators: 1: number of parcels, 2: quoted services
    353 #: src/Shipping/Method.php:320
     393#: src/Shipping/Method.php:324
    354394msgid "Canada Post quoted %1$d parcel(s): %2$s"
    355395msgstr ""
    356396
    357 #: src/Shipping/Method.php:322
     397#: src/Shipping/Method.php:326
    358398msgid "no services"
    359399msgstr ""
    360400
    361401#. translators: %d: business days in transit
    362 #: src/Shipping/Method.php:336
     402#: src/Shipping/Method.php:340
    363403msgid "(est. %d business day)"
    364404msgid_plural "(est. %d business days)"
    … …  
    366406msgstr[1] ""
    367407
    368 #: src/Shipping/SettingsSection.php:26
     408#: src/Shipping/SettingsSection.php:27
    369409msgid "Connect your Canada Post account and set where parcels ship from. Then add the Canada Post method to your shipping zones."
    370410msgstr ""
    371411
    372 #: src/Shipping/SettingsSection.php:52
     412#: src/Shipping/SettingsSection.php:53
    373413msgid "Canada Post account"
    374414msgstr ""
    375415
    376416#. translators: %s: link to the Canada Post Developer Portal
    377 #: src/Shipping/SettingsSection.php:57
     417#: src/Shipping/SettingsSection.php:58
    378418msgid "Create an app on the %s, add the Rating API product to it, and copy its API key and secret here."
    379419msgstr ""
    380420
    381 #: src/Shipping/SettingsSection.php:58
    382 #: src/Shipping/SettingsSection.php:391
     421#: src/Shipping/SettingsSection.php:59
     422#: src/Shipping/SettingsSection.php:394
    383423msgid "Canada Post Developer Portal"
    384424msgstr ""
    385425
    386 #: src/Shipping/SettingsSection.php:63
     426#: src/Shipping/SettingsSection.php:64
    387427msgid "App type"
    388428msgstr ""
    389429
    390 #: src/Shipping/SettingsSection.php:67
     430#: src/Shipping/SettingsSection.php:68
    391431msgid "Production app (real rates)"
    392432msgstr ""
    393433
    394 #: src/Shipping/SettingsSection.php:68
     434#: src/Shipping/SettingsSection.php:69
    395435msgid "Test app (sample rates, shown to shop managers only)"
    396436msgstr ""
    397437
    398 #: src/Shipping/SettingsSection.php:70
     438#: src/Shipping/SettingsSection.php:71
    399439msgid "Canada Post decides the type when you create the app. A Test app returns sample prices that are not your real rates."
    400440msgstr ""
    401441
    402 #: src/Shipping/SettingsSection.php:73
     442#: src/Shipping/SettingsSection.php:74
    403443msgid "API key"
    404444msgstr ""
    405445
    406 #: src/Shipping/SettingsSection.php:77
     446#: src/Shipping/SettingsSection.php:78
    407447msgid "Set in wp-config.php (WPRUBY_CPS_API_KEY)."
    408448msgstr ""
    409449
    410 #: src/Shipping/SettingsSection.php:80
     450#: src/Shipping/SettingsSection.php:81
    411451msgid "API secret"
    412452msgstr ""
    413453
    414 #: src/Shipping/SettingsSection.php:84
     454#: src/Shipping/SettingsSection.php:85
    415455msgid "Set in wp-config.php (WPRUBY_CPS_API_SECRET)."
    416456msgstr ""
    417457
    418 #: src/Shipping/SettingsSection.php:84
     458#: src/Shipping/SettingsSection.php:85
    419459msgid "Stored in your database. Leave empty to keep the saved secret."
    420460msgstr ""
    421461
    422 #: src/Shipping/SettingsSection.php:87
     462#: src/Shipping/SettingsSection.php:88
    423463msgid "Customer number"
    424464msgstr ""
    425465
    426 #: src/Shipping/SettingsSection.php:90
     466#: src/Shipping/SettingsSection.php:91
    427467msgid "Your Canada Post customer number (up to 10 digits), shown in your Canada Post business account."
    428468msgstr ""
    429469
    430 #: src/Shipping/SettingsSection.php:93
     470#: src/Shipping/SettingsSection.php:94
    431471msgid "Account type"
    432472msgstr ""
    433473
    434 #: src/Shipping/SettingsSection.php:97
     474#: src/Shipping/SettingsSection.php:98
    435475msgid "Solutions for Small Business (retail rates)"
    436476msgstr ""
    437477
    438 #: src/Shipping/SettingsSection.php:98
     478#: src/Shipping/SettingsSection.php:99
    439479msgid "Commercial contract (business rates)"
    440480msgstr ""
    441481
    442 #: src/Shipping/SettingsSection.php:102
     482#: src/Shipping/SettingsSection.php:103
    443483msgid "Contract number"
    444484msgstr ""
    445485
    446 #: src/Shipping/SettingsSection.php:105
     486#: src/Shipping/SettingsSection.php:106
    447487msgid "Commercial accounts only. Leave empty for Solutions for Small Business."
    448488msgstr ""
    449489
    450 #: src/Shipping/SettingsSection.php:108
     490#: src/Shipping/SettingsSection.php:109
    451491msgid "Ship-from postal code"
    452492msgstr ""
    453493
    454 #: src/Shipping/SettingsSection.php:112
     494#: src/Shipping/SettingsSection.php:113
    455495msgid "Where your parcels leave from. Leave empty to use the store address when it is in Canada."
    456496msgstr ""
    457497
    458 #: src/Shipping/SettingsSection.php:116
     498#: src/Shipping/SettingsSection.php:117
    459499msgid "Parcels"
    460500msgstr ""
    461501
    462 #: src/Shipping/SettingsSection.php:118
     502#: src/Shipping/SettingsSection.php:119
    463503msgid "How cart items are packed into parcels, and the weight and size used for products that have none."
    464504msgstr ""
    465505
    466 #: src/Shipping/SettingsSection.php:121
     506#: src/Shipping/SettingsSection.php:122
    467507msgid "Packing"
    468508msgstr ""
    469509
    470 #: src/Shipping/SettingsSection.php:125
     510#: src/Shipping/SettingsSection.php:126
    471511msgid "Pack items together (split into more parcels by weight)"
    472512msgstr ""
    473513
    474 #: src/Shipping/SettingsSection.php:126
     514#: src/Shipping/SettingsSection.php:127
    475515msgid "Ship each item in its own parcel"
    476516msgstr ""
    477517
    478 #: src/Shipping/SettingsSection.php:130
     518#: src/Shipping/SettingsSection.php:131
    479519msgid "Maximum parcel weight (kg)"
    480520msgstr ""
    481521
    482 #: src/Shipping/SettingsSection.php:133
     522#: src/Shipping/SettingsSection.php:134
    483523msgid "When packing items together, a new parcel starts above this weight. Canada Post's limit is 30 kg."
    484524msgstr ""
    485525
    486526#. translators: %s: weight unit
    487 #: src/Shipping/SettingsSection.php:137
     527#: src/Shipping/SettingsSection.php:138
    488528msgid "Default weight (%s)"
    489529msgstr ""
    490530
    491 #: src/Shipping/SettingsSection.php:140
     531#: src/Shipping/SettingsSection.php:141
    492532msgid "Used for products with no weight."
    493533msgstr ""
    494534
    495535#. translators: %s: dimension unit
    496 #: src/Shipping/SettingsSection.php:144
     536#: src/Shipping/SettingsSection.php:145
    497537msgid "Default length (%s)"
    498538msgstr ""
    499539
    500540#. translators: %s: dimension unit
    501 #: src/Shipping/SettingsSection.php:150
     541#: src/Shipping/SettingsSection.php:151
    502542msgid "Default width (%s)"
    503543msgstr ""
    504544
    505545#. translators: %s: dimension unit
    506 #: src/Shipping/SettingsSection.php:156
     546#: src/Shipping/SettingsSection.php:157
    507547msgid "Default height (%s)"
    508548msgstr ""
    509549
    510 #: src/Shipping/SettingsSection.php:159
     550#: src/Shipping/SettingsSection.php:160
    511551msgid "Used for products with no size. Leave empty to quote those products by weight only."
    512552msgstr ""
    513553
    514554#. translators: %s: weight unit
    515 #: src/Shipping/SettingsSection.php:163
     555#: src/Shipping/SettingsSection.php:164
    516556msgid "Packaging weight (%s)"
    517557msgstr ""
    518558
    519 #: src/Shipping/SettingsSection.php:166
     559#: src/Shipping/SettingsSection.php:167
    520560msgid "Added to every parcel for the box and padding."
    521561msgstr ""
    522562
    523 #: src/Shipping/SettingsSection.php:170
     563#: src/Shipping/SettingsSection.php:171
    524564msgid "Currency and troubleshooting"
    525565msgstr ""
    526566
    527 #: src/Shipping/SettingsSection.php:172
     567#: src/Shipping/SettingsSection.php:173
    528568msgid "Currency conversion for stores not in CAD, and logging for when rates don't show up."
    529569msgstr ""
    530570
    531 #: src/Shipping/SettingsSection.php:175
     571#: src/Shipping/SettingsSection.php:176
    532572msgid "CAD exchange rate"
    533573msgstr ""
    534574
    535575#. translators: %s: store currency code
    536 #: src/Shipping/SettingsSection.php:179
     576#: src/Shipping/SettingsSection.php:180
    537577msgid "Canada Post quotes in CAD. Your store uses %s, so rates are multiplied by this number. Ignored when the store uses CAD."
    538578msgstr ""
    539579
    540 #: src/Shipping/SettingsSection.php:182
     580#: src/Shipping/SettingsSection.php:183
    541581msgid "Debug mode"
    542582msgstr ""
    543583
    544 #: src/Shipping/SettingsSection.php:184
     584#: src/Shipping/SettingsSection.php:185
    545585msgid "Show Canada Post errors on the cart and checkout to shop managers, and log them"
    546586msgstr ""
    547587
    548 #: src/Shipping/SettingsSection.php:186
     588#: src/Shipping/SettingsSection.php:187
    549589msgid "Logs are in WooCommerce → Status → Logs (source: wpruby-canada-post). Customers never see these messages."
    550590msgstr ""
    551591
    552 #: src/Shipping/SettingsSection.php:205
     592#: src/Shipping/SettingsSection.php:206
    553593msgid "Saved (hidden)"
    554594msgstr ""
    555595
    556 #: src/Shipping/SettingsSection.php:236
     596#: src/Shipping/SettingsSection.php:237
    557597msgid "The ship-from postal code must be a Canadian postal code, like K1A 0B1. The previous value was kept."
    558598msgstr ""
    559599
    560 #: src/Shipping/SettingsSection.php:251
     600#: src/Shipping/SettingsSection.php:252
    561601msgid "The customer number has at most 10 digits. The previous value was kept."
    562602msgstr ""
    563603
    564 #: src/Shipping/SettingsSection.php:278
     604#: src/Shipping/SettingsSection.php:279
    565605msgid "Connect your Canada Post account"
    566606msgstr ""
    567607
    568 #: src/Shipping/SettingsSection.php:279
     608#: src/Shipping/SettingsSection.php:280
    569609msgid "API key, secret and customer number."
    570610msgstr ""
    571611
    572 #: src/Shipping/SettingsSection.php:284
     612#: src/Shipping/SettingsSection.php:285
    573613msgid "Set your ship-from postal code"
    574614msgstr ""
    575615
    576616#. translators: %s: postal code
    577 #: src/Shipping/SettingsSection.php:287
     617#: src/Shipping/SettingsSection.php:288
    578618msgid "Parcels ship from %s."
    579619msgstr ""
    580620
    581 #: src/Shipping/SettingsSection.php:288
     621#: src/Shipping/SettingsSection.php:289
    582622msgid "Where your parcels leave from."
    583623msgstr ""
    584624
    585 #: src/Shipping/SettingsSection.php:293
     625#: src/Shipping/SettingsSection.php:294
    586626msgid "Add Canada Post to a shipping zone"
    587627msgstr ""
    588628
    589629#. translators: %d: number of shipping zones
    590 #: src/Shipping/SettingsSection.php:296
     630#: src/Shipping/SettingsSection.php:297
    591631msgid "Offered in %d zone."
    592632msgid_plural "Offered in %d zones."
    … …  
    594634msgstr[1] ""
    595635
    596 #: src/Shipping/SettingsSection.php:297
     636#: src/Shipping/SettingsSection.php:298
    597637msgid "Then pick the services customers can choose."
    598638msgstr ""
    599639
    600 #: src/Shipping/SettingsSection.php:304
     640#: src/Shipping/SettingsSection.php:305
    601641msgid "Not connected"
    602642msgstr ""
    603643
    604 #: src/Shipping/SettingsSection.php:306
     644#: src/Shipping/SettingsSection.php:307
    605645msgid "Test app"
    606646msgstr ""
    607647
    608 #: src/Shipping/SettingsSection.php:308
     648#: src/Shipping/SettingsSection.php:309
    609649msgid "Production app"
    610650msgstr ""
    611651
    612 #: src/Shipping/SettingsSection.php:324
     652#: src/Shipping/SettingsSection.php:325
    613653msgid "Get started"
    614654msgstr ""
    615655
    616656#. translators: 1: steps done, 2: total steps
    617 #: src/Shipping/SettingsSection.php:328
     657#: src/Shipping/SettingsSection.php:329
    618658msgid "%1$d of %2$d done"
    619659msgstr ""
    620660
    621 #: src/Shipping/SettingsSection.php:340
     661#: src/Shipping/SettingsSection.php:341
    622662msgid "Done"
    623663msgstr ""
    624664
    625 #: src/Shipping/SettingsSection.php:340
     665#: src/Shipping/SettingsSection.php:341
    626666msgid "To do"
    627667msgstr ""
    628668
    629 #: src/Shipping/SettingsSection.php:367
     669#: src/Shipping/SettingsSection.php:368
    630670msgid "Connection test"
    631671msgstr ""
    632672
    633 #: src/Shipping/SettingsSection.php:369
     673#: src/Shipping/SettingsSection.php:370
    634674msgid "Asks Canada Post for a 1 kg Regular Parcel rate from your postal code to itself. Save your changes first."
    635675msgstr ""
    636676
    637 #: src/Shipping/SettingsSection.php:373
     677#: src/Shipping/SettingsSection.php:374
    638678msgid "Test connection"
    639679msgstr ""
    640680
    641 #: src/Shipping/SettingsSection.php:379
     681#: src/Shipping/SettingsSection.php:380
    642682msgid "Enter and save your API key, secret and customer number to run the test."
    643683msgstr ""
    644684
    645 #: src/Shipping/SettingsSection.php:387
     685#: src/Shipping/SettingsSection.php:390
    646686msgid "Help"
    647687msgstr ""
    648688
    649 #: src/Shipping/SettingsSection.php:390
     689#: src/Shipping/SettingsSection.php:393
    650690msgid "Setup guide"
    651691msgstr ""
    652692
    653 #: src/Shipping/SettingsSection.php:392
     693#: src/Shipping/SettingsSection.php:395
    654694msgid "Debug logs"
    655695msgstr ""
    656696
    657 #: src/Shipping/SettingsSection.php:393
     697#: src/Shipping/SettingsSection.php:396
    658698msgid "Support forum"
    659699msgstr ""
    660700
    661 #: src/Shipping/SettingsSection.php:394
     701#: src/Shipping/SettingsSection.php:397
    662702msgid "Rate the plugin"
    663703msgstr ""
  • 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 ===
    22Contributors: waseem_senjer, wprubyplugins
    33Tags: canada post, shipping rates, woocommerce shipping, canada, shipping calculator
    … …  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    2727* **Block and classic checkout:** rates appear in both, and the plugin is compatible with WooCommerce's order storage (HPOS).
    2828
     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
     39Your shipping zones keep their settings when you upgrade.
     40
    2941= Links =
    3042
    3143* [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)
    3245* [Support forum](https://wordpress.org/support/plugin/wpruby-shipping-rates-canada-post/)
    3346* [Source code on GitHub](https://github.com/wsenjer/wpruby-shipping-rates-canada-post)
    … …  
    7790= Can I print shipping labels? =
    7891
    79 No. This plugin shows live Canada Post rates at checkout; it doesn't create labels.
     92Not 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
     96Install 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.
    8097
    8198= Can I keep the API key out of the database? =
    … …  
    107124== Changelog ==
    108125
     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
    109130= 1.0.0 =
    110131* Added: Live Canada Post rates for Canada, the US and international destinations, from Canada Post's Rating API.
    … …  
    114135== Upgrade Notice ==
    115136
     137= 1.0.1 =
     138Adds information about Canada Post Pro to the settings screens. No changes to rates.
     139
    116140= 1.0.0 =
    117141First release.
    … …  
    119143== Disclaimer ==
    120144
    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.
     145Canada 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  
    99
    1010use WPRuby\CanadaPostShipping\Admin\ConnectionCheck;
     11use WPRuby\CanadaPostShipping\Admin\Upsell;
    1112use WPRuby\CanadaPostShipping\Shipping\Method;
    1213use WPRuby\CanadaPostShipping\Shipping\SettingsSection;
    … …  
    5455
    5556        /**
    56          * Settings first, then support.
     57         * Settings first, then Pro and support.
    5758         *
    5859         * @param array $links Plugin row links.
    … …  
    6162                $links = (array) $links;
    6263                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>';
    6365                $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>';
    6466                return $links;
  • wpruby-shipping-rates-canada-post/tags/1.0.1/src/Shipping/Method.php

    r3831201 r3831230  
    253253
    254254        /**
    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.
    256257         */
    257258        public function admin_options() {
    … …  
    267268                        ) . '</p></div>';
    268269                }
     270                echo '<div class="wpruby-cps-admin wpruby-cps-zone-pro">';
     271                \WPRuby\CanadaPostShipping\Admin\Upsell::card( 'zone-settings' );
     272                echo '</div>';
    269273        }
    270274
  • wpruby-shipping-rates-canada-post/tags/1.0.1/src/Shipping/SettingsSection.php

    r3831201 r3831230  
    99
    1010use WC_Shipping_Method;
     11use WPRuby\CanadaPostShipping\Admin\Upsell;
    1112use WPRuby\CanadaPostShipping\Settings;
    1213
    … …  
    382383                                                </div>
    383384                                        </div>
     385
     386                                        <?php Upsell::card( 'settings' ); ?>
    384387
    385388                                        <div class="wpruby-cps-card">
  • wpruby-shipping-rates-canada-post/tags/1.0.1/wpruby-shipping-rates-canada-post.php

    r3831201 r3831230  
    11<?php
    22/**
    3  * Plugin Name:          WPRuby Shipping Rates for Canada Post
     3 * Plugin Name:          WPRuby Shipping Rates for Canada Post and WooCommerce
    44 * Plugin URI:           https://wordpress.org/plugins/wpruby-shipping-rates-canada-post/
    55 * 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.0
     6 * Version:              1.0.1
    77 * Author:               WPRuby
    88 * Author URI:           https://wpruby.com
    … …  
    5050}
    5151
    52 define( 'WPRUBY_CPS_VERSION', '1.0.0' );
     52define( 'WPRUBY_CPS_VERSION', '1.0.1' );
    5353define( 'WPRUBY_CPS_FILE', __FILE__ );
    5454define( 'WPRUBY_CPS_DIR', plugin_dir_path( __FILE__ ) );
  • wpruby-shipping-rates-canada-post/trunk/assets/css/admin.css

    r3831201 r3831230  
    346346}
    347347
     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
    348392/* Help links */
    349393
  • wpruby-shipping-rates-canada-post/trunk/languages/wpruby-shipping-rates-canada-post.pot

    r3831201 r3831230  
    33msgid ""
    44msgstr ""
    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"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpruby-shipping-rates-canada-post\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-11-27T11:04:13+00:00\n"
     12"POT-Creation-Date: 2026-11-28T10:36:32+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
    … …  
    1717#. Plugin Name of the plugin
    1818#: wpruby-shipping-rates-canada-post.php
    19 msgid "WPRuby Shipping Rates for Canada Post"
     19msgid "WPRuby Shipping Rates for Canada Post and WooCommerce"
    2020msgstr ""
    2121
    … …  
    5959#: src/Admin/ConnectionCheck.php:80
    6060msgid "This is a Test app, so the price is a sample."
     61msgstr ""
     62
     63#: src/Admin/Upsell.php:40
     64msgid "Print Canada Post labels from the order screen, one order or in bulk"
     65msgstr ""
     66
     67#: src/Admin/Upsell.php:41
     68msgid "End-of-day manifests, pickups and return labels"
     69msgstr ""
     70
     71#: src/Admin/Upsell.php:42
     72msgid "Tracking numbers and status updates in order emails and My Account"
     73msgstr ""
     74
     75#: src/Admin/Upsell.php:43
     76msgid "Delivery to a post office chosen at checkout, and AddressComplete"
     77msgstr ""
     78
     79#: src/Admin/Upsell.php:44
     80msgid "Your own boxes with 3D packing, free shipping thresholds and per-service price adjustments"
     81msgstr ""
     82
     83#: src/Admin/Upsell.php:57
     84msgid "Upgrade to Canada Post Pro"
     85msgstr ""
     86
     87#: src/Admin/Upsell.php:66
     88msgid "Get Canada Post Pro"
     89msgstr ""
     90
     91#: src/Admin/Upsell.php:67
     92msgid "(opens in a new tab)"
     93msgstr ""
     94
     95#: src/Admin/Upsell.php:70
     96msgid "Your shipping zones keep their settings when you upgrade."
    6197msgstr ""
    6298
    … …  
    101137msgstr ""
    102138
    103 #: src/Plugin.php:62
     139#: src/Plugin.php:63
    104140msgid "Settings"
    105141msgstr ""
    106142
    107 #: src/Plugin.php:63
     143#: src/Plugin.php:64
     144msgid "Get the Pro version"
     145msgstr ""
     146
     147#: src/Plugin.php:65
    108148msgid "Support"
    109149msgstr ""
    110150
    111 #: src/Plugin.php:104
     151#: src/Plugin.php:106
    112152msgid "Checking…"
    113153msgstr ""
    114154
    115 #: src/Plugin.php:105
     155#: src/Plugin.php:107
    116156msgid "The check could not run. Reload the page and try again."
    117157msgstr ""
    118158
    119 #: src/Plugin.php:106
     159#: src/Plugin.php:108
    120160msgid "Connected"
    121161msgstr ""
    122162
    123163#. translators: 1: services turned on, 2: services in the group
    124 #: src/Plugin.php:108
     164#: src/Plugin.php:110
    125165#: src/Shipping/Method.php:194
    126166msgid "%1$d of %2$d on"
    127167msgstr ""
    128168
    129 #: src/Plugin.php:122
     169#: src/Plugin.php:124
    130170msgid "Canada Post needs a ship-from postal code in Canada. Enter it in the Canada Post settings, or set a Canadian store address."
    131171msgstr ""
    132172
    133173#. translators: %s: store currency code
    134 #: src/Plugin.php:128
     174#: src/Plugin.php:130
    135175msgid "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."
    136176msgstr ""
    137177
    138 #: src/Plugin.php:134
     178#: src/Plugin.php:136
    139179msgid "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."
    140180msgstr ""
    … …  
    227267#: src/Shipping/Method.php:55
    228268#: src/Shipping/Method.php:66
    229 #: src/Shipping/SettingsSection.php:25
     269#: src/Shipping/SettingsSection.php:26
    230270msgid "Canada Post"
    231271msgstr ""
    … …  
    342382
    343383#. translators: %s: link to the Canada Post settings
    344 #: src/Shipping/Method.php:264
     384#: src/Shipping/Method.php:265
    345385msgid "Customers see no Canada Post rates until you connect your Canada Post account in %s."
    346386msgstr ""
    347387
    348 #: src/Shipping/Method.php:265
     388#: src/Shipping/Method.php:266
    349389msgid "the Canada Post settings"
    350390msgstr ""
    351391
    352392#. translators: 1: number of parcels, 2: quoted services
    353 #: src/Shipping/Method.php:320
     393#: src/Shipping/Method.php:324
    354394msgid "Canada Post quoted %1$d parcel(s): %2$s"
    355395msgstr ""
    356396
    357 #: src/Shipping/Method.php:322
     397#: src/Shipping/Method.php:326
    358398msgid "no services"
    359399msgstr ""
    360400
    361401#. translators: %d: business days in transit
    362 #: src/Shipping/Method.php:336
     402#: src/Shipping/Method.php:340
    363403msgid "(est. %d business day)"
    364404msgid_plural "(est. %d business days)"
    … …  
    366406msgstr[1] ""
    367407
    368 #: src/Shipping/SettingsSection.php:26
     408#: src/Shipping/SettingsSection.php:27
    369409msgid "Connect your Canada Post account and set where parcels ship from. Then add the Canada Post method to your shipping zones."
    370410msgstr ""
    371411
    372 #: src/Shipping/SettingsSection.php:52
     412#: src/Shipping/SettingsSection.php:53
    373413msgid "Canada Post account"
    374414msgstr ""
    375415
    376416#. translators: %s: link to the Canada Post Developer Portal
    377 #: src/Shipping/SettingsSection.php:57
     417#: src/Shipping/SettingsSection.php:58
    378418msgid "Create an app on the %s, add the Rating API product to it, and copy its API key and secret here."
    379419msgstr ""
    380420
    381 #: src/Shipping/SettingsSection.php:58
    382 #: src/Shipping/SettingsSection.php:391
     421#: src/Shipping/SettingsSection.php:59
     422#: src/Shipping/SettingsSection.php:394
    383423msgid "Canada Post Developer Portal"
    384424msgstr ""
    385425
    386 #: src/Shipping/SettingsSection.php:63
     426#: src/Shipping/SettingsSection.php:64
    387427msgid "App type"
    388428msgstr ""
    389429
    390 #: src/Shipping/SettingsSection.php:67
     430#: src/Shipping/SettingsSection.php:68
    391431msgid "Production app (real rates)"
    392432msgstr ""
    393433
    394 #: src/Shipping/SettingsSection.php:68
     434#: src/Shipping/SettingsSection.php:69
    395435msgid "Test app (sample rates, shown to shop managers only)"
    396436msgstr ""
    397437
    398 #: src/Shipping/SettingsSection.php:70
     438#: src/Shipping/SettingsSection.php:71
    399439msgid "Canada Post decides the type when you create the app. A Test app returns sample prices that are not your real rates."
    400440msgstr ""
    401441
    402 #: src/Shipping/SettingsSection.php:73
     442#: src/Shipping/SettingsSection.php:74
    403443msgid "API key"
    404444msgstr ""
    405445
    406 #: src/Shipping/SettingsSection.php:77
     446#: src/Shipping/SettingsSection.php:78
    407447msgid "Set in wp-config.php (WPRUBY_CPS_API_KEY)."
    408448msgstr ""
    409449
    410 #: src/Shipping/SettingsSection.php:80
     450#: src/Shipping/SettingsSection.php:81
    411451msgid "API secret"
    412452msgstr ""
    413453
    414 #: src/Shipping/SettingsSection.php:84
     454#: src/Shipping/SettingsSection.php:85
    415455msgid "Set in wp-config.php (WPRUBY_CPS_API_SECRET)."
    416456msgstr ""
    417457
    418 #: src/Shipping/SettingsSection.php:84
     458#: src/Shipping/SettingsSection.php:85
    419459msgid "Stored in your database. Leave empty to keep the saved secret."
    420460msgstr ""
    421461
    422 #: src/Shipping/SettingsSection.php:87
     462#: src/Shipping/SettingsSection.php:88
    423463msgid "Customer number"
    424464msgstr ""
    425465
    426 #: src/Shipping/SettingsSection.php:90
     466#: src/Shipping/SettingsSection.php:91
    427467msgid "Your Canada Post customer number (up to 10 digits), shown in your Canada Post business account."
    428468msgstr ""
    429469
    430 #: src/Shipping/SettingsSection.php:93
     470#: src/Shipping/SettingsSection.php:94
    431471msgid "Account type"
    432472msgstr ""
    433473
    434 #: src/Shipping/SettingsSection.php:97
     474#: src/Shipping/SettingsSection.php:98
    435475msgid "Solutions for Small Business (retail rates)"
    436476msgstr ""
    437477
    438 #: src/Shipping/SettingsSection.php:98
     478#: src/Shipping/SettingsSection.php:99
    439479msgid "Commercial contract (business rates)"
    440480msgstr ""
    441481
    442 #: src/Shipping/SettingsSection.php:102
     482#: src/Shipping/SettingsSection.php:103
    443483msgid "Contract number"
    444484msgstr ""
    445485
    446 #: src/Shipping/SettingsSection.php:105
     486#: src/Shipping/SettingsSection.php:106
    447487msgid "Commercial accounts only. Leave empty for Solutions for Small Business."
    448488msgstr ""
    449489
    450 #: src/Shipping/SettingsSection.php:108
     490#: src/Shipping/SettingsSection.php:109
    451491msgid "Ship-from postal code"
    452492msgstr ""
    453493
    454 #: src/Shipping/SettingsSection.php:112
     494#: src/Shipping/SettingsSection.php:113
    455495msgid "Where your parcels leave from. Leave empty to use the store address when it is in Canada."
    456496msgstr ""
    457497
    458 #: src/Shipping/SettingsSection.php:116
     498#: src/Shipping/SettingsSection.php:117
    459499msgid "Parcels"
    460500msgstr ""
    461501
    462 #: src/Shipping/SettingsSection.php:118
     502#: src/Shipping/SettingsSection.php:119
    463503msgid "How cart items are packed into parcels, and the weight and size used for products that have none."
    464504msgstr ""
    465505
    466 #: src/Shipping/SettingsSection.php:121
     506#: src/Shipping/SettingsSection.php:122
    467507msgid "Packing"
    468508msgstr ""
    469509
    470 #: src/Shipping/SettingsSection.php:125
     510#: src/Shipping/SettingsSection.php:126
    471511msgid "Pack items together (split into more parcels by weight)"
    472512msgstr ""
    473513
    474 #: src/Shipping/SettingsSection.php:126
     514#: src/Shipping/SettingsSection.php:127
    475515msgid "Ship each item in its own parcel"
    476516msgstr ""
    477517
    478 #: src/Shipping/SettingsSection.php:130
     518#: src/Shipping/SettingsSection.php:131
    479519msgid "Maximum parcel weight (kg)"
    480520msgstr ""
    481521
    482 #: src/Shipping/SettingsSection.php:133
     522#: src/Shipping/SettingsSection.php:134
    483523msgid "When packing items together, a new parcel starts above this weight. Canada Post's limit is 30 kg."
    484524msgstr ""
    485525
    486526#. translators: %s: weight unit
    487 #: src/Shipping/SettingsSection.php:137
     527#: src/Shipping/SettingsSection.php:138
    488528msgid "Default weight (%s)"
    489529msgstr ""
    490530
    491 #: src/Shipping/SettingsSection.php:140
     531#: src/Shipping/SettingsSection.php:141
    492532msgid "Used for products with no weight."
    493533msgstr ""
    494534
    495535#. translators: %s: dimension unit
    496 #: src/Shipping/SettingsSection.php:144
     536#: src/Shipping/SettingsSection.php:145
    497537msgid "Default length (%s)"
    498538msgstr ""
    499539
    500540#. translators: %s: dimension unit
    501 #: src/Shipping/SettingsSection.php:150
     541#: src/Shipping/SettingsSection.php:151
    502542msgid "Default width (%s)"
    503543msgstr ""
    504544
    505545#. translators: %s: dimension unit
    506 #: src/Shipping/SettingsSection.php:156
     546#: src/Shipping/SettingsSection.php:157
    507547msgid "Default height (%s)"
    508548msgstr ""
    509549
    510 #: src/Shipping/SettingsSection.php:159
     550#: src/Shipping/SettingsSection.php:160
    511551msgid "Used for products with no size. Leave empty to quote those products by weight only."
    512552msgstr ""
    513553
    514554#. translators: %s: weight unit
    515 #: src/Shipping/SettingsSection.php:163
     555#: src/Shipping/SettingsSection.php:164
    516556msgid "Packaging weight (%s)"
    517557msgstr ""
    518558
    519 #: src/Shipping/SettingsSection.php:166
     559#: src/Shipping/SettingsSection.php:167
    520560msgid "Added to every parcel for the box and padding."
    521561msgstr ""
    522562
    523 #: src/Shipping/SettingsSection.php:170
     563#: src/Shipping/SettingsSection.php:171
    524564msgid "Currency and troubleshooting"
    525565msgstr ""
    526566
    527 #: src/Shipping/SettingsSection.php:172
     567#: src/Shipping/SettingsSection.php:173
    528568msgid "Currency conversion for stores not in CAD, and logging for when rates don't show up."
    529569msgstr ""
    530570
    531 #: src/Shipping/SettingsSection.php:175
     571#: src/Shipping/SettingsSection.php:176
    532572msgid "CAD exchange rate"
    533573msgstr ""
    534574
    535575#. translators: %s: store currency code
    536 #: src/Shipping/SettingsSection.php:179
     576#: src/Shipping/SettingsSection.php:180
    537577msgid "Canada Post quotes in CAD. Your store uses %s, so rates are multiplied by this number. Ignored when the store uses CAD."
    538578msgstr ""
    539579
    540 #: src/Shipping/SettingsSection.php:182
     580#: src/Shipping/SettingsSection.php:183
    541581msgid "Debug mode"
    542582msgstr ""
    543583
    544 #: src/Shipping/SettingsSection.php:184
     584#: src/Shipping/SettingsSection.php:185
    545585msgid "Show Canada Post errors on the cart and checkout to shop managers, and log them"
    546586msgstr ""
    547587
    548 #: src/Shipping/SettingsSection.php:186
     588#: src/Shipping/SettingsSection.php:187
    549589msgid "Logs are in WooCommerce → Status → Logs (source: wpruby-canada-post). Customers never see these messages."
    550590msgstr ""
    551591
    552 #: src/Shipping/SettingsSection.php:205
     592#: src/Shipping/SettingsSection.php:206
    553593msgid "Saved (hidden)"
    554594msgstr ""
    555595
    556 #: src/Shipping/SettingsSection.php:236
     596#: src/Shipping/SettingsSection.php:237
    557597msgid "The ship-from postal code must be a Canadian postal code, like K1A 0B1. The previous value was kept."
    558598msgstr ""
    559599
    560 #: src/Shipping/SettingsSection.php:251
     600#: src/Shipping/SettingsSection.php:252
    561601msgid "The customer number has at most 10 digits. The previous value was kept."
    562602msgstr ""
    563603
    564 #: src/Shipping/SettingsSection.php:278
     604#: src/Shipping/SettingsSection.php:279
    565605msgid "Connect your Canada Post account"
    566606msgstr ""
    567607
    568 #: src/Shipping/SettingsSection.php:279
     608#: src/Shipping/SettingsSection.php:280
    569609msgid "API key, secret and customer number."
    570610msgstr ""
    571611
    572 #: src/Shipping/SettingsSection.php:284
     612#: src/Shipping/SettingsSection.php:285
    573613msgid "Set your ship-from postal code"
    574614msgstr ""
    575615
    576616#. translators: %s: postal code
    577 #: src/Shipping/SettingsSection.php:287
     617#: src/Shipping/SettingsSection.php:288
    578618msgid "Parcels ship from %s."
    579619msgstr ""
    580620
    581 #: src/Shipping/SettingsSection.php:288
     621#: src/Shipping/SettingsSection.php:289
    582622msgid "Where your parcels leave from."
    583623msgstr ""
    584624
    585 #: src/Shipping/SettingsSection.php:293
     625#: src/Shipping/SettingsSection.php:294
    586626msgid "Add Canada Post to a shipping zone"
    587627msgstr ""
    588628
    589629#. translators: %d: number of shipping zones
    590 #: src/Shipping/SettingsSection.php:296
     630#: src/Shipping/SettingsSection.php:297
    591631msgid "Offered in %d zone."
    592632msgid_plural "Offered in %d zones."
    … …  
    594634msgstr[1] ""
    595635
    596 #: src/Shipping/SettingsSection.php:297
     636#: src/Shipping/SettingsSection.php:298
    597637msgid "Then pick the services customers can choose."
    598638msgstr ""
    599639
    600 #: src/Shipping/SettingsSection.php:304
     640#: src/Shipping/SettingsSection.php:305
    601641msgid "Not connected"
    602642msgstr ""
    603643
    604 #: src/Shipping/SettingsSection.php:306
     644#: src/Shipping/SettingsSection.php:307
    605645msgid "Test app"
    606646msgstr ""
    607647
    608 #: src/Shipping/SettingsSection.php:308
     648#: src/Shipping/SettingsSection.php:309
    609649msgid "Production app"
    610650msgstr ""
    611651
    612 #: src/Shipping/SettingsSection.php:324
     652#: src/Shipping/SettingsSection.php:325
    613653msgid "Get started"
    614654msgstr ""
    615655
    616656#. translators: 1: steps done, 2: total steps
    617 #: src/Shipping/SettingsSection.php:328
     657#: src/Shipping/SettingsSection.php:329
    618658msgid "%1$d of %2$d done"
    619659msgstr ""
    620660
    621 #: src/Shipping/SettingsSection.php:340
     661#: src/Shipping/SettingsSection.php:341
    622662msgid "Done"
    623663msgstr ""
    624664
    625 #: src/Shipping/SettingsSection.php:340
     665#: src/Shipping/SettingsSection.php:341
    626666msgid "To do"
    627667msgstr ""
    628668
    629 #: src/Shipping/SettingsSection.php:367
     669#: src/Shipping/SettingsSection.php:368
    630670msgid "Connection test"
    631671msgstr ""
    632672
    633 #: src/Shipping/SettingsSection.php:369
     673#: src/Shipping/SettingsSection.php:370
    634674msgid "Asks Canada Post for a 1 kg Regular Parcel rate from your postal code to itself. Save your changes first."
    635675msgstr ""
    636676
    637 #: src/Shipping/SettingsSection.php:373
     677#: src/Shipping/SettingsSection.php:374
    638678msgid "Test connection"
    639679msgstr ""
    640680
    641 #: src/Shipping/SettingsSection.php:379
     681#: src/Shipping/SettingsSection.php:380
    642682msgid "Enter and save your API key, secret and customer number to run the test."
    643683msgstr ""
    644684
    645 #: src/Shipping/SettingsSection.php:387
     685#: src/Shipping/SettingsSection.php:390
    646686msgid "Help"
    647687msgstr ""
    648688
    649 #: src/Shipping/SettingsSection.php:390
     689#: src/Shipping/SettingsSection.php:393
    650690msgid "Setup guide"
    651691msgstr ""
    652692
    653 #: src/Shipping/SettingsSection.php:392
     693#: src/Shipping/SettingsSection.php:395
    654694msgid "Debug logs"
    655695msgstr ""
    656696
    657 #: src/Shipping/SettingsSection.php:393
     697#: src/Shipping/SettingsSection.php:396
    658698msgid "Support forum"
    659699msgstr ""
    660700
    661 #: src/Shipping/SettingsSection.php:394
     701#: src/Shipping/SettingsSection.php:397
    662702msgid "Rate the plugin"
    663703msgstr ""
  • 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 ===
    22Contributors: waseem_senjer, wprubyplugins
    33Tags: canada post, shipping rates, woocommerce shipping, canada, shipping calculator
    … …  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    2727* **Block and classic checkout:** rates appear in both, and the plugin is compatible with WooCommerce's order storage (HPOS).
    2828
     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
     39Your shipping zones keep their settings when you upgrade.
     40
    2941= Links =
    3042
    3143* [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)
    3245* [Support forum](https://wordpress.org/support/plugin/wpruby-shipping-rates-canada-post/)
    3346* [Source code on GitHub](https://github.com/wsenjer/wpruby-shipping-rates-canada-post)
    … …  
    7790= Can I print shipping labels? =
    7891
    79 No. This plugin shows live Canada Post rates at checkout; it doesn't create labels.
     92Not 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
     96Install 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.
    8097
    8198= Can I keep the API key out of the database? =
    … …  
    107124== Changelog ==
    108125
     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
    109130= 1.0.0 =
    110131* Added: Live Canada Post rates for Canada, the US and international destinations, from Canada Post's Rating API.
    … …  
    114135== Upgrade Notice ==
    115136
     137= 1.0.1 =
     138Adds information about Canada Post Pro to the settings screens. No changes to rates.
     139
    116140= 1.0.0 =
    117141First release.
    … …  
    119143== Disclaimer ==
    120144
    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.
     145Canada 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  
    99
    1010use WPRuby\CanadaPostShipping\Admin\ConnectionCheck;
     11use WPRuby\CanadaPostShipping\Admin\Upsell;
    1112use WPRuby\CanadaPostShipping\Shipping\Method;
    1213use WPRuby\CanadaPostShipping\Shipping\SettingsSection;
    … …  
    5455
    5556        /**
    56          * Settings first, then support.
     57         * Settings first, then Pro and support.
    5758         *
    5859         * @param array $links Plugin row links.
    … …  
    6162                $links = (array) $links;
    6263                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>';
    6365                $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>';
    6466                return $links;
  • wpruby-shipping-rates-canada-post/trunk/src/Shipping/Method.php

    r3831201 r3831230  
    253253
    254254        /**
    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.
    256257         */
    257258        public function admin_options() {
    … …  
    267268                        ) . '</p></div>';
    268269                }
     270                echo '<div class="wpruby-cps-admin wpruby-cps-zone-pro">';
     271                \WPRuby\CanadaPostShipping\Admin\Upsell::card( 'zone-settings' );
     272                echo '</div>';
    269273        }
    270274
  • wpruby-shipping-rates-canada-post/trunk/src/Shipping/SettingsSection.php

    r3831201 r3831230  
    99
    1010use WC_Shipping_Method;
     11use WPRuby\CanadaPostShipping\Admin\Upsell;
    1112use WPRuby\CanadaPostShipping\Settings;
    1213
    … …  
    382383                                                </div>
    383384                                        </div>
     385
     386                                        <?php Upsell::card( 'settings' ); ?>
    384387
    385388                                        <div class="wpruby-cps-card">
  • wpruby-shipping-rates-canada-post/trunk/wpruby-shipping-rates-canada-post.php

    r3831201 r3831230  
    11<?php
    22/**
    3  * Plugin Name:          WPRuby Shipping Rates for Canada Post
     3 * Plugin Name:          WPRuby Shipping Rates for Canada Post and WooCommerce
    44 * Plugin URI:           https://wordpress.org/plugins/wpruby-shipping-rates-canada-post/
    55 * 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.0
     6 * Version:              1.0.1
    77 * Author:               WPRuby
    88 * Author URI:           https://wpruby.com
    … …  
    5050}
    5151
    52 define( 'WPRUBY_CPS_VERSION', '1.0.0' );
     52define( 'WPRUBY_CPS_VERSION', '1.0.1' );
    5353define( 'WPRUBY_CPS_FILE', __FILE__ );
    5454define( 'WPRUBY_CPS_DIR', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.