Amazon Brand Registry Made Easy: Everything You Need to Know
With millions of sellers on Amazon, protecting your brand has never been more important. Counterfeit
In Magento 2 UI grid, sometimes when data-provider is passed in the XML file and we have to add the filter of store switcher, it doesn’t works,because when Magento call the collection of grid via ajax it use another controller(default -> mui/index/render) and it won’t have the parameter same as the previous URL, so to pass these parameters to new URL we can follow the below mentioned steps.
First add custom key, a filter_url_params section in the data-provider UI grid, as shown:
<dataSource name="driver_listing_data_source"> <argument name="dataProvider" xsi:type="configurableObject"> <argument name="class" xsi:type="string">MageNative\MobiDelivery\Ui\DataProvider\DriverDataProvider</argument> <argument name="name" xsi:type="string">driver_listing_data_source</argument> <argument name="primaryFieldName" xsi:type="string">id</argument> <argument name="requestFieldName" xsi:type="string">id</argument> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item> <item name="update_url" xsi:type="url" path="mui/index/render"/> <item name="storageConfig" xsi:type="array"> <item name="indexField" xsi:type="string">id</item> <item name="dataScope" xsi:type="string">store_id</item> </item> <item name="filter_url_params" xsi:type="array"> <item name="store" xsi:type="string">*</item> </item> </item> </argument> </argument> </dataSource>
In the second step, add the ‘$’ sign, this->prepares updateUrl(); in the __construct(…).
After that add the first add custom key below the filter_url_params section in the data-provider UI grid, as shown
/** * @return void */ protected function prepareUpdateUrl() { if (!isset($this->data['config']['filter_url_params'])) { return; } foreach ($this->data['config']['filter_url_params'] as $paramName => $paramValue) { if ('*' == $paramValue) { $paramValue = $this->request->getParam($paramName); } if ($paramValue) { $this->data['config']['update_url'] = sprintf( '%s%s/%s/', $this->data['config']['update_url'], $paramName, $paramValue ); $this->addFilter( $this->filterBuilder->setField($paramName)->setValue($paramValue)->setConditionType('eq')->create() ); } } }
Now in the end, as a conclusion, this process will help you to add another filter like store-switcher from outside the grid filters.
With millions of sellers on Amazon, protecting your brand has never been more important. Counterfeit
TikTok isn’t just setting trends anymore — it’s rewriting the playbook for performance marketing, creative
In a significant development for online retailers, Walmart has officially updated its policies to permit
Are you encountering issues with Amazon order management across various sales channels? If so, everyday
A Deep Dive into Selling Smart on TikTok Shop UK, TikTok Shop US, and TikTok
In a world where cross-border commerce fuels eCommerce growth, tariffs are no longer just policy
In the world of eCommerce, visibility is everything—and Walmart Marketplace is no exception. With thousands
In what comes as a major relief for TikTok and its millions of users in
In a move aimed at enhancing product quality and boosting buyer confidence, TikTok Shop has
Selling on Amazon offers immense opportunities, but one of the most crucial decisions sellers face
Amazon is doubling down on AI-driven selling tools, introducing a new AI-generated product enrichment pilot
With over 17.6 million sellers on eBay marketplace, cracking the code behind the top selling
Amazon is doubling down on artificial intelligence, introducing the AI-powered ‘Interests’ feature that automatically finds
U.S. President Donald Trump has hinted that a TikTok deal is on track before the
Nearly a decade after closing post its first attempt, Best Buy is returning to the
PrestaShop has long been a leading name in European eCommerce. With its flexibility, user-friendly interface,
In a significant move to improve merchant operations, Walmart has introduced “Wally,” a generative AI
TikTok Shop, the eCommerce division of the popular social media platform TikTok, is set to
Despite political scrutiny and regulatory challenges, TikTok Shop is thriving in the U.S., with American
Amazon is making history by extending its flagship summer sales event to four days in