[Skip to main content](#vessel-content)

#   Getting pretax amount

##

- **[piggybank](/forum/user/12049-piggybank "View piggybank's Profile")**
- [![piggybank's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12049-piggybank "View piggybank's Profile") Topic Author
- [ Offline](/forum/user/12049-piggybank)

Less More

- Posts: 96
- Thank you received: 0
-
-

11 years 7 months ago [\#199496](#199496) by [piggybank](/forum/user/12049-piggybank "View piggybank's Profile")  *[Getting pretax amount](/forum/27-checkout/876537-getting-pretax-amount#199496 "-- url of the page with the problem -- :   www.boatingwithdawsons.com/  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36  I am trying to find the pre-tax amount to send to an affiliate system I use, however after doing some searching and looking through documentation including on the object in which i was hoping to find it (  www.hikashop.com/support/documentation/i...156-objectorder.html ) I was unable to find anything but after tax price. IS there any easy way to get the pre-tax price of an order that I can use in the checkout / after&#95;end.php view?  Thanks so much for your time!")* was created by *[piggybank](/forum/user/12049-piggybank "View piggybank's Profile")*

-- url of the page with the problem -- : [ www.boatingwithdawsons.com/](http://www.boatingwithdawsons.com/)
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36

I am trying to find the pre-tax amount to send to an affiliate system I use, however after doing some searching and looking through documentation including on the object in which i was hoping to find it ([ www.hikashop.com/support/documentation/i...156-objectorder.html](http://www.hikashop.com/support/documentation/integrated-documentation/10-hikashop/156-objectorder.html)) I was unable to find anything but after tax price. IS there any easy way to get the pre-tax price of an order that I can use in the checkout / after_end.php view?

Thanks so much for your time!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NjUzNy1nZXR0aW5nLXByZXRheC1hbW91bnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 7 months ago [\#199520](#199520) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Getting pretax amount](/forum/27-checkout/876537-getting-pretax-amount#199520 "-- url of the page with the problem -- :   www.boatingwithdawsons.com/  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36  I am trying to find the pre-tax amount to send to an affiliate system I use, however after doing some searching and looking through documentation including on the object in which i was hoping to find it (  www.hikashop.com/support/documentation/i...156-objectorder.html ) I was unable to find anything but after tax price. IS there any easy way to get the pre-tax price of an order that I can use in the checkout / after&#95;end.php view?  Thanks so much for your time!")*

You need to calculate it with the $this-&gt;order data already available in the view.
Something like that should do the trick: Code:

$order_total_without_taxes = $this-&gt;order-&gt;order_subtotal_no_vat+$this-&gt;order-&gt;order_shipping_price-$this-&gt;order-&gt;order_shipping_tax+$this-&gt;order-&gt;order_discount_price-$this-&gt;order-&gt;order_discount_tax+$this-&gt;order-&gt;order_payment_price;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NjUzNy1nZXR0aW5nLXByZXRheC1hbW91bnQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.046 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
