Upgrading to CartThrob 10.0.1
CartThrob 10.0.1 is a maintenance and security point release on top of CartThrob 10.0. For most stores the upgrade is small: replace the CartThrob and Order Manager files, run the ExpressionEngine add-on updater, and you are done. There is no new Version Review step beyond the one CartThrob 10 already introduced.
The main thing to know is that 10.0.1 includes a round of tax, shipping and coupon refinements for consistency, so some stores will see a slightly different total on the same cart — usually a rounding cent, sometimes more where tax and shipping settings interact. Nothing here needs a template rewrite, but if any item under What may change applies to your store, compare a test order on a staging copy before you update production.
Still on CartThrob 9 or earlier? Follow Upgrading to CartThrob 10 first — it covers Version Review and custom-form migration — then use this page for the 10.0.1 specifics.
Before updating
- Back up the database, templates, and the current CartThrob and Order Manager add-on folders.
- If any tax, shipping or coupon item below applies, update a staging copy first and keep a 10.0.0 copy for comparison.
- Deploy the matching Order Manager files with CartThrob.
Update
- Replace the CartThrob and Order Manager folders in
system/user/addons(andthemes/user), then run the ExpressionEngine add-on updater. - Purge any CDN, reverse-proxy or external template cache.
Most stores need nothing further. The sections below apply only where the named feature or template pattern is in use.
Cut to the chase
What a store may have to do when it updates. The rest of this page explains each item.
Change in templates
- Subscription term fields. A customer’s choice of subscription terms is used only when the form declares it — with Subscriptions’
subscription_selectinside the form, or with theoptions:parameter on the form tag. - Save my card. A hand-written checkbox named
force_vaultorVLTneeds theoptions:parameter set:options:force_vault="yes|no"oncheckout_form. If the customer is meant to choose, removeforce_vault=from the tag — the fixed parameter wins. - Cart and multi-add leftovers from 9.x. Remove per-row
no_tax,no_shippingandtitlefields fromupdate_cart_form, and thepNTXandpNSHhidden fields frommulti_add_to_cart_form. They are ignored and logged. Map the Tax Exempt and Shipping Exempt product fields instead. - Tax By Class. Map a Tax Class product field or set
item_options:tax_class=on the form, then remove the posteditem_options[tax_class]field (it works only until the next major version). - Checkout amounts.
price=,shipping=andtax=oncheckout_formmust be plain numbers of zero or more. Empty, formatted, negative and exponent values are now ignored, so a template that passedprice=""or€5charges the cart’s figure instead. - Converted currency. A store using
view_converted_currencyneeds acartthrob_view_converted_currencyhook, or should drop the tag. Theapi_key=parameter does nothing. - Installed copies of the shipped examples. The add-on update does not rewrite templates already in the site. A store that installed the 10.0.0 or Subscriptions 5 examples still has the old gateway, the
no_taxparameters, thepNTXfields and the encrypted-only donation form. Compare them with the shipped files, and reinstall or edit them.
Check in settings
- Tax by Location – Plus Quebec. The Quebec Tax Effective Rate setting is gone and the default QST is now 9.975%. A store that never saved the plugin’s settings now charges 14.975% in Quebec. Open the plugin’s settings, check the rates and save.
- Flat Rates Shipping. “Shipping is free at” is now read as an amount. Check the saved value — a word such as
freenow sets no threshold. - Tax rules. Rules saved with three-letter country codes now match customers posted with two-letter codes, so rules that never matched can start charging. Review the tax table and any Tax By Class rows, including their state and country order.
- Form Reviews. Run the readiness scan again after updating. The renamed catalog-product notice, “Confirm this form is not meant to add a catalog product,” must be marked reviewed before the store shows as ready.
- Logging. Payment returns and changed quotes are written only at
log_threshold3. Developer Log entries startingCartThrob:are the new signal for ignored fields; expect them on the first test submissions and fix what each one names. - Purchased Items Default Status. After a successful payment, Purchased Items now take the Default Status set in the Purchased Items settings instead of
open. Check that the saved default is the status you want. - Orders Subscription ID field. Map the Subscription ID field in the Orders settings — for example the sample Orders channel’s Payment: Subscription ID field — so each order that starts or renews a subscription records the subscription’s ID. Nothing is mapped on a new install.
What may change from 10.0.0
These are refinements for consistency in how tax, shipping and totals are calculated. For most carts the total is unchanged or off by a rounding cent; a larger difference shows up only where particular tax or shipping settings interact. The amounts reflect what your settings describe. Each case below has an example — if one applies to your store, compare a test order on a staging copy before updating production.
The examples use round numbers and assume tax is calculated on the item price. Your store’s figures depend on its tax plugin, rows and settings.
Tax
Tax by Location – Plus Quebec. This plugin applied QST to the GST amount rather than to the price, so a Quebec customer paid about 0.5% instead of GST plus QST.
| $200.00 order, Quebec customer, GST 5%, QST 9.975% | 10.0.0 | 10.0.1 |
|---|---|---|
| Tax | $1.00 | $29.95 |
{cart_tax_rate} |
Effective Rate setting | 14.975% |
- Tax Shipping for purchases made in Quebec set to No no longer taxes Quebec shipping (it was read as Yes).
- The Quebec Tax Effective Rate setting, which nothing read for tax, is removed; a saved value is ignored.
- The default QST is 9.975% (was 8.5%), so a store that never saved this plugin’s settings charges 14.975% in Quebec.
Tax By Class — shipping is now taxed. Shipping has no class, so it uses the customer’s location row (state, then country, then GLOBAL) and is taxed when that row has Tax Shipping on. 10.0.0 never taxed shipping under this plugin. Example: $10.00 shipping with the customer’s row at 8% and Tax Shipping on — shipping tax was $0.00 in 10.0.0 and is $0.80 in 10.0.1.
Tax By Class — location row selection. 10.0.0 used the first row whose country matched, so with rows for several states every shopper paid the first-listed state’s rate. 10.0.1 uses the row for the customer’s state (when the row’s country matches), else the country row with no state, else the GLOBAL row, else no tax.
| Rows for class A, in order: USA / WA 10%, USA / OR 0%, USA (no state) 6% | 10.0.0 | 10.0.1 |
|---|---|---|
| Shopper in Oregon | 10% | 0% |
| Shopper in Idaho, or no state given | 10% | 6% |
A state row matches only a shopper in that row’s country, so a USA / WA row no longer taxes a Western Australia shopper. An item whose class has no row for the location is now untaxed, rather than taking the rate of the item before it.
Tax By Class — discounts reduce tax. With no Discount Tax Rate set, a discount’s taxable share is taxed at each discounted item’s class rate, as in the other tax plugins; 10.0.0 never reduced tax for a discount under this plugin. Example: $100.00 of class A items at 10% with a $20.00 coupon and no Discount Tax Rate — tax was $10.00 in 10.0.0 and is $8.00 in 10.0.1. A set Discount Tax Rate is still used for every discount, and an explicit 0 now means 0.
Two- and three-letter country codes (Standard, Default, Quebec and Tax By Class). The Control Panel saves tax rules with three-letter codes (USA), and {country_select alpha2="yes"} posts two-letter codes (US). Such rules never matched in 10.0.0, so those orders took the default rate or no tax; in 10.0.1 they match. (In the mixed state-and-country selectors, CA is still California. Saved customer details, gateway data and shipping are unchanged.)
Address changed during checkout (Tax by Location – Percentage plugins). These plugins kept the tax row for the first address rated in a request, so a mid-checkout address change could tax items at the old address while shipping used the new one. 10.0.1 rates both from the current address. Example: Default location Washington at 10%, shopper posts an Oregon address (0%) — 10.0.0 charged items 10% and shipping 0%; 10.0.1 charges 0% on both.
Checkout overrides. checkout_form’s shipping, allow_user_shipping and price replaced one figure and left the cart’s tax unchanged. Now a replaced shipping amount is taxed with the store’s tax plugin and the customer’s location, a replaced price scales item tax to the new subtotal (keeping each item’s rate, exemptions and the discount’s tax share), and a fixed tax still replaces the whole tax.
| Cart: $100.00 items, $10.00 shipping, 10% tax on both | 10.0.0 | 10.0.1 |
|---|---|---|
| No override | $121.00 | $121.00 |
shipping="0" |
$111.00 (tax $11.00) | $110.00 (tax $10.00) |
price="50" |
$71.00 (tax $11.00) | $66.00 (tax $6.00) |
Rounding and tax extensions. With Round tax only on subtotal on, the cart total was built from per-item rounded taxed prices and could sit a cent from subtotal − discount + shipping + tax; a checkout override could move the charged total by two cents. The total is now exactly those figures. When a cartthrob_calculate_tax extension sets the order tax, the plugin’s shipping and discount tax are no longer added on top, and the extension is no longer called with 0 while the total is calculated.
Coupons, shipping and checkout totals
| Situation | 10.0.0 | 10.0.1 |
|---|---|---|
$100.00 cart; a $10.00 coupon posted with checkout_form on Offline Payments or Authorize.net |
Charged $100.00; coupon left on the cart | Charged $90.00 |
| Free Shipping Over X at $50, $60.00 subtotal, $8.00 shipping | $8.00 shipping, plus its tax | $0.00 shipping |
Flat Rates, “Shipping is free at” 1,000, $500.00 cart |
Ships free | Charged shipping |
Flat Rates, “Shipping is free at” $75, $20.00 cart |
Ships free | Charged shipping |
| By Quantity / Location Quantity Threshold, 3 units of which 1 is Shipping Exempt | Counted 3 | Counts 2 |
checkout_form amount that is not a plain number |
See checkout overrides | Ignored |
A Flat Rates threshold that is not an amount, such as free, now sets no free-shipping threshold.
Templates, logging and subscriptions
- Parameter values that look like yes/no are no longer dropped. Where a tag expects text, a value such as the country code
NO, the province codeON, or a literalyes,off,torfalsewas read as a boolean in 10.0.0 and the real value was lost. These are now kept as written:{exp:cartthrob:state_select selected="ON"}preselects Ontario,{exp:cartthrob:convert_country_code country_code="NO"}shows Norway, and{exp:cartthrob:view_encrypted_string string="yes"}encryptsyes. Template debugging prints such values as written. If a template added a workaround for the lost value, recheck it. - CartThrob 10.0.1 hardens how it displays and saves customer-entered cart and order data. If a custom template deliberately outputs HTML a customer entered, check that it still renders as intended.
view_converted_currencyshows prices unconverted unless acartthrob_view_converted_currencyhook converts them.- Template debugging and the Developer Log say more. Expect new
CartThrob:entries for templates that post fields CartThrob ignores; each one names its fix.ee()->cartthrob->log()writes only to the file log, and payment returns are logged only atlog_threshold3. - Subscription statuses: an update naming an unknown status, such as
Openorcancelled, leaves the subscription unchanged instead of closing it. - Subscription payment forms without
vault_moderender again and save a separate new card. Saved cards are stored when the customer ticks “Save my card,” and Stripe reuses the member’s Customer. order_by=now takes effect oncart_items_info,countriesandcountry_select. The shipped sidebar templates usecart_items_info limit="1" order_by="entry_id" sort="desc", so they now show the cart product with the highest entry ID instead of the last by title.- Purchased Items: new items after a successful payment take the Default Status from the Purchased Items settings instead of
open. Existing items are not changed. - The updater widens the Subscriptions
error_messagecolumn to nullabletext; a site that had widened it by hand no longer fails the update with “Data truncated for column ‘error_message’.” No action is needed.
Checking your store
- On a staging copy still running 10.0.0, place test orders that cover your tax plugin, a coupon, free shipping, taxed shipping and any
checkout_formoverrides. Note each order’s subtotal, discount, shipping, tax and total. - Update the copy to 10.0.1, including Order Manager, and run the add-on updates.
- Place the same orders and compare. Every difference should match an entry above.
- If you use Tax By Class, map a Tax Class field and remove posted
item_options[tax_class]fields. - With template debugging on, load your product, cart and checkout pages and fix anything CartThrob names, then check the Developer Log after a few test orders.
- If a template passes a value that looks like yes/no to a CartThrob tag — a country or state code such as
NOorON, or text likeyes— or deliberately outputs shopper-entered HTML, confirm it still renders as intended.
For the full list of changes, see the CartThrob 10.0.1 changelog.