It is possible to show in the cart, checkout and emails, the total saved per product, take into account that there are products with direct discounts ( sale) and products with tiered discounts, show this data as a meta of the product; also show the total saved totalized by subtotal of the product line and as total of the order.
B2BKing does not directly have any features for showing the amount saved I'm afraid. Therefore to achieve something like this it would be needed to write some custom code snippets to change the displays on the various pages. A bit of PHP knowledge is needed.
You can use the following function to get the amount saved for a product:
I believe this would give you the amount saved both based on sale price and on tiered price. The function basically compares the user's current price with the regular retail price.
in b2bking I use dynamic price and scaled prices, the function indicated does not return me the final price of the product (the unit price of the cart), I need this final price to compare it with the wholesale price of the product.
Show total saved per product and total
It is possible to show in the cart, checkout and emails, the total saved per product, take into account that there are products with direct discounts ( sale) and products with tiered discounts, show this data as a meta of the product; also show the total saved totalized by subtotal of the product line and as total of the order.
Thank you...
Hello Jose,
B2BKing does not directly have any features for showing the amount saved I'm afraid. Therefore to achieve something like this it would be needed to write some custom code snippets to change the displays on the various pages. A bit of PHP knowledge is needed.
You can use the following function to get the amount saved for a product:
Usage example:
$amount_saved = get_amount_saved(1234);
I believe this would give you the amount saved both based on sale price and on tiered price. The function basically compares the user's current price with the regular retail price.
Some other starting points:
1. You could work with the code snippet from here to show the total saved in cart as a final line: https://www.businessbloomer.com/woocommerce-display-total-discount-savings-cart/
2. You could use the following https://www.commercegurus.com/docs/shoptimizer-theme/sale-price-cart/ as a starting point to show the amount saved for each line in cart.
Kind regards,
Stefan
in b2bking I use dynamic price and scaled prices, the function indicated does not return me the final price of the product (the unit price of the cart), I need this final price to compare it with the wholesale price of the product.
Attached files: Captura de pantalla 2024-06-03 a las 17.10.04.png
You guys are the best, your code worked for me.
Thanks