An addon for WooCommerce that will help visitors to understand the final product price when product's quantity changes.
Product Total Price for WooCommerce is an addon for WooCommerce based site where visitors of your site can see the total price when they increase or decrease the quantity number.
The plugin has build based on the concept of PnP (Plug n Play). So you don’t have to worry about settings.
This plugin uses WooCommerce settings to get the pricing option, so you don’t have to worry about how the price is displayed.
WooCommerce 3.0 or later.
Yes! You really don’t need anything for this plugin.
Yes! Here is the shortcode [WOO-TOTAL-PRICE]
Yes! There is an filter hook called wcptp_custom_location_by_action_hook
.
This filter hook returns array of action hooks. By adding or removing hook you can easily control the location. Also you can display product total price text in multiple location by add your desired location hooks.
Example:
add_filter( 'wcptp_custom_location_by_action_hook', function( $hooks ){ $hooks[] = 'your_new_location_hook'; return $hooks; } );
Yes! There also a filter hook called wcptp_any_other_condition
.
This filter hook return true. You can disable or hide Product Total Price text by simply returning false based on any condition.
Exxample:
add_filter( 'wcptp_any_other_condition', function( $bool, $product, $allowed_product_types ){ if( condition == true ) { return false; } else { return true; } }, 3, 10 );
Yes!
You can paste this code to your current theme’s functions.php:
add_filter( 'wcptp_price_html', 'wcptp_price_html' ); function wcptp_price_html( $wcptp_price_html ) { return str_replace( 'Total Price', 'Order Total', $wcptp_price_html ); }
This is an example that will change “Total Price” to “Order Total”.
Yes allmost with all plugins and themes.
Yes, that could be easily done by adding following code snippet to your theme’s function.php file.
add_filter( 'wcptp_allowed_product_type', function( $types ){ $types[] = 'woosb'; return $types; }, 10 );
The above code snippet will allow you to show the Total Product Price for almost any types of products.
To show text as prefix and suffix of total price there are 02 filters. Use these filters to display your desired text.
apply_filters( 'wcptp_prefix', __return_false() ); apply_filters( 'wcptp_suffix', __return_false() );
Example:
add_filter( 'wcptp_suffix', function(){ return "(excl. VAT)"; });
Release Date: September 3rd, 2021
Added below features as per request of WordPress support topic https://wordpress.org/support/topic/variable-product-price-not-changing/
Enhancements:
Bug Fixes: