Documentation

Define | Filter Out Shipping, VAT, and Subtotal Info

Warning

We’ve put this guide together as a little helping hand for developers and designers. You’ll need a basic understanding of PHP to make the most of it.

Just a quick heads-up, we can’t provide support for custom code or offer any bespoke tweaks. Think of the snippets below as examples to guide you in the right direction.

Description

Looking to keep things simple and streamlined? Our snippet helps you do just that. It ensures that when orders are sent to your payment firm, they only include the total amount — no extra details like shipping costs, VAT, or subtotals.

PHP
1
define('ag_strip_psp_order_totals', TRUE);

For a hassle-free experience, we suggest using a third-party plugin like Code Snippets to add this code. It’s a smoother alternative to diving into your theme’s function.php file.

Was this helpful?