Hi @stormerMike,
leider war das erwähnte Plugin nicht für den Store gedacht und dient als interne Lösung für einen Kunden.
Vielleicht kann ich dennoch Hilfe leisten:
Ich habe per Plugin-MIgration einen neuen Eintrag in die product_sorting-Tabelle geschrieben
$customSorting = [
'id' => Uuid::randomBytes(),
'url_key' => 'sfce-value-sort', // shown in url - must be unique system wide
'priority' => 5, // the higher the priority, the further upwards it will be shown in the sortings dropdown in storefront
'active' => 1, // activate / deactivate the sorting
'locked' => 0, // you can lock the sorting here to prevent it from being edited in the administration
'fields' => json_encode([
[
'field' => 'product.customFields.sf_cms_elements_product_sort_value', // field to sort by
'order' => 'asc', // asc or desc
'priority' => 100, // in which order the sorting is to applied (higher priority comes first)
'naturalSorting' => 0 // apply natural sorting logic to this field
],
[
'field' => 'product.name', // field to sort by
'order' => 'asc', // asc or desc
'priority' => 50, // in which order the sorting is to applied (higher priority comes first)
'naturalSorting' => 0 // apply natural sorting logic to this field
],
]),
'created_at' => (new \DateTime())->format(Defaults::STORAGE_DATE_TIME_FORMAT),
];
// insert the product sorting
$connection->insert(ProductSortingDefinition::ENTITY_NAME, $customSorting);
// insert the translation for the translatable label
// if you use multiple languages, you will need to update all of them
$connection->executeStatement(
'REPLACE INTO product_sorting_translation
(`language_id`, `product_sorting_id`, `label`, `created_at`)
VALUES
(:language_id, :product_sorting_id, :label, :created_at)',
[
'language_id' => Uuid::fromHexToBytes(Defaults::LANGUAGE_SYSTEM),
'product_sorting_id' => $customSorting['id'],
'label' => 'SfCmsElements - SortValue-Sorter',
'created_at' => (new \DateTime())->format(Defaults::STORAGE_DATE_TIME_FORMAT),
]
);
Hier wird eine neue Sortierung zur Verfügung gestellt, die zuerst nach dem Freitextfeld ''sf_cms_elements_product_sort_value" (integer) der Produkte sortieren soll und danach nach dem Namen. Da das alles schon etwas her ist, stecke ich da nicht mehr so genau im Thema drin.
Vielleicht hilft dir ja der Ansatz weiter. Solltest du doch mehr Hilfe benötigen gerne per DM.
Cheers