shopp_google_item_tax_table_selector

filters alternate tax table xml tag added to item markup in the Google Checkout API to apply a particular tax table to an item.

add_filter( 'shopp_google_item_tax_table_selector', [callback] )

@param string $xml tax-table-selector xml tag added to item markup in the Google Checkout API to apply a particular tax table to an item.
@param Item $Item the cart Item

Description

filters alternate tax table xml tag added to item markup in the Google Checkout API to apply a particular tax table to an item.

Example

// register filter callback
add_filter('shopp_google_item_tax_table_selector', 'shopp_gc_item_tax_selector_fltr', 10, 2);

// create filter function
function shopp_gc_item_tax_selector_fltr( $xml, $Item ) {
    // my tax table
    if ( $Item->taxable )
        return '<tax-table-selector>tax-table-1</tax-table-selector>';

    return $xml;
}

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar