WooCommerce 10.2 Arrives September 16: A Simple Seller Guide
Exciting news for WooCommerce sellers! WooCommerce 10.2 is officially launching on September 16, 2025, introducing
In Magento2, referring to the products’ form attributes and their options, get ‘render dynamically,’ means that as an admin you can add as many attributes and as many options to that product attribute as you want. This is handled by using the strategy of data and meta-data. Now the problem is if you create a custom attribute with 100 options then it will be hard for the user to select any particular one if it’s not sorted alphabetically. In this blog, we will explain how can you sort product attributes options alphabetically to make it user-friendly.
We are assuming that you already have an idea to create a custom module in Magento2. In Case you don’t, then no worries you can follow the below-mentioned steps-
Here we are going to use a plugin for extending the functionality of meta-data. But if you have no idea how to create a plugin you may check it on Magento2 dev-docs to get a brief idea about Magento2 plugins.
We assume that you already have a basic idea about Magento2 coding.
Write the below code in your Vendor\Module\etc\adminhtml\di.xml
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav"> <plugin name="after_ui_eav_product_form_modifier" type="Vendor\Module\Plugin\Ui\DataProvider\Product\Form\Modifier\Eav" sortOrder="1" disabled="false"/> </type> </config>
Now create a plugin file with the namespace
Vendor\Module\Plugin\Ui\DataProvider\Product\Form\Modifier\Eav, and add the below code.
<?php namespace Vendor\Module\Plugin\Ui\DataProvider\Product\Form\Modifier; use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Eav; /** * Class Eav */ class Eav { const ATTRIBUTE_TO_SORT = ['xyz_attr1' ,'xyz_attr2']; /** * Initial meta setup * * @param Eav $subject * @param array $result * @return array */ public function afterSetupAttributeMeta(Eav $subject, $result){ if (isset($result['arguments']['data']['config']['code'])) { $code = $result['arguments']['data']['config']['code']; if (in_array($code, self::ATTRIBUTE_TO_SORT)){ if (isset($result['arguments']['data']['config']['options'])) { $options = &$result['arguments']['data']['config']['options']; usort($options, function($a, $b) { return $a['label'] > $b['label']; }); } } } return $result; } }
In this, we are using “usort” for the multi-select attribute options, so this code will sort only the multidimensional array, it will sort the array options by labels.
Exciting news for WooCommerce sellers! WooCommerce 10.2 is officially launching on September 16, 2025, introducing
Effective: September 30, 2025 (U.S. & Canada) Amazon is overhauling its inventory recovery programs. Starting
TikTok has rolled out a set of new support tools for TikTok Shop creators, aiming
Amazon has launched FBA Damaged Inventory Ownership, a program that lets sellers take direct control
Alibaba Group has unveiled a sweeping restructuring of its consumer-facing operations, merging Taobao, Tmall, Ele.me,
Walmart is ramping up its efforts to recruit merchants from the United Kingdom and continental
Amazon is doubling down on artificial intelligence in eCommerce with the launch of Lens Live,
For the first time since 2020, U.S. consumers are planning to cut back on holiday
Temu, the rapidly growing eCommerce platform, has announced the launch of its Local Seller Program
Etsy has announced important updates to its new Etsy Payments Policy, effective October 9, 2025,
Amazon has launched its first-ever “Second Chance Deal Days“ sales event in Europe, exclusively featuring
The Update Amazon has strategically resumed its Google Shopping ad campaigns across all international markets—
TikTok has updated its account policies, LIVE rules, monetization eligibility, and enforcement measures. The changes
Think Black Friday is when holiday shopping begins? Think again. Your future customers are already
eBay is rolling out eBay Live in the UK, offering sellers a new way to
eBay is giving its auto parts and accessories marketplace a tune-up, announcing the launch of
Walmart is set to revamp its Pro Seller Program at the end of September 2025,
Pinterest is diving headfirst into the burgeoning secondhand market with the launch of “Thrift Shop,”
Why Pinterest Is a Growth Channel for Etsy Sellers Discovery drives eCommerce growth. With 482
In a strategic move to enable smaller businesses with global ambitions, international logistics giant DHL