gocodebox / lifterlms

LifterLMS, a WordPress LMS Solution: Easily create, sell, and protect engaging online courses.
https://lifterlms.com
GNU General Public License v3.0
181 stars 135 forks source link

Cannot search by order ID #1583

Closed toyinogun closed 5 months ago

toyinogun commented 3 years ago

Reproduction Steps

Go to Orders >> Orders Try to search for an order number.

Expected Behavior

The search result should come up with the order number as first and the closely related numbers for others.

Actual Behavior

It doesn't search for the order using order number

Error Messages / Logs


### System and Environment Information

<details>
<summary>System Report</summary>

<!-- Paste your System Report between the three backticks below this line -->

Wordpress

Home Url: [removed] Site Url: [removed] Login Url: [removed]/wp-login.php Version: 5.7 Debug Mode: No Debug Log: No Debug Display: Yes Locale: en_US Multisite: No Page For Posts: Not Set Page On Front: Home (#889) [[removed]/] Permalink Structure: /%postname%/ Show On Front: page Wp Cron: Yes

Settings

Version: 4.20.0 Db Version: 4.20.0 Course Catalog: Courses (#245) [[removed]/courses-2/] Membership Catalog: Membership Catalog (#6) [[removed]/memberships/] Student Dashboard: Dashboard (#8) [[removed]/dashboard/] Checkout Page: Purchase (#7) [[removed]/purchase/] Course Catalog Per Page: 9 Course Catalog Sorting: menu_order,ASC Membership Catalog Per Page: 9 Membership Catalog Sorting: menu_order Site Membership: Not Set Courses Endpoint: monthly-journeys Edit Endpoint: edit-account Lost Password Endpoint: lost-password Vouchers Endpoint: redeem-voucher Autogenerate Username: no Password Strength Meter: yes Minimum Password Strength: strong Terms Required: yes Terms Page: Not Set Checkout Names: required Checkout Address: required Checkout Phone: optional Checkout Email Confirmation: yes Open Registration: yes Registration Names: required Registration Address: hidden Registration Phone: hidden Registration Voucher: hidden Registration Email Confirmation: yes Account Names: required Account Address: required Account Phone: optional Account Email Confirmation: yes Confirmation Endpoint: confirm-payment Force Ssl Checkout: no Country: US Currency: USD Currency Position: left Thousand Separator: , Decimal Separator: . Decimals: 2 Trim Zero Decimals: no Recurring Payments: yes Email From Address: [removed] Email From Name: [removed] Email Footer Text: Email Header Image: Cert Bg Width: 800 Cert Bg Height: 616 Cert Legacy Compat: no

Constants

LLMS_REMOVE_ALL_DATA: undefined LLMS_REST_DISABLE: undefined LLMS_SITE_FEATURE_RECURRING_PAYMENTS: undefined LLMS_SITE_IS_CLONE: undefined

Gateways

Stripe: Enabled Stripe Test Mode: Enabled Stripe Logging: yes Stripe Order: 0 PayPal: Enabled PayPal Test Mode: Enabled PayPal Logging: yes PayPal Order: 1 Manual: Disabled Manual Logging: Manual Order: 2

Server

Mysql Version: 5.7.33 Php Curl: Yes Php Default Timezone: UTC Php Fsockopen: Yes Php Max Input Vars: 5000 Php Max Upload Size: 512 MB Php Memory Limit: 256M Php Post Max Size: 1024M Php Soap: Yes Php Suhosin: No Php Time Limt: 30 Php Version: 7.3.27 Software: Apache/2.4.46 (Unix) OpenSSL/1.1.1 Wp Memory Limit: 256M

Browser

HTTP USER AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36

Theme

Name: Astra Version: 3.2.0 Themeuri: https://wpastra.com/ Authoruri: https://wpastra.com/about/ Template: Child Theme: No Llms Support: Yes

Plugins

Code Snippets: 2.14.1 Gravity Forms: 2.4.23 Gravity Forms User Registration Add-On: 4.7 LifterLMS: 4.20.0 LifterLMS Advanced Quizzes: 1.1.1 LifterLMS Advanced Videos: 1.0.0-beta.14 LifterLMS Assignments: 1.1.12 LifterLMS Gravity Forms: 2.1.1 LifterLMS Groups: 1.0.0-beta.10 LifterLMS Helper: 3.0.2 LifterLMS Labs: 1.5.3 LifterLMS PayPal Gateway: 1.3.0 LifterLMS Stripe Payment Gateway: 5.3.2 Loco Translate: 2.5.2 PublishPress Capabilities: 2.0 Query Monitor: 3.6.7 WP Fusion: 3.37.3 Zapier for WordPress: 1.0.2

Integrations

BbPress: No BuddyPress: No LifterLMS Groups: Yes LifterLMS Gravity Forms: No Videos: Vimeo: Yes Videos: Wistia: No Videos: YouTube: Yes

Template Overrides



</details>

This issue has be recreated:
+ [ ] Locally
+ [ ] On a staging site
+ [ ] On a production website
+ [ ] With only LifterLMS and a default theme

### Browser, Device, and Operating System Information

+ Browser name and version
+ Operating System name and version
+ Device name and version (if applicable)
https://wordpress.org/support/topic/search-with-order-id-in-orders-table/
thomasplevy commented 3 years ago

This isn't semantically a bug, though in looking at this I agree that we should be able to search by order ID, but there's not code working incorrectly to warrant tagging this as a bug, there's nothing to fix, just a feature to add. Additionally, we are mostly relying on WP core functionality in the search section. WordPress doesn't enable searching by ID on post table lists. But, again, that doesn't really matter as it makes sense to be able to search for an order by it's ID so we should add the functionality.

At the moment I've slated this for future development.

A workaround would be to click the first order in the orders list and then replace that order's ID with the desired order. It's not perfect but it'll get you to the order you're looking for.

toyinogun commented 2 years ago

HS-182941