Display tax below order total

  • Posts: 344
  • Thank you received: 3
10 years 7 months ago #150363

Hikashop 2.3.0
Joomla 2.5.18

Now the ordertotal in my checkout look like this. With tax specified above order total



I want it to look like this (see picture below). With the tax specified after the order total.


How can I do this ?
Tnx in advance

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #150401

Hi,

You have to edit the view "checkout / cart" from the menu Display > Views and move the "Mva" part from before the "Total" to after it.
The part to move is the entire tr of the table.

Please Log in or Create an account to join the conversation.

  • Posts: 344
  • Thank you received: 3
10 years 7 months ago #150403

Thank you for reply
Could you please be more specific. There are a lot of tables with the word tax in it.

Which table should I move and where in the file should I place it ?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 7 months ago #150450

Hello,
You'll just have to remove these lines :

    if(bccomp($taxes,0,5)){
      if($this->config->get('detailed_tax_display') && isset($this->full_total->prices[0]->taxes)) {
        foreach($this->full_total->prices[0]->taxes as $tax) {
?>
        <tr>
          <?php echo $td; ?>
          <td id="hikashop_checkout_cart_tax_title" class="hikashop_cart_tax_title hikashop_cart_title">
            <?php echo $tax->tax_namekey; ?>
          </td>
          <td class="hikashop_cart_tax_value">
            <span class="hikashop_checkout_cart_taxes">
            <?php
              echo $this->currencyHelper->format($tax->tax_amount,$this->full_total->prices[0]->price_currency_id);
            ?>
            </span>
          </td>
        </tr>
<?php
        }
      } else {
?>
        <tr>
          <?php echo $td; ?>
          <td id="hikashop_checkout_cart_tax_title" class="hikashop_cart_tax_title hikashop_cart_title">
            <?php echo JText::_('TAXES'); ?>
          </td>
          <td class="hikashop_cart_tax_value">
            <span class="hikashop_checkout_cart_taxes">
            <?php
              echo $this->currencyHelper->format($taxes,$this->full_total->prices[0]->price_currency_id);
            ?>
            </span>
          </td>
        </tr>
<?php
      }
    }

And add these lines :
<?php
    if(bccomp($taxes,0,5)){
      if($this->config->get('detailed_tax_display') && isset($this->full_total->prices[0]->taxes)) {
        foreach($this->full_total->prices[0]->taxes as $tax) {
?>
        <tr>
          <?php echo $td; ?>
          <td id="hikashop_checkout_cart_tax_title" class="hikashop_cart_tax_title hikashop_cart_title">
            <?php echo $tax->tax_namekey; ?>
          </td>
          <td class="hikashop_cart_tax_value">
            <span class="hikashop_checkout_cart_taxes">
            <?php
              echo $this->currencyHelper->format($tax->tax_amount,$this->full_total->prices[0]->price_currency_id);
            ?>
            </span>
          </td>
        </tr>
<?php
        }
      } else {
?>
        <tr>
          <?php echo $td; ?>
          <td id="hikashop_checkout_cart_tax_title" class="hikashop_cart_tax_title hikashop_cart_title">
            <?php echo JText::_('TAXES'); ?>
          </td>
          <td class="hikashop_cart_tax_value">
            <span class="hikashop_checkout_cart_taxes">
            <?php
              echo $this->currencyHelper->format($taxes,$this->full_total->prices[0]->price_currency_id);
            ?>
            </span>
          </td>
        </tr>
<?php
      }
    }
?>
just after :
        <tr>
          <?php echo $td; ?>
          <td id="hikashop_checkout_cart_final_total_title" class="hikashop_cart_total_title hikashop_cart_title">
            <?php echo JText::_('HIKASHOP_FINAL_TOTAL'); ?>
          </td>
          <td class="hikashop_cart_total_value">
            <span class="hikashop_checkout_cart_final_total">
            <?php
              echo $this->currencyHelper->format($this->full_total->prices[0]->price_value_with_tax,$this->full_total->prices[0]->price_currency_id);
            ?>
            </span>
          </td>
        </tr>

Please Log in or Create an account to join the conversation.

  • Posts: 344
  • Thank you received: 3
10 years 7 months ago #150549

Tnx. It works great =)

Please Log in or Create an account to join the conversation.

Time to create page: 0.092 seconds
Powered by Kunena Forum