Archives

Checkout: Action – checkout_admin_supplier_saved

Description The checkout_admin_supplier_saved action fires after a supplier has been saved. Usage Arguments $insertid – The ID of the inserted/updated supplier record in the database. $data – The data which was used to save the supplier. Example

Continue Reading

Checkout: Function – wpco_cart_url()

Description Use the wpco_cart_url() function to get the URL of the shopping cart page in the Shopping Cart plugin as it is used throughout the shop. Usage

Continue Reading

Checkout: Action – checkout_admin_extensions_settings_saved

Description The checkout_admin_extensions_settings_saved runs after the settings have been saved under Checkout > Extensions > Settings tab. Usage You can hook to this action like this: Arguments $data – The $_POST data that was submitted from the Checkout > Extensions > Settings section Example Here is a full example of this action:

Continue Reading

Checkout: Action – checkout_process_order_X

Description The checkout_process_order_X action hook runs after the billing step of checkout, when the customer has chosen the payment method to pay with. X in the hook name is replaced with the slug of your payment method. So if the slug of your payment method is “mypmethod”, then the hook will be checkout_process_order_mypmethod. Usage Arguments Continue Reading…

Continue Reading

Checkout: Action – checkout_admin_paymentmethods_list

Description Use checkout_admin_paymentmethods_list action hook to add a checkbox to the list of payment methods checkboxes under Checkout > Configuration which is used to enable/disable certain payment methods accordingly. Usage Arguments $paymentmethods – An Array of current payment methods slugs. $class – The current CSS class of the table row Example

Continue Reading

Website & Email Hosting

Get the best website & email hosting for speed, security, and peace of mind. No restrictions. Freedom to do what you need in order to run your business.

Host Now

Pin It on Pinterest