Install
Works with Drupal: ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
# WT Commerce 1.2.3 — release notes
Patch release for `wt_simple_pay`. No database changes, no update hooks.
## Pricing fixes
- **Variation prices are charged correctly.** When a variation has its own price, the product's sale price no longer applies to it (this was already the rule on the product page and in the cart). Checkout used the product's sale price instead, so the buyer could pay a different amount than the cart showed. The free-shipping threshold used the same wrong price. All prices now come from one place, so the product page, the cart and the amount sent to the payment gateway always match.
- **Removed variations can't be bought.** If you delete a variation while a buyer has it in the cart, checkout now removes that line and tells the buyer. Before, it was still sold at its old price.
- **"Out of stock" is enforced at checkout.** A product you mark *Out of stock* after a buyer added it to the cart is shown as "No longer available" in the cart and removed at checkout. Adding it to the cart is also refused, even from an old page.
## PayPal
- **Charged PayPal orders are no longer deleted.** In the rare case where PayPal captures a payment for a different amount than the order, the order stays *Pending PayPal* and you receive an e-mail (as before). The PayPal capture ID is now saved on the order, and the cleanup cron keeps it, so you can refund the payment or complete the order by hand. Before, the cleanup deleted such orders after the payment window.
## Other
- The shipped order display (new installs only) no longer has an invalid setting on the status field.
- First automated Kernel tests for `wt_simple_pay` (pricing and the cleanup cron). They run on drupal.org CI.
## Upgrade
Update the code and run `drush cr`. Nothing else is needed.
**For themers:** a cart line that can no longer be bought shows `No longer available` where the price usually is. Style it in your theme if you like. The text is translatable.