WordPress.org

Ready to get started?Download WordPress

Forums

TheCartPress eCommerce Shopping Cart
[Plugin: TheCartPress, E-Commerce for WordPress Stores] wrong filter applied in tcp_the_tax (4 posts)

  1. Joy
    Member
    Posted 3 years ago #

    The wrong filter is being applied in the template function

    function tcp_the_tax( $before = '', $after = '', $echo = true ) {
    	$tax = tcp_number_format( tcp_get_the_tax() );
    	$tax = $before . $tax . $after;
    	$tax = apply_filters( 'tcp_the_weight', $tax );
    	if ( $echo )
    		echo $tax;
    	else
    		return $tax;
    }

    The filter is for the weight instead of the tax.

    http://wordpress.org/extend/plugins/thecartpress/

  2. Inigo Gonzalez
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Joy,

    Many thanks. For the version 1.0.9 all the tax issues are going to change. You could download a beta version (only for testing purpose) from http://thecartpress.com/download/beta-release/

    Thank you again and best regards

  3. Joy
    Member
    Posted 3 years ago #

    I see you fixed it by deleting the call to the filter.
    The July 6 1.1.0 beta looks pretty good in terms of filters on the template functions, except for two that don't match the function name.

    The tcp_get_the_shipping_tax function applies the tcp_get_the_tax_for_shipping filter.

    The tcp_get_the_shipping_tax_id function applies the tcp_get_the_tax_for_shipping_id filter.

  4. Inigo Gonzalez
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Joy,

    You are quite right. We have changed the two names.

    Thanks and Best regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic