DKF_CPA_View_Process_Upgrade
Upgrade Listing processing class.
Package
Description Description
Upgrade process allows to listing owner extend his listing plan with additional paid items.
Requires theme supports:
- app-framework
- app-checkout
- app-payments
Methods Methods
- __construct — Construct processing page view
- _post_meta_footer — Displays listing upgrade link on the single Ad page.
- add_checkout_data — Adds listing ID to the current checkout object
- basic_url — Retrieves the process page URL
- check_access — Checks accessibility and redirects user if access is not allowed
- cleanup_process — Removes checkout data stored in DB before listing is deleted.
- create_order_duplicate — Ensure the order data will be copied to new order after upgrade a draft.
- dashboard_upgrade_button — Add Upgrade Ad action to the dashboard.
- get_checkout_type — Retrieves associated checkout type.
- get_connection_type — Retrieves the name of connection between processed item and checkout type.
- get_errors — Retrieves error object.
- get_process_type — Retrieves current process type.
- get_process_url — Retrieves public process URL depending on context and user permissions.
- handle_payment_transaction — Triggers on payment transaction event and calls appropriate procedure.
- is_require_login — Whether only logged-in users can execute a process
- notices — Displays notices on process failure.
- remove_checkout_data — Removes data from completed checkout object.
- setup_checkout — Setup Checkout Object specifically for current process.
- template_include — Filters the current template file path and change it if need
- template_redirect — Calls actions on the template_redirect hook
- upgrade_button — Displays listing upgrade link.
- user_capability — Retrieves user capability required to execute a process