Download the PHP package eighteen73/universal-product-sort without Composer

On this page you can find all versions of the php package eighteen73/universal-product-sort. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package universal-product-sort

Universal Product Sort

Category-specific product ordering for WooCommerce. Each product category can have its own drag-and-drop order in the admin; that order is applied on the storefront when customers browse that category (subject to the rules below).

Requirements

What it does

Admin: per-category manual order

WooCommerce’s default product ordering UI uses a single menu_order on each product. This plugin stores a separate ordered list of product IDs per category in term meta, so “position 3 in Category A” does not have to match “position 3 in Category B.”

When you are on the Products list with:

…the plugin replaces Woo’s default ordering script with **assets/js/admin-product-ordering.js**. Drag-and-drop sends an AJAX request (action: universal_product_sort_ordering) that:

The response includes updated menu_order values for the list UI so the table stays consistent with the new sequence.

Where the order is stored

The repository (CategoryOrderRepository) reconciles stored IDs with products actually in the category: unknown IDs are dropped; products in the category but missing from the saved list are appended (after stored IDs), using Woo’s default menu_order title query as the basis for “current” category membership.

Frontend: when custom order applies

CategoryQueryOrdering hooks pre_get_posts and posts_clauses to apply the saved order when:

Ordering uses SQL FIELD() on the resolved ID list, with products not in the list sorted after, then menu_order and post_title as tie-breakers.

Internal lookups (e.g. loading all product IDs in a category) set a query flag so the plugin does not recurse into its own ordering logic.

Caches

Resolved order per category is cached in the object cache (wp_cache_*) under the group universal_product_sort. Caches are invalidated when product–category relationships change, when categories are created/edited/deleted, and when order is saved.

Development

License

GPL-2.0-or-later.


All versions of universal-product-sort with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package eighteen73/universal-product-sort contains the following files

Loading the files please wait ...