shopp_google_alternate_tax_tables_content

filters alternative-tax-table xml tags to add to the Google Checkout API request.

add_filter( 'shopp_google_alternate_tax_tables_content', [callback] )

@param string $xml alternative-tax-table xml tags to add to the Google Checkout API request

Description

filters alternative-tax-table xml tags to add to the Google Checkout API request.

Example

// register filter callback
add_filter('shopp_google_alternate_tax_tables_content', 'shopp_gc_att_fltr');

// create filter function
function shopp_gc_att_fltr( $xml ) {
    $tt = '<alternate-tax-table standalone="false" name="bicycle_helmets">
                  <alternate-tax-rules>
                    <alternate-tax-rule>
                      <rate>0</rate>
                      <tax-area>
                        <us-state-area>
                          <state>CT</state>
                        </us-state-area>
                      </tax-area>
                    </alternate-tax-rule>
                  </alternate-tax-rules>
                </alternate-tax-table>';
    return $xml.$tt;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar