- Posts: 171
- Thank you received: 9
Order list with no vat total column
- pepecortez
-
Topic Author
- Offline
Less
More
12 years 6 months ago #149797
by pepecortez
Order list with no vat total column was created by pepecortez
-- HikaShop version -- : 2.3
-- Joomla version -- : 3.2.3.
Hi!
In Hikamarket frontend, when listing the orders on link (/index.php?option=com_hikamarket&ctrl=order), the last column is order full price.
How can I show the order price without tax? Tried a few variables in (/ordermarket/listing.php) but none worked. I think this line should be changed:
Thanks for the help in advance,
PePe
-- Joomla version -- : 3.2.3.
Hi!
In Hikamarket frontend, when listing the orders on link (/index.php?option=com_hikamarket&ctrl=order), the last column is order full price.
How can I show the order price without tax? Tried a few variables in (/ordermarket/listing.php) but none worked. I think this line should be changed:
Code:
<?php echo $this->currencyHelper->format($order->order_full_price, $order->order_currency_id); ?>
Thanks for the help in advance,
PePe
Please Log in or Create an account to join the conversation.
12 years 6 months ago #149831
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Order list with no vat total column
Hi,
The order taxes are serialized in the "tax_info" but the best is to use the function "loadFullOrder" to let HikaShop give you the price without tax.
In the view "ordermarket | listing" please replace
By
And also the targeted code:
By:
At this moment it will give you the order subtotal without taxes.
Please note that the shipping and the payment price are not included. So if you want them, you will have to add them.
Regards,
The order taxes are serialized in the "tax_info" but the best is to use the function "loadFullOrder" to let HikaShop give you the price without tax.
In the view "ordermarket | listing" please replace
Code:
$k = 0;
$i = 0;
foreach($this->orders as $order) {
Code:
$k = 0;
$i = 0;
$orderClass = hikamarket::get('shop.class.order');
foreach($this->orders as $order) {
And also the targeted code:
Code:
<?php echo $this->currencyHelper->format($order->order_full_price, $order->order_currency_id); ?>
Code:
<?php
$fullOrder = $orderClass->loadFullOrder($order->order_id,false,false);
echo $this->currencyHelper->format($fullOrder->order_subtotal_no_vat, $order->order_currency_id);
?>
Please note that the shipping and the payment price are not included. So if you want them, you will have to add them.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: pepecortez
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.147 seconds