Search results for filter

231 articles found

  • autoship_checkout_recurring_discount_string (function)

    ( src/product-page.php) Takes the (WooCommerce) $product_id and a boolean for if this is for a variable product or not. The function outputs the custom string after the Autoship radio button and

  • Product Page: Customize Order and Text of Autoship Product Page Strings

    In the Examples below, a dev customizes the order and content of the Autoship strings using Autoship string filters. See the filters that can be used and details to the examples below. Trying to

  • autoship_orders_notice_message

    Can be used to adjust / filter the notification being displayed to a customer, The filter takes the current notice/failure reason returned from QPilot and the Autoship Order as parameters. The filter

  • Autoship Cloud Plugin Extensions for WooCommerce

    When integrating custom-developed functionality or code that is intended to modify the core Autoship Cloud powered by QPilot plugin, you should create and extension plugin and register it with the

  • autoship_frequency_cart_order_item_schedule_next_occurrence_display

    (src/cart.php) Filter within the autoship_display_cart_item_data function. The filter can be used to change the Autoship Next Occurrence html displayed for items selected for Autoship in the Cart and

  • autoship_populate_order_dashboard_icon_tooltip_components

    The filter includes a 1. tooltip array of the current information to be displayed, and 2. current WC_Order associated with that row as parameters. In addition the final string can be modified via a ne

  • autoship_cloud_subpage_security

    can be used to adjust who has rights to see the supplied subpage content. The filter takes the current capability needed for a user to see the Autoship Cloud subpage page and the current menu_slug . B

  • autoship_lock_duration_restriction_days

    (src > schedule-orders.php) Can be used to modify the lock duration on a Site, Autoship Order, or even Customer basis. The filter takes the current QPilot Lock Duration days, the current Autoship Orde

  • Payment Gateways: Conditionally Enable Supported Payment Gateways Only When Autoship Products Are In Cart

    If you are using any payment gateways for WooCommerce that are not supported by Autoship Cloud powered by QPilot, you can add the following snippet to your functions.php file to conditionally filter

  • [WooCommerce] Autoship Cloud Customers

    The Autoship Cloud Customers page displays an embedded report of customer data that is synchronized with WooCommerce Customer Data and provides additional features for searching and managing

  • autoship_add_cart_item_data (function)

    ( src/cart.php) Adds the Autoship Schedule Data to Cart Item being added / updated. These values are also used to find a matching cart item in the cart. NOTE This is the first function to filter data

  • [WooCommerce] Autoship Cloud Products

    The Autoship Cloud Products page displays an embedded report of product data that is synchronized with WooCommerce Products and provides additional features for searching & managing products for

  • Cart / Checkout: Auto-Apply Coupon to Scheduled Order at Checkout

    This code is an example of how merchants can apply an existing Autoship Cloud Coupon to Scheduled Orders at checkout automatically. Includes a conditional, role-based example a merchant may use to

  • WP-Admin: Allow Limited Admin Access to Different User Roles

    đŸ‘„ In this example, the wordpress user role of "contributor" or WooCommerce role of "shop_manager" is enabled to access limited Autoship Cloud submenu pages ('autoship_cloud_subpage_security' filter)

  • autoship_delete_general_payment_method

    (src > payments.php) can be used to delete any payment method from QPilot. The function takes the 1. token_id, 2. WC token object, and 3. QPilot method type. It pulls the payment methods from QPilot a

  • autoship_get_formatted_price

    (src/products.php) Within the autoship_get_formatted_price() function. The filter allows the formatted autoship display prices to be adjusted. Takes $formatted_price, $price, $args (array) as its

  • autoship_product_message_string

    The 'autoship_product_message_string' filter which takes the current message and the product id, allowing you to display/customize the Product Message on a global or product level. function xx_modify_

  • autoship_maybe_update_item_relative_next_occurrence_date

    (src/products.php) found in the autoship_maybe_update_cart_item_relative_next_occurrence() function. This filter can be used to adjust the Relative Next Occurrence for a Scheduled cart item after a

  • autoship_get_calculated_scheduled_order_totals

    (src/scheduled-orders.php) Within the autoship_get_calculated_scheduled_order_totals() function. The filter allows the subtotal, shipping, taxes, and total values displayed in the Native UI Scheduled

  • autoship_qpilot_orders_via_rest

    (src\api.php) Added to the autoship_qpilot_orders_update() callback function for the Autoship Orders endpoint. This filter can be used to adjust the REST request data coming in through the endpoint

  • autoship_frequency_cart_order_item_schedule_display

    (src/cart.php) In the autoship_display_cart_item_data function. The filter can be used to change the Autoship Schedule html displayed for items selected for Autoship in the Cart and Order preview

  • autoship_dissable_schedule_order_options_default

    (src > product-options.php) You can use to disable or enable to the new  Disable Autoship Options for this variation option by default. The filter takes the current value and the product variation id.

  • autoship_calculate_relative_next_occurrence_date_from_basedate

    (src/products.php) found in the autoship_get_product_default_relative_next_occurrence() function. This filter can be used to adjust the base date used from which the Relative Next Occurrence is

  • Orders: Calculate Relative Next Occurrence for Day Next Week

    Currently the Frequency Types for the Relative Next Occurrence Date is Days, Weeks, and Months. If you wanted to set certain products to process on a particular day next week, you would need to

  • autoship_get_scheduled_order_product_data

    (src > orders.php) This function gathers the product data for the orders. It takes the following parameters: WC Product id frequency_type frequency The function also includes the following filters:

  • autoship_product_schedule_options_select_skin

    This filter allows you to add additional classes to the various html entities ( i.e. form labels, container, select drop down, etc.) for simple and variable products. Example // add dashed border and

  • autoship_cloud_main_page_security

    (src > admin.php) Can be used to adjust who sees the Main menu option and Settings page. The filter takes the current capability needed for a user to see the Autoship Cloud menu option and Settings pa

  • autoship_cloud_main_page_options_security

    (src > admin.php) Can be used to adjust who has rights to see the settings page content. The filter takes the current capability needed for a user to see the Autoship Cloud Settings page. By Default t

  • autoship_enable_wc_tax_settings_for_prices_display_default

    (src > scheduled-orders.php) Used to control the price display (inclusive / exclusive of tax) in the Native UI shown to customers in My Account > Scheduled Orders. The filter takes a boolean as an

  • autoship_file_name_handler

    (src/logger.php) This filter allows the hash and file name for the Autoship Cloud Logs to be changed, residing within the autoship_get_log_filename() function /** * Retrieves the base filename for

  • autoship_disable_admin_health_checks

    (src/api-health.php) Within the autoship_admin_health_status_menu_bubble() function. This filter allows the disabling of the periodic API health check feature when set to true. When the periodic API

  • autoship_product_schedule_options_variable_select_skin

    This filter allows you to add additional classes to the various html entities ( i.e. form labels, container, select drop down, etc.). It takes 3 parameters: 'yes' or 'no' string for Autoship product W

  • autoship_qpilot_orders_via_rest_enable_fee_lines

    (src\coupons.php) added to the autoship_qpilot_orders_update_via_rest_convert_fees_to_coupons() function in . This filter can be used to disable the virtual coupons functionality and re-enable the

  • autoship_no_payment_method_notice

    (templates > scheduled-orders > order-payment-method-summary-template.php) Allows you to customize the message displayed to the customer when payment method is currently empty for the associated Sched

  • autoship_get_available_valid_customer_saved_methods()

    (src/payments.php) Takes a customer id as an argument and returns an array all saved payment methods for that customer associated with Autoship supported payment gateways. Function: /** * Returns the

  • Change Message for Unavailable Products in Native UI

    You may want to change the display message for products that are either out-of-stock or are not available for Autoship processing ("Process Scheduled Order"). You can do this using the

  • autoship_get_product_prices (function)

    (src/products.php) Takes the (WooCommerce) $product_id as its parameter and returns an array of prices and discount percentages for that product id which can be modified using the included

  • autoship_standard_gateway_id_types()

    (src/payments.php) returns an array of Payment Gateway IDs and QPilot Payment Method Types. This function is used by the two routing functions and can be extended using the

  • Product Page: Default Option to Autoship Instead of One-Time Purchase

    Changes the default selection on the product page to Autoship instead of One-Time purchase using the 'autoship_default_product_schedule_options_choice_value' filter. Return 'yes' to default Autoship

  • autoship_order_dashboard_columns

    (src > orders.php) Can be used to add new columns to the Orders table or remove Autoship columns. You can add or remove additional columns by modifying the array passed via the filter. Any new column

  • [WooCommerce] How do I Define Measurements for Shipping Rates?

    Shipping Methods - especially integrated API-based shipping methods - require that your products have set values for dimensions and weights. These units of measurement are defined for your

  • autoship_log_file_download_select_display_name

    (src/logger.php) Allows you to change how the Autoship-Logs are displayed in WP-Admin > Autoship Cloud > Settings > Logs. The filter takes the current file label, time, and file name as parameters.

  • Native UI: Change Scheduled Order Status Nicenames

    In this example a developer changes the nice-names Scheduled Order statuses displayed to customers when using the Native UI display option. Remember: Always test new code on a staging site before

  • Add User Role To Valid Customer Types

    By default Autoship Cloud will only update customers in QPilot that have a Wordpress User Role of 'customer'. Autoship Cloud lets you customize the valid customer types using the

  • autoship_strip_actions (function)

    (src/scheduled-orders.php) Hooked to the ' autoship_get_account_scheduled_orders_actions filter and currently removes the Delete, Failed, and Pending unsupported actions from the Scheduled Orders

  • autoship_default_template_data

    (src/scripts.php) Located in the autoship_head_scripts() function can be used to customize the default classes used by our Schedule-Options script to select various html elements. In addition, the

  • autoship_get_general_payment_method_data()

    (src/payments.php) Takes two arguments, a WooCommerce token id, and a payment gateway id. The function returns the an array containing the Autoship payment data used to create Scheduled Orders via

  • autoship_display_apply_customer_info_to_all_scheduled_orders_btn_link (function)

    (src/customers.php) Used to add the 'Click here to update your shipping address on all Scheduled Orders' link to the existing (WooCommerce) notice on the My Account > Addresses page. It takes the

  • Native UI: Sort Product Selection Menu Alphabetically

    (src/scheduled-orders.php) In this example a dev uses the autoship_filter_schedulable_products_data filter to sort their add product dropdown menu alphabetically. See how the menu is sorted

  • [WooCommerce] Can I Translate Autoship Text Into My Language?

    Yes! All of the text in the Autoship Cloud plugin is passed through the Wordpress translation filter with the text domain 'autoship'. The easiest way to translate the text added your site by Autoship