The example below uses the ConQuery Firefox extension in order to add a menu item to rightclick menu.
ConQuery allows you to take pieces from your current webpage and pass this as parameter to another website/webservice. So it has defined interfaces to query google, yahoo, ebay etc There is an online repository with samples.
Installation is easy in 3 steps:
1. Install ConQuery extension
2. Restart firefox
3. Save embedded file as osCeditProduct.cqr in the searchplugins directory under your firefox installation
Now you can further customize the options, but you should already be seeing the oscommerce option under the Conquery menu.
It works well as it opens the page with the passed parameters but there is a glitch.
It is only supposed to show up in the menu when 'products_id' is part of the url string, but it is showing up all the time.
I suspect my regex is not correct, but I'm not sure.
Are there any firefox enthousiasts and regex experts outhere that can help ?
If this is solved, I can create some more variants for categories, specials, attributes etc, it's just that I want to avoid cluttering up my menu too much with irrelevant options ...
# Mozilla/osCommerce plug-in by Carine Bruyndoncx (email@example.com) # osCommerce Edit Product <search name="osC edit Product" description="Edit current product" method="GET" action="http://[:host]/admin/categories.php" category="osCommerce" showiftarget="[:url]" showif="products_id=(\d+)" queryEncoding="utf-8" queryCharset="utf-8" > <input name="pID" value="[:matched:1]"> <input name="action" value="new_product"> </search>