-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show price including tax rates in front-end. #74
Comments
i cant seem to find the place where the modification is added to the totalprice. As described above, i basically only like to display the tax, but it shouldn't be added to the totalprice. Any ideas? |
Hey @luukgruijs We tend to just do this as a simple extension on order: Order:
extensions:
- 'OrderExtension' <?php
class OrderExtension extends DataExtension
{
public function GSTAmount()
{
$order = Cart::get_current_order();
$subtotal = $order->Total();
return number_format($subtotal->getAmount() * 3/23, 2);
}
} |
Thanks for your reply, |
Once you've added the above extension and yml config, and have performed a (includes ${$GSTAmount} $TotalPrice.Currency GST) |
Hi,
I would like to show the price of a product including tax. The tax is now shown during checkout.
In Holland company's don't have to pay the tax. So then it wouldn't be a problem. But since my shop is for consumers it would be nice to see the total price per product before the checkout.
Do you have any idea's?
The text was updated successfully, but these errors were encountered: