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 filter can be used to specify custom functions to use in place of our functions giving more advanced control over the functionality.

Example:

$default_autoship_template_data = apply_filters( 'autoship_default_template_data', array(
    'cartBtn'             => '.add_to_cart_button',
    'yesBtn'              => '.autoship-yes-radio',
    'noBtn'               => '.autoship-no-radio',
    'optionsCls'          => '.autoship-schedule-options',
    'discountPriceCls'    => '.autoship-percent-discount',
    'checkoutPriceCls'    => '.autoship-checkout-price',
    'discountStringCls'   => '.autoship-custom-percent-discount-str',
    'frequencyCls'        => '.autoship-frequency',
    'frequencySelectCls'  => '.autoship-frequency-select',
    'frequencyTypeValCls' => '.autoship-frequency-type-value',
    'frequencyValCls'     => '.autoship-frequency-value',
    'productCls'          => '.product',
    'cartItemCls'         => '.cart_item',
    'variationFormCls'    => '.variations_form',
    'findProductFn'       => NULL, // Pluggable Function
    'findAutoshipOptions' => NULL, // Pluggable Function
    'retrieveProductIdFn' => NULL, // Pluggable Function
    'setVariationIdFn'    => NULL, // Pluggable Function
    'isSimpleProductFn'   => NULL, // Pluggable Function
    'isCartPageFn'        => NULL, // Pluggable Function
    'isCartPage'          => false
  ) );