Suggestion for ShopifyFD in the Bulk Editor or Product List
Many times when we have a sale (like "10% off on all Sewing Supplies") we have found that our customers prefer to NOT use a discount code, but instead to see the discounted price on the product compared to the original price -- something that you normally do by setting the Compare At Price of a product to the original value and setting the Price to the discounted form.
Doing this in the Bulk Editor for products that are the same price is relatively easy, but it is a real PITA if you have products that have different prices.
It would be great if you could add an "Apply % Discount" button to the Bulk Editor or Product List that would move the Prices of all relevant products into the Compare At Price slot, and adjust the Prices according to the percentage entered. Similarly, a "Restore Original Prices" button would reverse the effect (move the Compare At Price into the Price field and clear out the Compare At Price).
Thanks for listening...
There's apps that offer this already so not convinced that building this in would add extra value over those. It's a good suggestion in any case so will be interested to see if others have the same request.
Do you know any off the top of your head that you can suggest?
FYI, I actually started down the road to make my own Chrome button that would do what I wanted in the Bulk Editor ("BE"), but although my code changed the values in the fields of the BE so everything looked right, when I saved the changes nothing was actually changed. Basically it looked like there was a dirty flag that needed to be set in order to cause Shopify to save the changes from the BE... something that is triggered when the user types into one of the BE, but isn't triggered when I set the values of the fields with JS.
You don't happen to know how to trigger the "dirty flag" in the BE from JS by any chance, do you?
I've never tinkered with the values in the Bulk Editor but with most JS you'd want to make sure you've trigged the change event and not just updated the value of the field. Using extensions to mod the admin is going to be a source of ongoing updates on your end so don't expect this process to be pain free.
There's apps like power tools pricing policy or shopify assistant that can apply some automation for pricing changes. When in doubt, just make an app to update the prices via the API directly. That method will always work - something that can't be said about admin hacks.
If you're applying a fixed % you could just use the browser console and some JS to loop over the products and make the changes without the help of the bulk editor.