Closed proseLA closed 4 years ago
Sounds like an observer-to-the-rescue. In zc156 and later, there are a couple of notifications that should help:
In customers.php
:
NOTIFY_ADMIN_CUSTOMERS_MENU_BUTTONS_END
. Issued at the end of the sidebox formatting. You could use that to insert the "Delete Credit Cards" button.In /includes/footer.php
:
NOTIFY_ADMIN_FOOTER_END
. Issued at the end of the footer (on pages other than login and index). You could use this to inject some jQuery to detect the click of the button, put up a confirmation screen and (via AJAX) subsequently delete those cards.the button is already in via the observer.
i’ll look into the footer. did not think about that.
thanks!
the footer worked great! thanks so much!
one of my goals is to not affect the ZC core at all. i am looking at some other functions that i have implemented as i clean things up. if one looks at this first screen shot, i'm making use of the couponpopupWindow in the orders page: now, i would like to have a popup similar to that from the customers page when someone clicks on delete all cc data. you can see the button here:
unfortunately that script popup window function is not available to grab there.
anyone have any ideas how to do a confirmation window from the customers page WO touching the ZC core?
thanks in advance.