Javascript Bookmarklet to filter & adjust amazon seller "manage inventory" table
€8-30 EUR
Paid on delivery
Looking for a keen javascript developer to build a small bookmarklet (Chrome) to perform the following tasks:
- cycle through all visible products on the amazon seller central "Manage inventory" page
- hide all elements (child-products of variants AND stand-alone products) that don't have an "Active" status
- count the remaining "Active" child elements for each variant-parent, rewrite the parent from "Variations (n)" to "Variations (m)" where n is the original number of variations (including all statuses) and m is the number of "Active" variations belonging to the current parent
- hide all parent rows which do not have any "Active" variation children left
We already have a partly running bookmarklet, however the jQuery available on the Amazon SellerCentral Manage Inventory page does not feature the .nextUntil() concept. Therefore we need a workaround for his piece.
Here is the partly operation code (note: based on German version of the inventory management page, replace "Varianten" by "Variations" for the english version):
$('.myTable > tbody > tr').not('*:contains("Active"), *:contains("Varianten")').css('display', 'none');
$('.mt-variations-row-parent').each((index, el) => $(el).find("td[data-column='status']").append(`Varianten (${$(el).nextUntil(":not(.mt-variations-row-child)").length})`) );
$('.mt-variations-row-parent:contains("Varianten (0)")').toggle();
Project ID: #30957890