duncanmcclean / simple-commerce

A simple, yet powerful e-commerce addon for Statamic.
https://statamic.com/addons/duncanmcclean/simple-commerce
Other
146 stars 40 forks source link

[6.x] Fix searching database orders #1051

Closed duncanmcclean closed 5 months ago

duncanmcclean commented 5 months ago

This pull request fixes an issue when attempting to search orders when storing orders in the database.

Essentially, Runway was trying to search through all fields on the order blueprint. However, in our case, not all of those fields actually have associated database columns, so it was erroring out.

This PR fixes that by manually defining the runwaySearch scope to override how orders are searched. Search on orders now only searches through the order number, grand total, items total and customer name/email.

Fixes #1045.

github-actions[bot] commented 5 months ago

Released as part of v6.1.0.