I need to add a new copy button in admin/catalog/products
Posted: Wed Jun 06, 2012 8:07 am
Hi,
I'm trying to extend the copy function in the product pages. I've added in a new button and given it the ability to change the form action to:
admin/index.php?route=catalog/product/magiccopy&token=...
I can't for the life of me work out where this routes to though to handle the form though - I'm a bit lost in the structure. I think I can see the routines for copy / delete which work in the same way but I can't see how to put in a new function (called magicCopy) and have it routed to when the form is submitted to the above URL.
I'm experienced with PHP so adding the routine is not an issue, I just need to know where. If anyone could help I'd be really grateful.
Cheers.
I'm trying to extend the copy function in the product pages. I've added in a new button and given it the ability to change the form action to:
admin/index.php?route=catalog/product/magiccopy&token=...
I can't for the life of me work out where this routes to though to handle the form though - I'm a bit lost in the structure. I think I can see the routines for copy / delete which work in the same way but I can't see how to put in a new function (called magicCopy) and have it routed to when the form is submitted to the above URL.
I'm experienced with PHP so adding the routine is not an issue, I just need to know where. If anyone could help I'd be really grateful.
Cheers.