Repository navigation
1.2.2
Built and verified locally, since GitHub Actions is not running jobs for this account (billing); the package follows deploy.yml step for step.
Prices in the search
- Simple products are shown with tax when the shop shows prices with tax, as variable products always were. A variable product's range came from WooCommerce's display prices, and a simple product's price, regular price and sale price were the amounts as entered. A shop that enters prices without tax and shows them with tax therefore had simple products in the search without tax and variable ones with it, and the price filter compared the two. The other way round (entered with tax, shown without) was wrong too. Every price in the search is now the price the shop displays, rounded to its decimals.
- Grouped products show the range of their published children's prices, each child with its own tax class, as the shop shows it. A child without tax, a voucher for example, keeps its price.
- The prices are the same whoever runs the sync. A sync run with WP-CLI priced variable products for the address and VAT exemption of the user it ran as.
After updating, run a sync: Start sync on the Sync tab, or wp webhead-search-cloud sync run. The daily scheduled sync does it as well. It sends only the products whose price changes; no forced sync is needed.
Merged in #25.
Package: webhead-search-cloud-1.2.2.zip - 1.0 MB zipped, 4.4 MB installed, 273 files, built from the merge commit with one composer install. Five files differ from 1.2.1: the plugin file, readme.txt, the two block.json and includes/Indexing/Woo.php. Its public/ is byte-identical to 1.2.1's. Installed from the zip on a clean WordPress 7.1 (PHP 8.3) with WooCommerce 10.9.4 and WP_DEBUG on: activates with an empty debug log, 16 REST routes, both blocks, 3 capabilities, both tables, the scheduled sync and 7 Site Health checks. In a German shop that enters prices without tax and shows them with tax (19%), the installed package indexes exactly what WooCommerce displays: a simple product 119.00 reduced to 95.20, a variable one 59.50 to 119.00, a grouped one 25.00 (an untaxed voucher) to 95.20. It gives the same numbers when the sync runs as an administrator whose address is in Austria. The uninstall routine runs clean. Plugin Check reports no errors in the plugin's own code, and nothing at all in it when run as wordpress.org runs it.
Tests: on the code of the release commit c26b238 (the merge 5c1b73f holds the same tree), on PHP 8.3 with WordPress 7.1, WooCommerce 10.9.4 and Elementor 4.1.4: unit 108; integration 260, with 3 skipped that need a network; multisite 260. That includes 20 new tests of indexed prices under every combination of the tax settings, grouped products, and syncs run with no customer, with a customer abroad and with a VAT-exempt one. Against 1.2.1's code they fail with the reported numbers (100 where the shop shows 119). The browser specs were not run again, since nothing they load changed. All passing. Run on the host with PHP 8.3 and MySQL 8, not in wp-env.