Conflict with Tiered Price Table for WooCommerce
-
Hi there,
I use Tiered Price Table for WooCommerce to create discount pricing rules for sale products.
Unfortunately it seems the following code from line?803 of cartpops-common-functions.php causes a conflict:
if ( $onsale ) {
$price .= '<small class="">' . __( 'You save', 'cartpops' ) . ' ' . round( $percentage ) . '%</small>';
}If I have on sale items in the cart I see the following error in the cart :
Warning: Undefined variable $percentage in /home/comicboo/public_html/wp-content/plugins/cartpops/includes/functions/cartpops-common-functions.php on line 803
Is there anyway to disable the onsale display or at least hide it?
I tried to hide it with css, as it shows as ‘You saved 0%’, using this:
.cpops-cart-item__actions--pricing .cpops-price small {
display: none !important;
}But the warning still shows on the frontend for anyone who is signed in to their account.
I’d appreciate any help you can provide asap please!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.