Search results for filter
231 articles found
-
autoship_get_coupon_type_by_code (function)
( src/coupons.php) Function that takes the QPilot coupon $type as a parameter and returns the WooCommerce coupon type. Function /** * Returns the WC Coupon Type based on the supplied QPilot Coupon
-
autoship_update_schedule_items_action_handler (function)
( src/scheduled-orders.php) The main handler for the for updating Scheduled Orders items. It takes the (Scheduled) $order_id, and the $data needed to perform the action as parameters and returns
-
Cart / Checkout: Customize the Require Password Notice
Customize the "Required Password" notice for the create account password field label at checkout. Important: Always test customizations to your site on a staging environment before making changes to
-
autoship_get_all_variation_cart_options()
(src /cart.php) The function gathers the autoship data for a product and its variations and returns the data in an array formatted with the same key names as that returned from the
-
Payments: Display an Unsupported Payment Gateway at Checkout
This example will allow a non-supported Payment Gateway for Autoship Cloud to be available when the customer has 1 or more products selected for Autoship in their cart. This example expands the
-
autoship_get_payment_method_gateway_type (function)
(src/payments.php) Takes a gateway id as an argument and returns either "standard" if the gateway is a standard WooCommerce token table gateway otherwise the gateway id if the gateway uses a custom
-
autoship_get_product_recurring_price (function)
( src/products.php ) Retrieves the recurring price for a supplied product. It takes the $product_id, $frequency_type, and $frequency as parameters and returns the recurring price for the Scheduled
-
Scheduled Orders: Affiliate Order Attribution to Created Scheduled Orders for Future Processing
In the example below, a developer captures a user's Affiliate Id and adds it to the created Scheduled Order's metadata at checkout. This attribution will be used (in this case added as an Order Note)
-
autoship_customer_view_order_header_attribution (function)
(src/orders.php) Used to include the Scheduled Order attributions and details in the View Order header for customers. It takes the (WooCommerce) $order_id as a parameter. Function /** * Includes the
-
autoship_customer_has_scheduled_orders (function)
(src/scheduled-orders.php) Used to check if a logged in customer has any Scheduled Orders. It takes the $customer_id as its parameter and calls the QPilot API for all of your connected site's
-
autoship_force_save_card (function)
(src/checkout.php) Used to force the saving of credit card tokens targeting the payment form element Ids for supported payment gateways at checkout. Function /** * Includes the Force Save Card JS
-
autoship_order_customer_dashboard_icon_column_content (function)
(src/orders.php) Used to populate the custom Autoship column in My Account > Orders. Takes the (WooCommerce) $order as a parameter. Function /** * Populates the Custom Autoship Column on the
-
autoship_load_product_summary_data_display_notice (function)
(src/product-page.php) Loads Autoship Cloud Data on Edit Product page. Function /** * Load Autoship Cloud Data on Edit Product Screen. * TODO: Currently hooked into the admin notices but could try to
-
autoship_qpilot_orders_update_via_rest_apply_coupons (function)
(src/coupons.php) Hooks into the Order Save and applies QPilot virtual coupons. Takes whether tax is applied and the order as parameters. /** * Hook into the Order Save and Applies any QPilot Virtual
-
Native UI: Auto-Apply Coupon When Scheduled Order Updated by Customer
In this example a user wants to automatically apply a coupon whenever a Scheduled Order is updated by a customer using the Native UI Scheduled Order display option ( My Account > Scheduled Orders). a
-
[Shopify] How Shipping Works
Shipping Rates for Scheduled Orders are managed and powered by your connected QPilot Site. Merchants can create and manage Shipping Rates in their connected QPilot Site by visiting Shopify > Apps >>
-
Payments: Retrieve Saved Payment Method from Custom WC Orders Table
Retrieves saved payment method data from a custom WooCommerce Orders table. Important: Always test customizations to your site on a staging environment before making changes to your live / production
-
[WooCommerce] How Shipping Rates Work
Shipping Rates for Scheduled Orders are managed and powered by your connected QPilot Site. Shipping Rates for Scheduled Orders are not part of your WooCommerce Shipping Rates and do not apply to the
-
[WooCommerce] Inactive Product Issues
Seeing inactive products in WP-Admin > Autoship Cloud > Products can be confusing. In this article, you will learn what causes inactive products and how to resolve issues with inactive products. What
-
Autoship Cloud Dynamic Checkout Price Based on Selected Frequency
In this example, a developer adjusts the Autoship Checkout price based on the selected frequency of their Autoship Items. The result is a discounted Autoship Checkout Price in the Cart and Checkout
-
autoship_group_order_items (function)
( src/orders.php) Used to group and order items in the Cart or WooCommerce Order by Frequency, Frequency Type, and Next Occurrence. The Order items for Autoship are then upserted to QPilot. It takes
-
autoship_update_cart_item_data (function)
(src/cart.php) Adds / updates Autoship Schedule Date in cart for items being added / updated. Takes $cart_item_data, $product_id, $variation_id, $quantity, and $schedule_data as parameters. /** *
-
autoship_qpilot_orders_update (function)
(src/api.php) Creates a WooCommerce Order (when a QPilot Scheduled Order processes) if one does not exist. Takes the $request as a parameter and returns the $response (or error). Function /** *
-
autoship_get_calculated_scheduled_order_item_sale_price (function)
(src/scheduled-orders.php) Used to retrieve or calculate the supplied Scheduled Order items sale price including coupon discounts. It takes the $scheduled_item (array) and $scheduled_order (array) as
-
Autoship Metadata Fields Added to WooCommerce Products
Autoship Cloud adds custom metadata fields to your WooCommerce products which contain specific Key : Values used in your store (for example Autoship Frequency Options) and to synchronize your
-
autoship_print_product_custom_fields (function)
( src/product-page.php) Outputs custom fields for simple products. Function /** * Outputs the Autoship Custom Fields for a Product * @see woocommerce_product_options_autoship_product_data * * Outputs
-
[WooCommerce] Scheduled Order Statuses & Actions
Administrators can create and manage existing Scheduled Orders from within the WordPress Admin at WP-Admin > Autoship Cloud > Scheduled Orders. Learn more here: Editing Scheduled Orders. For more
-
Cart / Checkout: Custom Product Default to Autoship and Frequency with Message
Defaults to a product with a custom meta flag (xx_autoship_only_flag) to Autoship on Product and Cart pages. Hide Autoship options and display a custom Autoship message based on product type. Importa
-
[WooCommerce] How Stock is Managed
Table Of Contents WooCommerce Inventory Management No Inventory Management (WooCommerce Default) Out Of Stock Threshold Enabled Backorders Enabled Product Availability and Stock Status Managing
-
[WooCommerce] Invalid Products and Sync Issues
Table Of Contents Identifying an Invalid Product Resolving an Invalid Product Resolving Sync Issues when Updating WooCommerce Products Identifying an Invalid Product When a WooCommerce product is
-
[WooCommerce] Updating Products in Scheduled Orders
Table of Contents How do I replace a product on existing Scheduled Orders? How can I update product prices for existing Scheduled Orders? Can I update a Simple Product to a Variable Product in